diff --git a/packages/openapi-fetch/test/examples/schemas/github.d.ts b/packages/openapi-fetch/test/examples/schemas/github.d.ts index 510f78b83..88acec4f7 100644 --- a/packages/openapi-fetch/test/examples/schemas/github.d.ts +++ b/packages/openapi-fetch/test/examples/schemas/github.d.ts @@ -20364,7 +20364,7 @@ export interface components { * ## Attribution * * This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/). - * */ + */ body?: string; /** Format: uri */ html_url: string | null; @@ -21740,7 +21740,7 @@ export interface components { * *.exe * *.out * *.app - * */ + */ source: string; }; /** @@ -21830,7 +21830,7 @@ export interface components { * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ + */ body: string; /** @example true */ featured: boolean; @@ -87756,7 +87756,7 @@ export interface components { /** @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ "ruleset-targets": string; /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ "ref-in-query": string; @@ -98281,7 +98281,7 @@ export interface operations { /** @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -115670,7 +115670,7 @@ export interface operations { /** @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; diff --git a/packages/openapi-typescript/examples/digital-ocean-api.ts b/packages/openapi-typescript/examples/digital-ocean-api.ts index 1b42592f9..b0f18c5e8 100644 --- a/packages/openapi-typescript/examples/digital-ocean-api.ts +++ b/packages/openapi-typescript/examples/digital-ocean-api.ts @@ -19,7 +19,6 @@ export interface paths { * * The response will be a JSON object with a key called `1_clicks`. This will be set to an array of * 1-Click application data, each of which will contain the the slug and type for the 1-Click. - * */ get: operations["oneClicks_list"]; put?: never; @@ -45,7 +44,6 @@ export interface paths { * `/v2/1-clicks/kubernetes`. The `addon_slugs` and `cluster_uuid` must be provided as body * parameter in order to specify which 1-Click application(s) to install. To list all available * 1-Click Kubernetes applications, send a request to `/v2/1-clicks?type=kubernetes`. - * */ post: operations["oneClicks_install_kubernetes"]; delete?: never; @@ -562,7 +560,6 @@ export interface paths { * * It is recommended to use the Validate App Rollback endpoint to double check if the rollback is * valid and if there are any warnings. - * */ post: operations["apps_create_rollback"]; delete?: never; @@ -586,7 +583,6 @@ export interface paths { * to check if there are any warnings or validation conditions that will cause the rollback to proceed * under unideal circumstances. For example, if a component must be rebuilt as part of the rollback * causing it to take longer than usual. - * */ post: operations["apps_validate_rollback"]; delete?: never; @@ -607,7 +603,6 @@ export interface paths { /** * Commit App Rollback * @description Commit an app rollback. This action permanently applies the rollback and unpins the app to resume new deployments. - * */ post: operations["apps_commit_rollback"]; delete?: never; @@ -629,7 +624,6 @@ export interface paths { * Revert App Rollback * @description Revert an app rollback. This action reverts the active rollback by creating a new deployment from the * latest app spec prior to the rollback and unpins the app to resume new deployments. - * */ post: operations["apps_revert_rollback"]; delete?: never; @@ -700,7 +694,6 @@ export interface paths { * * A custom subdomain may be configured by specifying the `custom_domain` and * `certificate_id` attributes. - * */ post: operations["cdn_create_endpoint"]; delete?: never; @@ -726,7 +719,6 @@ export interface paths { * @description To update the TTL, certificate ID, or the FQDN of the custom subdomain for * an existing CDN endpoint, send a PUT request to * `/v2/cdn/endpoints/$ENDPOINT_ID`. - * */ put: operations["cdn_update_endpoints"]; post?: never; @@ -737,7 +729,6 @@ export interface paths { * * A status of 204 will be given. This indicates that the request was processed * successfully, but that no response body is needed. - * */ delete: operations["cdn_delete_endpoint"]; options?: never; @@ -766,7 +757,6 @@ export interface paths { * be purged. CDN endpoints have a rate limit of 5 requests per 10 seconds. * Purging files using a wildcard path counts as a single request against the API's * rate limit. Two identical purge requests cannot be sent at the same time. - * */ delete: operations["cdn_purge_cache"]; options?: never; @@ -798,7 +788,6 @@ export interface paths { * * When using Let's Encrypt to create a certificate, the `dns_names` attribute * must be provided, and the type must be set to `lets_encrypt`. - * */ post: operations["certificates_create"]; delete?: never; @@ -825,7 +814,6 @@ export interface paths { * Delete a Certificate * @description To delete a specific certificate, send a DELETE request to * `/v2/certificates/$CERTIFICATE_ID`. - * */ delete: operations["certificates_delete"]; options?: never; @@ -1074,7 +1062,6 @@ export interface paths { * `/v2/databases/$DATABASE_ID/config`. * The response is a JSON object with a `config` key, which is set to an object * containing any database configuration parameters. - * */ get: operations["databases_get_config"]; put?: never; @@ -1086,7 +1073,6 @@ export interface paths { * Update the Database Configuration for an Existing Database * @description To update the configuration for an existing database cluster, send a PATCH request to * `/v2/databases/$DATABASE_ID/config`. - * */ patch: operations["databases_patch_config"]; trace?: never; @@ -1105,7 +1091,6 @@ export interface paths { * * The response will be a JSON object with a `ca` key. This will be set to an object * containing the base64 encoding of the public key certificate. - * */ get: operations["databases_get_ca"]; put?: never; @@ -1155,7 +1140,6 @@ export interface paths { * @description To stop an online migration, send a DELETE request to `/v2/databases/$DATABASE_ID/online-migration/$MIGRATION_ID`. * * A status of 204 will be given. This indicates that the request was processed successfully, but that no response body is needed. - * */ delete: operations["databases_delete_onlineMigration"]; options?: never; @@ -1181,7 +1165,6 @@ export interface paths { * response. Querying the database cluster will show that its `status` attribute * will now be set to `migrating`. This will transition back to `online` when the * migration has completed. - * */ put: operations["databases_update_region"]; post?: never; @@ -1347,7 +1330,6 @@ export interface paths { * `/v2/databases/$DATABASE_ID/events`. * * The result will be a JSON object with a `events` key. - * */ get: operations["databases_list_events_logs"]; put?: never; @@ -1432,7 +1414,6 @@ export interface paths { * of database user objects, each of which will contain the standard database user attributes. * * For MySQL clusters, additional options will be contained in the mysql_settings object. - * */ get: operations["databases_list_users"]; put?: never; @@ -1452,7 +1433,6 @@ export interface paths { * The response will be a JSON object with a key called `user`. The value of this will be an * object that contains the standard attributes associated with a database user including * its randomly generated password. - * */ post: operations["databases_add_user"]; delete?: never; @@ -1482,7 +1462,6 @@ export interface paths { * object. * * For Kafka clusters, additional options will be contained in the `settings` object. - * */ get: operations["databases_get_user"]; /** @@ -1496,7 +1475,6 @@ export interface paths { * The response will be a JSON object with a key called `user`. The value of this will be an * object that contains the name of the update database user, along with the `settings` object that * has been updated. - * */ put: operations["databases_update_user"]; post?: never; @@ -1509,7 +1487,6 @@ export interface paths { * successfully, but that no response body is needed. * * Note: User management is not supported for Redis clusters. - * */ delete: operations["databases_delete_user"]; options?: never; @@ -1537,7 +1514,6 @@ export interface paths { * * The response will be a JSON object with a `user` key. This will be set to an * object containing the standard database user attributes. - * */ post: operations["databases_reset_auth"]; delete?: never; @@ -1562,7 +1538,6 @@ export interface paths { * of database objects, each of which will contain the standard database attributes. * * Note: Database management is not supported for Redis clusters. - * */ get: operations["databases_list"]; put?: never; @@ -1575,7 +1550,6 @@ export interface paths { * * The response will be a JSON object with a key called `db`. The value of this will be * an object that contains the standard attributes associated with a database. - * */ post: operations["databases_add"]; delete?: never; @@ -1600,7 +1574,6 @@ export interface paths { * * The response will be a JSON object with a `db` key. This will be set to an object * containing the standard database attributes. - * */ get: operations["databases_get"]; put?: never; @@ -1614,7 +1587,6 @@ export interface paths { * successfully, but that no response body is needed. * * Note: Database management is not supported for Redis clusters. - * */ delete: operations["databases_delete"]; options?: never; @@ -1648,7 +1620,6 @@ export interface paths { * request to `/v2/databases/$DATABASE_ID/pools` specifying a name for the pool, * the user to connect with, the database to connect to, as well as its desired * size and transaction mode. - * */ post: operations["databases_add_connectionPool"]; delete?: never; @@ -1683,7 +1654,6 @@ export interface paths { * * A status of 204 will be given. This indicates that the request was processed * successfully, but that no response body is needed. - * */ delete: operations["databases_delete_connectionPool"]; options?: never; @@ -1776,7 +1746,6 @@ export interface paths { * `/v2/databases/$DATABASE_ID/topics`. * * The result will be a JSON object with a `topics` key. - * */ get: operations["databases_list_kafka_topics"]; put?: never; @@ -1786,7 +1755,6 @@ export interface paths { * `/v2/databases/$DATABASE_ID/topics`. * * The result will be a JSON object with a `topic` key. - * */ post: operations["databases_create_kafka_topic"]; delete?: never; @@ -1808,7 +1776,6 @@ export interface paths { * send a GET request to `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`. * * The result will be a JSON object with a `topic` key. - * */ get: operations["databases_get_kafka_topic"]; /** @@ -1817,7 +1784,6 @@ export interface paths { * `/v2/databases/$DATABASE_ID/topics/$TOPIC_NAME`. * * The result will be a JSON object with a `topic` key. - * */ put: operations["databases_update_kafka_topic"]; post?: never; @@ -1828,7 +1794,6 @@ export interface paths { * * A status of 204 will be given. This indicates that the request was * processed successfully, but that no response body is needed. - * */ delete: operations["databases_delete_kafka_topic"]; options?: never; @@ -1845,19 +1810,15 @@ export interface paths { }; /** * List Logsinks for a Database Cluster - * * @description To list logsinks for a database cluster, send a GET request to * `/v2/databases/$DATABASE_ID/logsink`. - * */ get: operations["databases_list_logsink"]; put?: never; /** * Create Logsink for a Database Cluster - * * @description To create logsink for a database cluster, send a POST request to * `/v2/databases/$DATABASE_ID/logsink`. - * */ post: operations["databases_create_logsink"]; delete?: never; @@ -1875,27 +1836,21 @@ export interface paths { }; /** * Get Logsink for a Database Cluster - * * @description To get a logsink for a database cluster, send a GET request to * `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`. - * */ get: operations["databases_get_logsink"]; /** * Update Logsink for a Database Cluster - * * @description To update a logsink for a database cluster, send a PUT request to * `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`. - * */ put: operations["databases_update_logsink"]; post?: never; /** * Delete Logsink for a Database Cluster - * * @description To delete a logsink for a database cluster, send a DELETE request to * `/v2/databases/$DATABASE_ID/logsink/$LOGSINK_ID`. - * */ delete: operations["databases_delete_logsink"]; options?: never; @@ -1940,7 +1895,6 @@ export interface paths { * `/v2/databases/$DATABASE_ID/indexes`. * * The result will be a JSON object with a `indexes` key. - * */ get: operations["databases_list_opeasearch_indexes"]; put?: never; @@ -1968,7 +1922,6 @@ export interface paths { * * A status of 204 will be given. This indicates that the request was * processed successfully, but that no response body is needed. - * */ delete: operations["databases_delete_opensearch_index"]; options?: never; @@ -1995,7 +1948,6 @@ export interface paths { * attribute to the domain name you are adding. Optionally, you may set the * "ip_address" attribute, and an A record will be automatically created pointing * to the apex domain. - * */ post: operations["domains_create"]; delete?: never; @@ -2021,7 +1973,6 @@ export interface paths { /** * Delete a Domain * @description To delete a domain, send a DELETE request to `/v2/domains/$DOMAIN_NAME`. - * */ delete: operations["domains_delete"]; options?: never; @@ -2040,8 +1991,6 @@ export interface paths { * List All Domain Records * @description To get a listing of all records configured for a domain, send a GET request to `/v2/domains/$DOMAIN_NAME/records`. * The list of records returned can be filtered by using the `name` and `type` query parameters. For example, to only include A records for a domain, send a GET request to `/v2/domains/$DOMAIN_NAME/records?type=A`. `name` must be a fully qualified record name. For example, to only include records matching `sub.example.com`, send a GET request to `/v2/domains/$DOMAIN_NAME/records?name=sub.example.com`. Both name and type may be used together. - * - * */ get: operations["domains_list_records"]; put?: never; @@ -2055,7 +2004,6 @@ export interface paths { * * See the [attribute table](#tag/Domain-Records) for details regarding record * types and their respective required attributes. - * */ post: operations["domains_create_record"]; delete?: never; @@ -2084,7 +2032,6 @@ export interface paths { * * See the [attribute table](#tag/Domain-Records) for details regarding record * types and their respective attributes. - * */ put: operations["domains_update_record"]; post?: never; @@ -2095,7 +2042,6 @@ export interface paths { * * The record will be deleted and the response status will be a 204. This * indicates a successful request with no body returned. - * */ delete: operations["domains_delete_record"]; options?: never; @@ -2108,7 +2054,6 @@ export interface paths { * * See the [attribute table](#tag/Domain-Records) for details regarding record * types and their respective attributes. - * */ patch: operations["domains_patch_record"]; trace?: never; @@ -2139,7 +2084,6 @@ export interface paths { * * By default, only non-GPU Droplets are returned. To list only GPU Droplets, set * the `type` query parameter to `gpus`. For example, `/v2/droplets?type=gpus`. - * */ get: operations["droplets_list"]; put?: never; @@ -2170,7 +2114,6 @@ export interface paths { * operation, just that the request has been accepted for processing. The array * of `actions` returned as part of the response's `links` object can be used to * check the status of each individual Droplet create event. - * */ post: operations["droplets_create"]; /** @@ -2181,7 +2124,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["droplets_destroy_byTag"]; options?: never; @@ -2200,7 +2142,6 @@ export interface paths { * Retrieve an Existing Droplet * @description To show information about an individual Droplet, send a GET request to * `/v2/droplets/$DROPLET_ID`. - * */ get: operations["droplets_get"]; put?: never; @@ -2211,7 +2152,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["droplets_destroy"]; options?: never; @@ -2234,7 +2174,6 @@ export interface paths { * You will get back a JSON object that has a `backups` key. This will be set to * an array of backup objects, each of which contain the standard * Droplet backup attributes. - * */ get: operations["droplets_list_backups"]; put?: never; @@ -2256,7 +2195,6 @@ export interface paths { * Retrieve the Backup Policy for an Existing Droplet * @description To show information about an individual Droplet's backup policy, send a GET * request to `/v2/droplets/$DROPLET_ID/backups/policy`. - * */ get: operations["droplets_get_backup_policy"]; put?: never; @@ -2278,7 +2216,6 @@ export interface paths { * List Backup Policies for All Existing Droplets * @description To list information about the backup policies for all Droplets in the account, * send a GET request to `/v2/droplets/backups/policies`. - * */ get: operations["droplets_list_backup_policies"]; put?: never; @@ -2300,7 +2237,6 @@ export interface paths { * List Supported Droplet Backup Policies * @description To retrieve a list of all supported Droplet backup policies, send a GET * request to `/v2/droplets/backups/supported_policies`. - * */ get: operations["droplets_list_supported_backup_policies"]; put?: never; @@ -2326,7 +2262,6 @@ export interface paths { * You will get back a JSON object that has a `snapshots` key. This will be set * to an array of snapshot objects, each of which contain the standard Droplet * snapshot attributes. - * */ get: operations["droplets_list_snapshots"]; put?: never; @@ -2352,7 +2287,6 @@ export interface paths { * The results will be returned as a JSON object with an `actions` key. This will * be set to an array filled with `action` objects containing the standard * `action` attributes. - * */ get: operations["dropletActions_list"]; put?: never; @@ -2380,7 +2314,6 @@ export interface paths { * | `change_kernel` | Changes a Droplet's kernel. Only applies to Droplets with externally managed kernels. All Droplets created after March 2017 use internal kernels by default. | * | `enable_ipv6` | Enables IPv6 for a Droplet. Once enabled for a Droplet, IPv6 can not be disabled. When enabling IPv6 on an existing Droplet, [additional OS-level configuration](https://docs.digitalocean.com/products/networking/ipv6/how-to/enable/#on-existing-droplets) is required. | * | `snapshot` | Takes a snapshot of a Droplet. | - * */ post: operations["dropletActions_post"]; delete?: never; @@ -2414,7 +2347,6 @@ export interface paths { * - `enable_backups` * - `disable_backups` * - `snapshot` - * */ post: operations["dropletActions_post_byTag"]; delete?: never; @@ -2437,7 +2369,6 @@ export interface paths { * * The response will be a JSON object with a key called `action`. The value will * be a Droplet action object. - * */ get: operations["dropletActions_get"]; put?: never; @@ -2463,7 +2394,6 @@ export interface paths { * The response will be a JSON object that has a key called `kernels`. This will * be set to an array of `kernel` objects, each of which contain the standard * `kernel` attributes. - * */ get: operations["droplets_list_kernels"]; put?: never; @@ -2489,7 +2419,6 @@ export interface paths { * The response will be a JSON object that has a key called `firewalls`. This will * be set to an array of `firewall` objects, each of which contain the standard * `firewall` attributes. - * */ get: operations["droplets_list_firewalls"]; put?: never; @@ -2517,7 +2446,6 @@ export interface paths { * will be set to an array containing objects representing any other Droplets * that share the same physical hardware. An empty array indicates that the * Droplet is not co-located any other Droplets associated with your account. - * */ get: operations["droplets_list_neighbors"]; put?: never; @@ -2544,7 +2472,6 @@ export interface paths { * The response will be a JSON object containing `snapshots`, `volumes`, and * `volume_snapshots` keys. Each will be set to an array of objects containing * information about the associated resources. - * */ get: operations["droplets_list_associatedResources"]; put?: never; @@ -2578,7 +2505,6 @@ export interface paths { * A successful response will include a 202 response code and no content. Use * the status endpoint to check on the success or failure of the destruction of * the individual resources. - * */ delete: operations["droplets_destroy_withAssociatedResourcesSelective"]; options?: never; @@ -2608,7 +2534,6 @@ export interface paths { * A successful response will include a 202 response code and no content. Use the * status endpoint to check on the success or failure of the destruction of the * individual resources. - * */ delete: operations["droplets_destroy_withAssociatedResourcesDangerous"]; options?: never; @@ -2628,7 +2553,6 @@ export interface paths { * @description To check on the status of a request to destroy a Droplet with its associated * resources, send a GET request to the * `/v2/droplets/$DROPLET_ID/destroy_with_associated_resources/status` endpoint. - * */ get: operations["droplets_get_DestroyAssociatedResourcesStatus"]; put?: never; @@ -2658,7 +2582,6 @@ export interface paths { * while another destroy is in progress for the Droplet a 409 status code will * be returned. A successful response will include a 202 response code and no * content. - * */ post: operations["droplets_destroy_retryWithAssociatedResources"]; delete?: never; @@ -2679,7 +2602,6 @@ export interface paths { * @description To list all autoscale pools in your team, send a GET request to `/v2/droplets/autoscale`. * The response body will be a JSON object with a key of `autoscale_pools` containing an array of autoscale pool objects. * These each contain the standard autoscale pool attributes. - * */ get: operations["autoscalepools_list"]; put?: never; @@ -2688,7 +2610,6 @@ export interface paths { * @description To create a new autoscale pool, send a POST request to `/v2/droplets/autoscale` setting the required attributes. * * The response body will contain a JSON object with a key called `autoscale_pool` containing the standard attributes for the new autoscale pool. - * */ post: operations["autoscalepools_create"]; delete?: never; @@ -2708,7 +2629,6 @@ export interface paths { * Retrieve an Existing Autoscale Pool * @description To show information about an individual autoscale pool, send a GET request to * `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`. - * */ get: operations["autoscalepools_get"]; /** @@ -2716,7 +2636,6 @@ export interface paths { * @description To update the configuration of an existing autoscale pool, send a PUT request to * `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID`. The request must contain a full representation * of the autoscale pool including existing attributes. - * */ put: operations["autoscalepools_update"]; post?: never; @@ -2725,7 +2644,6 @@ export interface paths { * @description To destroy an autoscale pool, send a DELETE request to the `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID` endpoint. * * A successful response will include a 202 response code and no content. - * */ delete: operations["autoscalepools_delete"]; options?: never; @@ -2747,7 +2665,6 @@ export interface paths { * Delete autoscale pool and resources * @description To destroy an autoscale pool and its associated resources (Droplets), * send a DELETE request to the `/v2/droplets/autoscale/$AUTOSCALE_POOL_ID/dangerous` endpoint. - * */ delete: operations["autoscalepools_delete_dangerous"]; options?: never; @@ -2768,7 +2685,6 @@ export interface paths { * * The response body will be a JSON object with a key of `droplets`. This will be * set to an array containing information about each of the Droplets in the autoscale pool. - * */ get: operations["autoscalepools_list_members"]; put?: never; @@ -2792,7 +2708,6 @@ export interface paths { * * The response body will be a JSON object with a key of `history`. This will be * set to an array containing objects each representing a history event. - * */ get: operations["autoscalepools_list_history"]; put?: never; @@ -2820,7 +2735,6 @@ export interface paths { * Create a New Firewall * @description To create a new firewall, send a POST request to `/v2/firewalls`. The request * must contain at least one inbound or outbound access rule. - * */ post: operations["firewalls_create"]; delete?: never; @@ -2847,7 +2761,6 @@ export interface paths { * `/v2/firewalls/$FIREWALL_ID`. The request should contain a full representation * of the firewall including existing attributes. **Note that any attributes that * are not provided will be reset to their default values.** - * */ put: operations["firewalls_update"]; post?: never; @@ -2858,7 +2771,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ delete: operations["firewalls_delete"]; options?: never; @@ -2884,7 +2796,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ post: operations["firewalls_assign_droplets"]; /** @@ -2896,7 +2807,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ delete: operations["firewalls_delete_droplets"]; options?: never; @@ -2922,7 +2832,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ post: operations["firewalls_add_tags"]; /** @@ -2934,7 +2843,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ delete: operations["firewalls_delete_tags"]; options?: never; @@ -2961,7 +2869,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ post: operations["firewalls_add_rules"]; /** @@ -2974,7 +2881,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ delete: operations["firewalls_delete_rules"]; options?: never; @@ -3034,7 +2940,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["floatingIPs_delete"]; options?: never; @@ -3065,7 +2970,6 @@ export interface paths { * |------------|-------- * | `assign` | Assigns a floating IP to a Droplet * | `unassign` | Unassign a floating IP from a Droplet - * */ post: operations["floatingIPsAction_post"]; delete?: never; @@ -3231,7 +3135,6 @@ export interface paths { * **Tags** * * To list all images assigned to a specific tag, include the `tag_name` query parameter set to the name of the tag in your GET request. For example, `/v2/images?tag_name=$TAG_NAME`. - * */ get: operations["images_list"]; put?: never; @@ -3243,7 +3146,6 @@ export interface paths { * The image must be in the raw, qcow2, vhdx, vdi, or vmdk format. * It may be compressed using gzip or bzip2 and must be smaller than 100 GB after * being decompressed. - * */ post: operations["images_create_custom"]; delete?: never; @@ -3263,7 +3165,6 @@ export interface paths { * Retrieve an Existing Image * @description To retrieve information about an image, send a `GET` request to * `/v2/images/$IDENTIFIER`. - * */ get: operations["images_get"]; /** @@ -3271,14 +3172,12 @@ export interface paths { * @description To update an image, send a `PUT` request to `/v2/images/$IMAGE_ID`. * Set the `name` attribute to the new value you would like to use. * For custom images, the `description` and `distribution` attributes may also be updated. - * */ put: operations["images_update"]; post?: never; /** * Delete an Image * @description To delete a snapshot or custom image, send a `DELETE` request to `/v2/images/$IMAGE_ID`. - * */ delete: operations["images_delete"]; options?: never; @@ -3314,7 +3213,6 @@ export interface paths { * `/v2/images/$IMAGE_ID/actions`. Set the `type` attribute to `transfer` and set * `region` attribute to the slug identifier of the region you wish to transfer * to. - * */ post: operations["imageActions_post"]; delete?: never; @@ -3354,7 +3252,6 @@ export interface paths { * List All Kubernetes Clusters * @description To list all of the Kubernetes clusters on your account, send a GET request * to `/v2/kubernetes/clusters`. - * */ get: operations["kubernetes_list_clusters"]; put?: never; @@ -3369,7 +3266,6 @@ export interface paths { * implies that a window will be chosen automatically. See * [here](https://docs.digitalocean.com/products/kubernetes/how-to/upgrade-cluster/) * for details. - * */ post: operations["kubernetes_create_cluster"]; delete?: never; @@ -3389,7 +3285,6 @@ export interface paths { * Retrieve an Existing Kubernetes Cluster * @description To show information about an existing Kubernetes cluster, send a GET request * to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID`. - * */ get: operations["kubernetes_get_cluster"]; /** @@ -3397,7 +3292,6 @@ export interface paths { * @description To update a Kubernetes cluster, send a PUT request to * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID` and specify one or more of the * attributes below. - * */ put: operations["kubernetes_update_cluster"]; post?: never; @@ -3408,7 +3302,6 @@ export interface paths { * * A 204 status code with no body will be returned in response to a successful * request. - * */ delete: operations["kubernetes_delete_cluster"]; options?: never; @@ -3458,7 +3351,6 @@ export interface paths { * The IDs can be found by querying the cluster's associated resources endpoint. * Any associated resource not included in the request will remain and continue * to accrue changes on your account. - * */ delete: operations["kubernetes_destroy_associatedResourcesSelective"]; options?: never; @@ -3481,7 +3373,6 @@ export interface paths { * @description To delete a Kubernetes cluster with all of its associated resources, send a * DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/dangerous`. * A 204 status code with no body will be returned in response to a successful request. - * */ delete: operations["kubernetes_destroy_associatedResourcesDangerous"]; options?: never; @@ -3515,7 +3406,6 @@ export interface paths { * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig?expiry_seconds=$DURATION_IN_SECONDS`. * If not set or 0, then the token will have a 7 day expiry. The query parameter * has no impact in certificate-based authentication. - * */ get: operations["kubernetes_get_kubeconfig"]; put?: never; @@ -3551,7 +3441,6 @@ export interface paths { * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/credentials?expiry_seconds=$DURATION_IN_SECONDS`. * If not set or 0, then the token will have a 7 day expiry. The query parameter * has no impact in certificate-based authentication. - * */ get: operations["kubernetes_get_credentials"]; put?: never; @@ -3574,7 +3463,6 @@ export interface paths { * @description To determine whether a cluster can be upgraded, and the versions to which it * can be upgraded, send a GET request to * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`. - * */ get: operations["kubernetes_get_availableUpgrades"]; put?: never; @@ -3602,7 +3490,6 @@ export interface paths { * * Available upgrade versions for a cluster can be fetched from * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/upgrades`. - * */ post: operations["kubernetes_upgrade_cluster"]; delete?: never; @@ -3622,7 +3509,6 @@ export interface paths { * List All Node Pools in a Kubernetes Clusters * @description To list all of the node pools in a Kubernetes clusters, send a GET request to * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools`. - * */ get: operations["kubernetes_list_nodePools"]; put?: never; @@ -3631,7 +3517,6 @@ export interface paths { * @description To add an additional node pool to a Kubernetes clusters, send a POST request * to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools` with the following * attributes. - * */ post: operations["kubernetes_add_nodePool"]; delete?: never; @@ -3651,7 +3536,6 @@ export interface paths { * Retrieve a Node Pool for a Kubernetes Cluster * @description To show information about a specific node pool in a Kubernetes cluster, send * a GET request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID`. - * */ get: operations["kubernetes_get_nodePool"]; /** @@ -3660,7 +3544,6 @@ export interface paths { * number of nodes, send a PUT request to * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID` with the * following attributes. - * */ put: operations["kubernetes_update_nodePool"]; post?: never; @@ -3671,7 +3554,6 @@ export interface paths { * * A 204 status code with no body will be returned in response to a successful * request. Nodes in the pool will subsequently be drained and deleted. - * */ delete: operations["kubernetes_delete_nodePool"]; options?: never; @@ -3701,7 +3583,6 @@ export interface paths { * Appending the `replace=1` query parameter to the request causes the node to * be replaced by a new one after deletion. Omitting the query parameter or * setting its value to `0` deletes without replacement. - * */ delete: operations["kubernetes_delete_node"]; options?: never; @@ -3724,7 +3605,6 @@ export interface paths { * @description The endpoint has been deprecated. Please use the DELETE * `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/node_pools/$NODE_POOL_ID/nodes/$NODE_ID` * method instead. - * */ post: operations["kubernetes_recycle_node_pool"]; delete?: never; @@ -3744,7 +3624,6 @@ export interface paths { * Retrieve User Information for a Kubernetes Cluster * @description To show information the user associated with a Kubernetes cluster, send a GET * request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/user`. - * */ get: operations["kubernetes_get_clusterUser"]; put?: never; @@ -3791,7 +3670,6 @@ export interface paths { * * To find out how to address clusterlint feedback, please refer to * [the clusterlint check documentation](https://github.com/digitalocean/clusterlint/blob/master/checks.md). - * */ get: operations["kubernetes_get_clusterLintResults"]; put?: never; @@ -3808,7 +3686,6 @@ export interface paths { * * For information about the available checks, please refer to * [the clusterlint check documentation](https://github.com/digitalocean/clusterlint/blob/master/checks.md). - * */ post: operations["kubernetes_run_clusterLint"]; delete?: never; @@ -3852,7 +3729,6 @@ export interface paths { * List All Load Balancers * @description To list all of the load balancer instances on your account, send a GET request * to `/v2/load_balancers`. - * */ get: operations["loadBalancers_list"]; put?: never; @@ -3870,7 +3746,6 @@ export interface paths { * assigned as they are tagged. * * These methods are mutually exclusive. - * */ post: operations["loadBalancers_create"]; delete?: never; @@ -3890,7 +3765,6 @@ export interface paths { * Retrieve an Existing Load Balancer * @description To show information about a load balancer instance, send a GET request to * `/v2/load_balancers/$LOAD_BALANCER_ID`. - * */ get: operations["loadBalancers_get"]; /** @@ -3901,7 +3775,6 @@ export interface paths { * contain _one of_ the `droplets_ids` or `tag` attributes as they are mutually * exclusive. **Note that any attribute that is not provided will be reset to its * default value.** - * */ put: operations["loadBalancers_update"]; post?: never; @@ -3913,7 +3786,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["loadBalancers_delete"]; options?: never; @@ -3938,7 +3810,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["loadBalancers_delete_cache"]; options?: never; @@ -3967,7 +3838,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ post: operations["loadBalancers_add_droplets"]; /** @@ -3979,7 +3849,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ delete: operations["loadBalancers_remove_droplets"]; options?: never; @@ -4006,7 +3875,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ post: operations["loadBalancers_add_forwardingRules"]; /** @@ -4019,7 +3887,6 @@ export interface paths { * No response body will be sent back, but the response code will indicate * success. Specifically, the response code will be a 204, which means that the * action was successful with no returned body data. - * */ delete: operations["loadBalancers_remove_forwardingRules"]; options?: never; @@ -5089,7 +4956,6 @@ export interface paths { * Create Sink * @description To create a new sink, send a POST request to `/v2/monitoring/sinks`. Forwards logs from the * resources identified in `resources` to the specified pre-existing destination. - * */ post: operations["monitoring_create_sink"]; delete?: never; @@ -5200,7 +5066,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["projects_delete"]; options?: never; @@ -5301,7 +5166,6 @@ export interface paths { * The `name` becomes part of the URL for images stored in the registry. For * example, if your registry is called `example`, an image in it will have the * URL `registry.digitalocean.com/example/image:tag`. - * */ post: operations["registry_create"]; /** @@ -5369,7 +5233,6 @@ export interface paths { * with an expiry set, expiry_seconds may be provided as a query parameter. For * example: `/v2/registry/docker-credentials?expiry_seconds=3600` will return * credentials that expire after one hour. - * */ get: operations["registry_get_dockerCredentials"]; put?: never; @@ -5397,7 +5260,6 @@ export interface paths { * If the name is both formatted correctly and available, the response code will * be 204 and contain no body. If the name is already in use, the response will * be a 409 Conflict. - * */ post: operations["registry_validate_name"]; delete?: never; @@ -5420,7 +5282,6 @@ export interface paths { * * To list all repositories in your container registry, send a GET * request to `/v2/registry/$REGISTRY_NAME/repositories`. - * */ get: operations["registry_list_repositories"]; put?: never; @@ -5467,7 +5328,6 @@ export interface paths { * URL-encoded in the request URL. For example, to list tags for * `registry.digitalocean.com/example/my/repo`, the path would be * `/v2/registry/example/repositories/my%2Frepo/tags`. - * */ get: operations["registry_list_repositoryTags"]; put?: never; @@ -5500,7 +5360,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["registry_delete_repositoryTag"]; options?: never; @@ -5524,7 +5383,6 @@ export interface paths { * URL-encoded in the request URL. For example, to list manifests for * `registry.digitalocean.com/example/my/repo`, the path would be * `/v2/registry/example/repositories/my%2Frepo/digests`. - * */ get: operations["registry_list_repositoryManifests"]; put?: never; @@ -5557,7 +5415,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["registry_delete_repositoryManifest"]; options?: never; @@ -5601,7 +5458,6 @@ export interface paths { * collection status as `success`. * * Remove the read-only mode restriction from the registry, meaning write-scoped * JWTs will once again be issued to registry clients. - * */ post: operations["registry_run_garbageCollection"]; delete?: never; @@ -5690,7 +5546,6 @@ export interface paths { * Droplet IDs for Droplets that share a physical server. An empty array * indicates that all Droplets associated with your account are located on * separate physical hardware. - * */ get: operations["droplets_list_neighborsIds"]; put?: never; @@ -5753,7 +5608,6 @@ export interface paths { * * A successful request will receive a 204 status code with no body in response. * This indicates that the request was processed successfully. - * */ delete: operations["reservedIPs_delete"]; options?: never; @@ -5784,7 +5638,6 @@ export interface paths { * |------------|-------- * | `assign` | Assigns a reserved IP to a Droplet * | `unassign` | Unassign a reserved IP from a Droplet - * */ post: operations["reservedIPsActions_post"]; delete?: never; @@ -5863,7 +5716,6 @@ export interface paths { * * To retrieve only snapshots based on volumes, include the `resource_type` * query parameter set to `volume`. For example, `/v2/snapshots?resource_type=volume`. - * */ get: operations["snapshots_list"]; put?: never; @@ -5888,7 +5740,6 @@ export interface paths { * * The response will be a JSON object with a key called `snapshot`. The value of * this will be an snapshot object containing the standard snapshot attributes. - * */ get: operations["snapshots_get"]; put?: never; @@ -5901,7 +5752,6 @@ export interface paths { * * A status of 204 will be given. This indicates that the request was processed * successfully, but that no response body is needed. - * */ delete: operations["snapshots_delete"]; options?: never; @@ -6001,9 +5851,6 @@ export interface paths { * **Note:** You can only create one volume per region with the same name. * ### By Name and Region * It is also possible to retrieve information about a block storage volume by name. To do so, send a GET request with the volume's name and the region slug for the region it is located in as query parameters to `/v2/volumes?name=$VOLUME_NAME®ion=nyc1`. - * - * - * */ get: operations["volumes_list"]; put?: never; @@ -6016,8 +5863,6 @@ export interface paths { * Delete a Block Storage Volume by Name * @description Block storage volumes may also be deleted by name by sending a DELETE request with the volume's **name** and the **region slug** for the region it is located in as query parameters to `/v2/volumes?name=$VOLUME_NAME®ion=nyc1`. * No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data. - * - * */ delete: operations["volumes_delete_byName"]; options?: never; @@ -6064,7 +5909,6 @@ export interface paths { * | volume_name | The name of the block storage volume | * | droplet_id | Set to the Droplet's ID | * | region | Set to the slug representing the region where the volume is located | - * */ post: operations["volumeActions_post"]; delete?: never; @@ -6083,8 +5927,6 @@ export interface paths { /** * Retrieve an Existing Volume Snapshot * @description To retrieve the details of a snapshot that has been created from a volume, send a GET request to `/v2/volumes/snapshots/$VOLUME_SNAPSHOT_ID`. - * - * */ get: operations["volumeSnapshots_get_byId"]; put?: never; @@ -6096,7 +5938,6 @@ export interface paths { * * A status of 204 will be given. This indicates that the request was processed * successfully, but that no response body is needed. - * */ delete: operations["volumeSnapshots_delete_byId"]; options?: never; @@ -6114,8 +5955,6 @@ export interface paths { /** * Retrieve an Existing Block Storage Volume * @description To show information about a block storage volume, send a GET request to `/v2/volumes/$VOLUME_ID`. - * - * */ get: operations["volumes_get"]; put?: never; @@ -6124,8 +5963,6 @@ export interface paths { * Delete a Block Storage Volume * @description To delete a block storage volume, destroying all data and removing it from your account, send a DELETE request to `/v2/volumes/$VOLUME_ID`. * No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data. - * - * */ delete: operations["volumes_delete"]; options?: never; @@ -6143,8 +5980,6 @@ export interface paths { /** * List All Actions for a Volume * @description To retrieve all actions that have been executed on a volume, send a GET request to `/v2/volumes/$VOLUME_ID/actions`. - * - * */ get: operations["volumeActions_list"]; put?: never; @@ -6186,7 +6021,6 @@ export interface paths { * | region | Set to the slug representing the region where the volume is located | * * Volumes may only be resized upwards. The maximum size for a volume is 16TiB. - * */ post: operations["volumeActions_post_byId"]; delete?: never; @@ -6205,8 +6039,6 @@ export interface paths { /** * Retrieve an Existing Volume Action * @description To retrieve the status of a volume action, send a GET request to `/v2/volumes/$VOLUME_ID/actions/$ACTION_ID`. - * - * */ get: operations["volumeActions_get"]; put?: never; @@ -6227,8 +6059,6 @@ export interface paths { /** * List Snapshots for a Volume * @description To retrieve the snapshots that have been created from a volume, send a GET request to `/v2/volumes/$VOLUME_ID/snapshots`. - * - * */ get: operations["volumeSnapshots_list"]; put?: never; @@ -6264,7 +6094,6 @@ export interface paths { * **Note:** If you do not currently have a VPC network in a specific datacenter * region, the first one that you create will be set as the default for that * region. The default VPC for a region cannot be changed or deleted. - * */ post: operations["vpcs_create"]; delete?: never; @@ -6288,7 +6117,6 @@ export interface paths { /** * Update a VPC * @description To update information about a VPC, send a PUT request to `/v2/vpcs/$VPC_ID`. - * */ put: operations["vpcs_update"]; post?: never; @@ -6301,7 +6129,6 @@ export interface paths { * be deleted if it does not contain any member resources. Attempting to delete * a region's default VPC or a VPC that still has members will result in a * 403 Forbidden error response. - * */ delete: operations["vpcs_delete"]; options?: never; @@ -6310,7 +6137,6 @@ export interface paths { * Partially Update a VPC * @description To update a subset of information about a VPC, send a PATCH request to * `/v2/vpcs/$VPC_ID`. - * */ patch: operations["vpcs_patch"]; trace?: never; @@ -6330,7 +6156,6 @@ export interface paths { * To only list resources of a specific type that are members of the VPC, * included a `resource_type` query parameter. For example, to only list Droplets * in the VPC, send a GET request to `/v2/vpcs/$VPC_ID/members?resource_type=droplet`. - * */ get: operations["vpcs_list_members"]; put?: never; @@ -6352,7 +6177,6 @@ export interface paths { * List the Peerings of a VPC * @description To list all of a VPC's peerings, send a GET request to * `/v2/vpcs/$VPC_ID/peerings`. - * */ get: operations["vpcs_list_peerings"]; put?: never; @@ -6360,7 +6184,6 @@ export interface paths { * Create a Peering with a VPC * @description To create a new VPC peering for a given VPC, send a POST request to * `/v2/vpcs/$VPC_ID/peerings`. - * */ post: operations["vpcs_create_peerings"]; delete?: never; @@ -6387,7 +6210,6 @@ export interface paths { * @description To update the name of a VPC peering in a particular VPC, send a PATCH request * to `/v2/vpcs/$VPC_ID/peerings/$VPC_PEERING_ID` with the new `name` in the * request body. - * */ patch: operations["vpcs_patch_peerings"]; trace?: never; @@ -6411,7 +6233,6 @@ export interface paths { * specifying a name and a list of two VPC IDs to peer. The response code, 202 * Accepted, does not indicate the success or failure of the operation, just * that the request has been accepted for processing. - * */ post: operations["vpcPeerings_create"]; delete?: never; @@ -6430,7 +6251,6 @@ export interface paths { /** * Retrieve an Existing VPC Peering * @description To show information about an existing VPC Peering, send a GET request to `/v2/vpc_peerings/$VPC_PEERING_ID`. - * */ get: operations["vpcPeerings_get"]; put?: never; @@ -6438,7 +6258,6 @@ export interface paths { /** * Delete a VPC peering * @description To delete a VPC peering, send a DELETE request to `/v2/vpc_peerings/$VPC_PEERING_ID`. - * */ delete: operations["vpcPeerings_delete"]; options?: never; @@ -6446,7 +6265,6 @@ export interface paths { /** * Update a VPC peering * @description To update the name of a VPC peering, send a PATCH request to `/v2/vpc_peerings/$VPC_PEERING_ID` with the new `name` in the request body. - * */ patch: operations["vpcPeerings_patch"]; trace?: never; @@ -6468,7 +6286,6 @@ export interface paths { * Create a New Check * @description To create an Uptime check, send a POST request to `/v2/uptime/checks` specifying the attributes * in the table below in the JSON body. - * */ post: operations["uptime_create_check"]; delete?: never; @@ -6492,7 +6309,6 @@ export interface paths { /** * Update a Check * @description To update the settings of an Uptime check, send a PUT request to `/v2/uptime/checks/$CHECK_ID`. - * */ put: operations["uptime_update_check"]; post?: never; @@ -6503,7 +6319,6 @@ export interface paths { * * * Deleting a check will also delete alerts associated with the check. - * */ delete: operations["uptime_delete_check"]; options?: never; @@ -6548,7 +6363,6 @@ export interface paths { * Create a New Alert * @description To create an Uptime alert, send a POST request to `/v2/uptime/checks/$CHECK_ID/alerts` specifying the attributes * in the table below in the JSON body. - * */ post: operations["uptime_create_alert"]; delete?: never; @@ -6572,7 +6386,6 @@ export interface paths { /** * Update an Alert * @description To update the settings of an Uptime alert, send a PUT request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`. - * */ put: operations["uptime_update_alert"]; post?: never; @@ -6580,7 +6393,6 @@ export interface paths { * Delete an Alert * @description To delete an Uptime alert, send a DELETE request to `/v2/uptime/checks/$CHECK_ID/alerts/$ALERT_ID`. A 204 status * code with no body will be returned in response to a successful request. - * */ delete: operations["uptime_delete_alert"]; options?: never; @@ -7231,12 +7043,14 @@ export interface components { }; backward_links: components["schemas"]["link_to_first_page"] & components["schemas"]["link_to_prev_page"]; page_links: { - /** @example { + /** + * @example { * "pages": { * "first": "https://api.digitalocean.com/v2/account/keys?page=1", * "prev": "https://api.digitalocean.com/v2/account/keys?page=2" * } - * } */ + * } + */ pages?: components["schemas"]["forward_links"] | components["schemas"]["backward_links"] | unknown; }; pagination: { @@ -7969,7 +7783,6 @@ export interface components { * * - `HTTP`: The app is serving the HTTP protocol. Default. * - `HTTP2`: The app is serving the HTTP/2 protocol. Currently, this needs to be implemented in the service by serving HTTP/2 cleartext (h2c). - * * @example HTTP * @enum {string} */ @@ -8291,8 +8104,10 @@ export interface components { workers?: components["schemas"]["app_worker_spec"][]; /** @description Workloads which expose publicly-accessible HTTP services via Functions Components. */ functions?: components["schemas"]["app_functions_spec"][]; - /** @description Database instances which can provide persistence to workloads within the - * application. */ + /** + * @description Database instances which can provide persistence to workloads within the + * application. + */ databases?: components["schemas"]["app_database_spec"][]; ingress?: components["schemas"]["app_ingress_spec"]; egress?: components["schemas"]["app_egress_spec"]; @@ -8855,9 +8670,11 @@ export interface components { alerts?: components["schemas"]["app_alert"][]; }; apps_assign_app_alert_destinations_request: { - /** @example [ + /** + * @example [ * "sammy@digitalocean.com" - * ] */ + * ] + */ emails?: components["schemas"]["app_alert_email"][]; slack_webhooks?: components["schemas"]["app_alert_slack_webhook"][]; }; @@ -8891,7 +8708,6 @@ export interface components { * Warning conditions: * - `static_site_requires_rebuild` - indicates that the deployment contains at least one static site that will require a rebuild. * - `image_source_missing_digest` - indicates that the deployment contains at least one component with an image source that is missing a digest. - * * @example exceeded_revision_limit * @enum {string} */ @@ -8901,9 +8717,11 @@ export interface components { * @example the deployment is past the maximum historical revision limit of 0 for the "starter" app tier */ message?: string; - /** @example [ + /** + * @example [ * "www" - * ] */ + * ] + */ components?: string[]; }; /** @description Bandwidth usage for an app. */ @@ -9661,7 +9479,6 @@ export interface components { * or `caching_sha2_password`. If excluded when creating a new user, the * default for the version of MySQL in use will be used. As of MySQL 8.0, the * default is `caching_sha2_password`. - * * @example mysql_native_password * @enum {string} */ @@ -9671,7 +9488,6 @@ export interface components { /** * @description For Postgres clusters, set to `true` for a user with replication rights. * This option is not currently supported for other database engines. - * * @example true */ pg_allow_replication?: boolean; @@ -9718,7 +9534,6 @@ export interface components { /** * @description A string representing the database user's role. The value will be either * "primary" or "normal". - * * @example normal * @enum {string} */ @@ -9937,7 +9752,7 @@ export interface components { * ] */ readonly db_names?: string[] | null; - /** @description The connection details for OpenSearch dashboard. */ + /** @description The connection details for OpenSearch dashboard. */ ui_connection?: components["schemas"]["opensearch_connection"] & unknown; connection?: components["schemas"]["database_connection"] & unknown; private_connection?: components["schemas"]["database_connection"] & unknown; @@ -10540,7 +10355,6 @@ export interface components { * @description Require SSL to access Redis. * - When enabled, Redis accepts only SSL connections on port `25061`. * - When disabled, port `25060` is opened for non-SSL connections, while port `25061` remains available for SSL connections. - * * @default true * @example true */ @@ -11566,7 +11380,6 @@ export interface components { * @description Conditional (required if `format` == `custom`). * * Syslog log line template for a custom format, supporting limited rsyslog style templating (using `%tag%`). Supported tags are: `HOSTNAME`, `app-name`, `msg`, `msgid`, `pri`, `procid`, `structured-data`, `timestamp` and `timestamp:::date-rfc3339`. - * * @example <%pri%>%timestamp:::date-rfc3339% %HOSTNAME% %app-name% %msg% */ logline?: string; @@ -11652,14 +11465,16 @@ export interface components { ca?: string; }; logsink_verbose: components["schemas"]["logsink_base_verbose"] & { - /** @example { + /** + * @example { * "config": { * "server": "192.168.0.1", * "port": 514, * "tls": false, * "format": "rfc5424" * } - * } */ + * } + */ config?: components["schemas"]["rsyslog_logsink"] | components["schemas"]["elasticsearch_logsink"] | components["schemas"]["opensearch_logsink"]; }; logsink_base: { @@ -11762,7 +11577,6 @@ export interface components { * example.com. 1800 IN NS ns2.digitalocean.com. * example.com. 1800 IN NS ns3.digitalocean.com. * example.com. 1800 IN A 1.2.3.4 - * */ readonly zone_file?: string | null; }; @@ -11855,7 +11669,6 @@ export interface components { * The current [kernel](https://docs.digitalocean.com/products/droplets/how-to/kernel/) * for Droplets with externally managed kernels. This will initially be set to * the kernel of the base image when the Droplet is created. - * */ kernel: { /** @@ -12100,7 +11913,6 @@ export interface components { * * For private interfaces, a gateway is not provided. This is denoted by * returning `nil` as its value. - * * @example 104.236.0.1 */ gateway?: string; @@ -12133,7 +11945,6 @@ export interface components { * @description The type of the IPv6 network interface. * * **Note**: IPv6 private networking is not currently supported. - * * @example public * @enum {string} */ @@ -12332,7 +12143,6 @@ export interface components { * @example #cloud-config * runcmd: * - touch /test.txt - * */ user_data?: string; /** @@ -12468,7 +12278,6 @@ export interface components { /** * @description An array of integers representing the hours of the day that a backup can * start. - * * @example [ * 0, * 4, @@ -12511,24 +12320,28 @@ export interface components { */ type: "enable_backups" | "disable_backups" | "power_cycle" | "shutdown" | "power_off" | "power_on" | "enable_ipv6"; }; - /** @example { + /** + * @example { * "type": "enable_backups", * "backup_policy": { * "plan": "daily", * "hour": 20 * } - * } */ + * } + */ droplet_action_enable_backups: components["schemas"]["droplet_action"] & { backup_policy?: components["schemas"]["droplet_backup_policy"] & unknown; }; - /** @example { + /** + * @example { * "type": "enable_backups", * "backup_policy": { * "plan": "weekly", * "day": "SUN", * "hour": 20 * } - * } */ + * } + */ droplet_action_change_backup_policy: components["schemas"]["droplet_action"] & { backup_policy: components["schemas"]["droplet_backup_policy"] & unknown; }; @@ -12898,7 +12711,6 @@ export interface components { * @example #cloud-config * runcmd: * - touch /test.txt - * */ user_data?: string; }; @@ -13179,8 +12991,7 @@ export interface components { */ label: string; }; - /** @description Trigger details for SCHEDULED type, where body is optional. - * */ + /** @description Trigger details for SCHEDULED type, where body is optional. */ scheduled_details: { /** * @description valid cron expression string which is required for SCHEDULED type triggers. @@ -13279,7 +13090,8 @@ export interface components { distribution?: components["schemas"]["distribution"]; description?: components["schemas"]["image_description"]; }; - /** @example { + /** + * @example { * "name": "ubuntu-18.04-minimal", * "url": "http://cloud-images.ubuntu.com/minimal/releases/bionic/release/ubuntu-18.04-minimal-cloudimg-amd64.img", * "distribution": "Ubuntu", @@ -13289,7 +13101,8 @@ export interface components { * "base-image", * "prod" * ] - * } */ + * } + */ image_new_custom: WithRequired & { /** * @description A URL from which the custom Linux virtual machine image may be retrieved. The image it points to must be in the raw, qcow2, vhdx, vdi, or vmdk format. It may be compressed using gzip or bzip2 and must be smaller than 100 GB after being decompressed. @@ -13706,7 +13519,6 @@ export interface components { * Newly created Kubernetes clusters do not return credentials using * certificate-based authentication. For additional information, * [see here](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/#authenticate). - * * @example null */ client_certificate_data?: string | null; @@ -13720,7 +13532,6 @@ export interface components { * Newly created Kubernetes clusters do not return credentials using * certificate-based authentication. For additional information, * [see here](https://docs.digitalocean.com/products/kubernetes/how-to/connect-to-cluster/#authenticate). - * * @example null */ client_key_data?: string | null; @@ -13908,7 +13719,6 @@ export interface components { forwarding_rule: { /** * @description The protocol used for traffic to the load balancer. The possible values are: `http`, `https`, `http2`, `http3`, `tcp`, or `udp`. If you set the `entry_protocol` to `udp`, the `target_protocol` must be set to `udp`. When using UDP, the load balancer requires that you set up a health check with a port that uses TCP, HTTP, or HTTPS to work properly. - * * @example https * @enum {string} */ @@ -13920,7 +13730,6 @@ export interface components { entry_port: number; /** * @description The protocol used for traffic from the load balancer to the backend Droplets. The possible values are: `http`, `https`, `http2`, `tcp`, or `udp`. If you set the `target_protocol` to `udp`, the `entry_protocol` must be set to `udp`. When using UDP, the load balancer requires that you set up a health check with a port that uses TCP, HTTP, or HTTPS to work properly. - * * @example http * @enum {string} */ @@ -14284,13 +14093,17 @@ export interface components { description: string; /** @example true */ enabled: boolean; - /** @example [ + /** + * @example [ * "192018292" - * ] */ + * ] + */ entities: string[]; - /** @example [ + /** + * @example [ * "droplet_tag" - * ] */ + * ] + */ tags: string[]; /** * @example v1/insights/droplet/cpu @@ -14324,13 +14137,17 @@ export interface components { description: string; /** @example true */ enabled: boolean; - /** @example [ + /** + * @example [ * "192018292" - * ] */ + * ] + */ entities: string[]; - /** @example [ + /** + * @example [ * "droplet_tag" - * ] */ + * ] + */ tags: string[]; /** * @example v1/insights/droplet/cpu @@ -14438,7 +14255,6 @@ export interface components { /** * @description The destination type. `opensearch_dbaas` for a DigitalOcean managed OpenSearch * cluster or `opensearch_ext` for an externally managed one. - * * @example opensearch_dbaas * @enum {unknown} */ @@ -14489,7 +14305,6 @@ export interface components { /** * @description The destination type. `opensearch_dbaas` for a DigitalOcean managed OpenSearch * cluster or `opensearch_ext` for an externally managed one. - * * @enum {unknown} */ type: "opensearch_dbaas" | "opensearch_ext"; @@ -14553,7 +14368,6 @@ export interface components { /** * @description The destination type. `opensearch_dbaas` for a DigitalOcean managed OpenSearch * cluster or `opensearch_ext` for an externally managed one. - * * @example opensearch_dbaas * @enum {unknown} */ @@ -14620,7 +14434,6 @@ export interface components { * * If another value for purpose is specified, for example, "your custom purpose", * your purpose will be stored as `Other: your custom purpose`. - * * @example Service or API */ purpose?: string; @@ -15131,8 +14944,10 @@ export interface components { */ last_tagged_uri?: string; }; - /** @description A tag is a label that can be applied to a resource (currently Droplets, Images, Volumes, Volume Snapshots, and Database clusters) in order to better organize or facilitate the lookups and actions on it. - * Tags have two attributes: a user defined `name` attribute and an embedded `resources` attribute with information about resources that have been tagged. */ + /** + * @description A tag is a label that can be applied to a resource (currently Droplets, Images, Volumes, Volume Snapshots, and Database clusters) in order to better organize or facilitate the lookups and actions on it. + * Tags have two attributes: a user defined `name` attribute and an embedded `resources` attribute with information about resources that have been tagged. + */ tags: { /** * @description The name of the tag. Tags may contain letters, numbers, colons, dashes, and underscores. @@ -15143,7 +14958,6 @@ export interface components { * When working with tags in the API, you must use the tag's canonical capitalization. For example, if you create a tag named "PROD", the URL to add that tag to a resource would be `https://api.digitalocean.com/v2/tags/PROD/resources` (not `/v2/tags/prod/resources`). * * Tagged resources in the control panel will always display the canonical capitalization. For example, if you create a tag named "PROD", you can tag resources in the control panel by entering "prod". The tag will still display with its canonical capitalization, "PROD". - * * @example extra-awesome */ name?: string; @@ -15265,7 +15079,8 @@ export interface components { tags?: components["schemas"]["tags_array"]; }; volume_full: components["schemas"]["volume_base"] & { - /** @example { + /** + * @example { * "name": "New York 1", * "slug": "nyc1", * "sizes": [ @@ -15291,7 +15106,8 @@ export interface components { * "metadata" * ], * "available": true - * } */ + * } + */ readonly region?: unknown & components["schemas"]["region"]; /** * @description The type of filesystem currently in-use on the volume. @@ -15793,9 +15609,11 @@ export interface components { * @example 2023-01-01T00:00:00Z */ created_at?: string; - /** @example [ + /** + * @example [ * "example string" - * ] */ + * ] + */ data_source_uuids?: string[]; /** * Format: date-time @@ -17215,10 +17033,12 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "example_error", * "message": "some error message" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -17245,10 +17065,12 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "unauthorized", * "message": "Unable to authenticate you." - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -17261,10 +17083,12 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "too_many_requests", * "message": "API Rate limit exceeded." - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -17277,18 +17101,21 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "server_error", * "message": "Unexpected server-side error" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; - /** @description The response will verify that a job has been successfully created to install a 1-Click. The + /** + * @description The response will verify that a job has been successfully created to install a 1-Click. The * post-installation lifecycle of a 1-Click application can not be managed via the DigitalOcean * API. For additional details specific to the 1-Click, find and view its * [DigitalOcean Marketplace](https://marketplace.digitalocean.com) page. - * */ + */ oneClicks_create: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -17371,10 +17198,12 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "not_found", * "message": "The resource you requested could not be found." - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -17473,9 +17302,11 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "b7d64052-3706-4cb7-b21a-c5a2f44e63b3" - * } */ + * } + */ "application/json": components["schemas"]["apps_delete_app_response"]; }; }; @@ -17707,8 +17538,10 @@ export interface components { } & components["schemas"]["pagination"] & components["schemas"]["meta"]; }; }; - /** @description The response will be a JSON object with a key called `certificate`. The value of this will be an object that contains the standard attributes associated with a certificate. - * When using Let's Encrypt, the initial value of the certificate's `state` attribute will be `pending`. When the certificate has been successfully issued by Let's Encrypt, this will transition to `verified` and be ready for use. */ + /** + * @description The response will be a JSON object with a key called `certificate`. The value of this will be an object that contains the standard attributes associated with a certificate. + * When using Let's Encrypt, the initial value of the certificate's `state` attribute will be `pending`. When the certificate has been successfully issued by Let's Encrypt, this will transition to `verified` and be ready for use. + */ new_certificate: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -17745,12 +17578,14 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "month_to_date_balance": "23.44", * "account_balance": "12.23", * "month_to_date_usage": "11.21", * "generated_at": "2019-07-09T15:01:12Z" - * } */ + * } + */ "application/json": components["schemas"]["balance"]; }; }; @@ -17768,8 +17603,10 @@ export interface components { } & components["schemas"]["pagination"] & components["schemas"]["meta_optional_total"]; }; }; - /** @description The response will be a JSON object contains that contains a list of invoices under the `invoices` key, and the invoice preview under the `invoice_preview` key. - * Each element contains the invoice summary attributes. */ + /** + * @description The response will be a JSON object contains that contains a list of invoices under the `invoices` key, and the invoice preview under the `invoice_preview` key. + * Each element contains the invoice summary attributes. + */ invoices: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -17808,10 +17645,11 @@ export interface components { [name: string]: unknown; }; content: { - /** @example product,group_description,description,hours,start,end,USD,project_name,category + /** + * @example product,group_description,description,hours,start,end,USD,project_name,category * Floating IPs,,Unused Floating IP - 1.1.1.1,100,2020-07-01 00:00:00 +0000,2020-07-22 18:14:39 +0000,$3.11,,iaas * Taxes,,STATE SALES TAX (6.25%),,2020-07-01 00:00:00 +0000,2020-07-31 23:59:59 +0000,$0.16,,iaas - * */ + */ "text/csv": string; }; }; @@ -17837,7 +17675,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "invoice_uuid": "22737513-0ea7-4206-8ceb-98a575af7681", * "invoice_id": "123456789", * "billing_period": "2020-01", @@ -17882,7 +17721,8 @@ export interface components { * "name": "Credits & adjustments", * "amount": "6.78" * } - * } */ + * } + */ "application/json": components["schemas"]["invoice_summary"]; }; }; @@ -17895,7 +17735,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "options": { * "kafka": { * "regions": [ @@ -18505,7 +18346,8 @@ export interface components { * } * ] * } - * } */ + * } + */ "application/json": components["schemas"]["options"]; }; }; @@ -18518,7 +18360,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "databases": [ * { * "id": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30", @@ -18576,7 +18419,8 @@ export interface components { * "storage_size_mib": 61440 * } * ] - * } */ + * } + */ "application/json": { databases?: components["schemas"]["database_cluster"][]; }; @@ -18591,7 +18435,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "database": { * "id": "9cc10173-e9ea-4176-9dbc-a4cee4c4ff30", * "name": "backend", @@ -18666,7 +18511,8 @@ export interface components { * "version_end_of_availability": "2023-05-09T00:00:00Z", * "storage_size_mib": 61440 * } - * } */ + * } + */ "application/json": { database: components["schemas"]["database_cluster"]; }; @@ -18681,12 +18527,14 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "config": { * "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES", * "sql_require_primary_key": true * } - * } */ + * } + */ "application/json": { config: components["schemas"]["mysql_advanced_config"] | components["schemas"]["postgres_advanced_config"] | components["schemas"]["redis_advanced_config"] | components["schemas"]["kafka_advanced_config"] | components["schemas"]["opensearch_advanced_config"] | components["schemas"]["mongo_advanced_config"]; }; @@ -18701,11 +18549,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "ca": { * "certificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVRVENDQXFtZ0F3SUJBZ0lVRUZZWTdBWFZQS0Raam9jb1lpMk00Y0dvcU0wd0RRWUpLb1pJaHZjTkFRRU0KQlFBd09qRTRNRFlHQTFVRUF3d3ZOek0zT1RaaE1XRXRaamhrTUMwME9HSmpMV0V4Wm1NdFpqbGhNVFZsWXprdwpORGhsSUZCeWIycGxZM1FnUTBFd0hoY05NakF3TnpFM01UVTFNREEyV2hjTk16QXdOekUxTVRVMU1EQTJXakE2Ck1UZ3dOZ1lEVlFRRERDODNNemM1Tm1FeFlTMW1PR1F3TFRRNFltTXRZVEZtWXkxbU9XRXhOV1ZqT1RBME9HVWcKVUhKdmFtVmpkQ0JEUVRDQ0FhSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnR1BBRENDQVlvQ2dnR0JBTVdScXhycwpMZnpNdHZyUmxKVEw4MldYMVBLZkhKbitvYjNYcmVBY3FZd1dBUUp2Q3IycmhxSXZieVZzMGlaU0NzOHI4c3RGClljQ0R1bkxJNmUwTy9laERZYTBIT2RrMkFFRzE1ckVOVmNha2NSczcyQWlHVHNrdkNXS2VkUjFTUWswVWt0WCsKQUg4S1ExS3F5bzNtZ2Y2cVV1WUpzc3JNTXFselk3YTN1RVpEb2ZqTjN5Q3MvM21pTVJKcVcyNm1JV0IrUUlEbAo5YzdLRVF5MTZvdCtjeHVnd0lLMm9oZHMzaFY1bjBKMFVBM0I3QWRBdXY5aUl5L3JHaHlTNm5CNTdaWm9JZnAyCnFybXdOY0UrVjlIdXhQSGtRVjFOQjUwOFFudWZ4Z0E5VCtqU2VrdGVUbWFORkxqNjFXL3BtcndrTytOaWFXUTIKaGgzVXBKOEozY1BoNkErbHRnUmpSV2NEb2lsYVNwRVVpU09WemNNYVFvalZKYVJlNk9NbnZYc29NaSs3ZzdneApWcittQ0lUcGcvck9DaXpBWWQ2UFAxLzdYTjk1ZXNmU2tBQnM5c3hJakpjTUFqbDBYTEFzRmtGZVdyeHNIajlVCmJnaDNWYXdtcnpUeXhZT0RQcXV1cS9JcGlwc0RRT3Fpb2ZsUStkWEJJL3NUT0NNbVp6K0pNcG5HYXdJREFRQUIKb3o4d1BUQWRCZ05WSFE0RUZnUVVSekdDRlE3WEtUdHRDN3JzNS8ydFlQcExTZGN3RHdZRFZSMFRCQWd3QmdFQgovd0lCQURBTEJnTlZIUThFQkFNQ0FRWXdEUVlKS29aSWh2Y05BUUVNQlFBRGdnR0JBSWFKQ0dSVVNxUExtcmcvCmk3MW10b0NHUDdzeG1BVXVCek1oOEdrU25uaVdaZnZGMTRwSUtqTlkwbzVkWmpHKzZqK1VjalZtK0RIdGE1RjYKOWJPeEk5S0NFeEI1blBjRXpMWjNZYitNOTcrellxbm9zUm85S21DVFJBb2JrNTZ0WU1FS1h1aVJja2tkMm1yUQo4cGw2N2xxdThjM1V4c0dHZEZVT01wMkk3ZTNpdUdWVm5UR0ZWM3JQZUdaQ0J3WGVyUUQyY0F4UjkzS3BnWVZ2ClhUUzk5dnpSbm1HOHhhUm9EVy9FbEdXZ2xWd0Q5a1JrbXhUUkdoYTdDWVZCcjFQVWY2dVVFVjhmVFIxc1hFZnIKLytMR1JoSVVsSUhWT3l2Yzk3YnZYQURPbWF1MWZDVE5lWGtRdTNyZnZFSlBmaFlLeVIwT0V3eWVvdlhRNzl0LwpTV2ZGTjBreU1Pc1UrNVNIdHJKSEh1eWNWcU0yQlVVK083VjM1UnNwOU9MZGRZMFFVbTZldFpEVEhhSUhYYzRRCnl1Rm1OL1NhSFZtNE0wL3BTVlJQdVd6TmpxMnZyRllvSDRtbGhIZk95TUNJMjc2elE2aWhGNkdDSHlkOUJqajcKUm1UWGEyNHM3NWhmSi9YTDV2bnJSdEtpVHJlVHF6V21EOVhnUmNMQ0gyS1hJaVRtSWc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==" * } - * } */ + * } + */ "application/json": { ca: components["schemas"]["ca"]; }; @@ -18720,11 +18570,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "77b28fc8-19ff-11eb-8c9c-c68e24557488", * "status": "running", * "created_at": "2020-10-29T15:57:38Z" - * } */ + * } + */ "application/json": components["schemas"]["online_migration"]; }; }; @@ -18747,7 +18599,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "rules": [ * { * "uuid": "79f26d28-ea8a-41f2-8ad8-8cfcdd020095", @@ -18778,7 +18631,8 @@ export interface components { * "created_at": "2019-11-14T20:30:28Z" * } * ] - * } */ + * } + */ "application/json": { rules?: components["schemas"]["firewall_rule"][]; }; @@ -18793,7 +18647,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "backups": [ * { * "created_at": "2019-01-11T18:42:27Z", @@ -18804,7 +18659,8 @@ export interface components { * "size_gigabytes": 0.03364864 * } * ] - * } */ + * } + */ "application/json": { backups: components["schemas"]["backup"][]; }; @@ -18819,7 +18675,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "replicas": [ * { * "name": "read-nyc3-01", @@ -18846,7 +18703,8 @@ export interface components { * "created_at": "2019-01-11T18:37:36Z" * } * ] - * } */ + * } + */ "application/json": { replicas?: components["schemas"]["database_replica"][]; }; @@ -18861,7 +18719,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "replica": { * "name": "read-nyc3-01", * "connection": { @@ -18886,7 +18745,8 @@ export interface components { * "status": "online", * "created_at": "2019-01-11T18:37:36Z" * } - * } */ + * } + */ "application/json": { replica?: components["schemas"]["database_replica"]; }; @@ -18901,7 +18761,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "events": [ * { * "id": "pe8u2huh", @@ -18916,7 +18777,8 @@ export interface components { * "create_time": "2023-10-30T15:57:38Z" * } * ] - * } */ + * } + */ "application/json": { events?: components["schemas"]["events_logs"][]; }; @@ -18931,7 +18793,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "users": [ * { * "name": "app-01", @@ -18944,7 +18807,8 @@ export interface components { * "password": "wv78n3zpz42xezd" * } * ] - * } */ + * } + */ "application/json": { users?: components["schemas"]["database_user"][]; }; @@ -18973,7 +18837,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "dbs": [ * { * "name": "alpha" @@ -18982,7 +18847,8 @@ export interface components { * "name": "defaultdb" * } * ] - * } */ + * } + */ "application/json": { dbs?: components["schemas"]["database"][]; }; @@ -18997,11 +18863,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "db": { * "name": "alpha" * } - * } */ + * } + */ "application/json": { db: components["schemas"]["database"]; }; @@ -19016,7 +18884,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "pools": [ * { * "user": "doadmin", @@ -19051,7 +18920,8 @@ export interface components { * } * } * ] - * } */ + * } + */ "application/json": components["schemas"]["connection_pools"]; }; }; @@ -19064,7 +18934,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "pool": { * "user": "doadmin", * "name": "backend-pool", @@ -19081,7 +18952,8 @@ export interface components { * "ssl": true * } * } - * } */ + * } + */ "application/json": { pool: components["schemas"]["connection_pool"]; }; @@ -19110,9 +18982,11 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES" - * } */ + * } + */ "application/json": components["schemas"]["sql_mode"]; }; }; @@ -19125,7 +18999,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "topics": [ * { * "name": "customer-events", @@ -19140,7 +19015,8 @@ export interface components { * "partition_count": 10 * } * ] - * } */ + * } + */ "application/json": { topics?: components["schemas"]["kafka_topic"][]; }; @@ -19155,7 +19031,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "topic": { * "name": "customer-events", * "partitions": [ @@ -19211,7 +19088,8 @@ export interface components { * "segment_ms": 604800000 * } * } - * } */ + * } + */ "application/json": { topic?: components["schemas"]["kafka_topic_verbose"]; }; @@ -19226,7 +19104,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "sinks": [ * { * "sink_id": "799990b6-d551-454b-9ffe-b8618e9d6272", @@ -19251,7 +19130,8 @@ export interface components { * } * } * ] - * } */ + * } + */ "application/json": { sinks?: components["schemas"]["logsink_verbose"][]; }; @@ -19280,12 +19160,14 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "credentials": { * "basic_auth_username": "username", * "basic_auth_password": "password" * } - * } */ + * } + */ "application/json": { credentials?: components["schemas"]["database_metrics_credentials"]; }; @@ -19300,7 +19182,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "indexes": [ * { * "index_name": "sample-data", @@ -19321,7 +19204,8 @@ export interface components { * "health": "green" * } * ] - * } */ + * } + */ "application/json": { indexes?: components["schemas"]["opensearch_index"][]; }; @@ -19459,9 +19343,10 @@ export interface components { }; content?: never; }; - /** @description The response will be a JSON object with a key called `droplet`. This will be + /** + * @description The response will be a JSON object with a key called `droplet`. This will be * set to a JSON object that contains the standard Droplet attributes. - * */ + */ existing_droplet: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -19484,7 +19369,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "backups": [ * { * "id": 67539192, @@ -19505,15 +19391,17 @@ export interface components { * "meta": { * "total": 1 * } - * } */ + * } + */ "application/json": { backups?: components["schemas"]["droplet_snapshot"][]; } & components["schemas"]["pagination"] & components["schemas"]["meta"]; }; }; - /** @description The response will be a JSON object with a key called `policy`. This will be + /** + * @description The response will be a JSON object with a key called `policy`. This will be * set to a JSON object that contains the standard Droplet backup policy attributes. - * */ + */ droplet_backup_policy: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -19522,7 +19410,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "policy": { * "droplet_id": 444909706, * "backup_enabled": true, @@ -19538,7 +19427,8 @@ export interface components { * "end": "2024-09-16T00:00:00Z" * } * } - * } */ + * } + */ "application/json": { policy?: components["schemas"]["droplet_backup_policy_record"]; }; @@ -19553,7 +19443,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "policies": { * "436444618": { * "droplet_id": 436444618, @@ -19593,11 +19484,13 @@ export interface components { * "meta": { * "total": 3 * } - * } */ + * } + */ "application/json": { - /** @description A map where the keys are the Droplet IDs and the values are + /** + * @description A map where the keys are the Droplet IDs and the values are * objects containing the backup policy information for each Droplet. - * */ + */ policies?: { [key: string]: components["schemas"]["droplet_backup_policy_record"]; }; @@ -19613,7 +19506,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "supported_policies": [ * { * "name": "weekly", @@ -19652,7 +19546,8 @@ export interface components { * "possible_days": [] * } * ] - * } */ + * } + */ "application/json": { supported_policies?: components["schemas"]["supported_droplet_backup_policy"][]; }; @@ -19667,7 +19562,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "snapshots": [ * { * "id": 6372321, @@ -19686,7 +19582,8 @@ export interface components { * "meta": { * "total": 1 * } - * } */ + * } + */ "application/json": { snapshots?: components["schemas"]["droplet_snapshot"][]; } & components["schemas"]["pagination"] & components["schemas"]["meta"]; @@ -19701,7 +19598,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "actions": [ * { * "id": 982864273, @@ -19744,7 +19642,8 @@ export interface components { * "meta": { * "total": 1 * } - * } */ + * } + */ "application/json": { actions?: components["schemas"]["action"][]; } & components["schemas"]["pagination"] & components["schemas"]["meta"]; @@ -19787,7 +19686,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "kernels": [ * { * "id": 7515, @@ -19804,7 +19704,8 @@ export interface components { * "meta": { * "total": 171 * } - * } */ + * } + */ "application/json": { kernels?: components["schemas"]["kernel"][]; } & components["schemas"]["pagination"] & components["schemas"]["meta"]; @@ -19819,7 +19720,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "firewalls": [ * { * "id": "bb4b2611-3d72-467b-8602-280330ecd65c", @@ -19895,7 +19797,8 @@ export interface components { * "meta": { * "total": 1 * } - * } */ + * } + */ "application/json": { firewalls?: components["schemas"]["firewall"][]; } & components["schemas"]["pagination"] & components["schemas"]["meta"]; @@ -19924,7 +19827,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "reserved_ips": [ * { * "id": "6186916", @@ -19960,7 +19864,8 @@ export interface components { * "cost": "0.04" * } * ] - * } */ + * } + */ "application/json": { reserved_ips?: components["schemas"]["associated_resource"][]; floating_ips?: components["schemas"]["associated_resource"][]; @@ -19979,7 +19884,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "droplet": { * "id": "187000742", * "name": "ubuntu-s-1vcpu-1gb-nyc1-01", @@ -20018,7 +19924,8 @@ export interface components { * }, * "completed_at": "2020-04-01T18:11:49Z", * "failures": 0 - * } */ + * } + */ "application/json": components["schemas"]["associated_resource_status"]; }; }; @@ -20031,10 +19938,12 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "conflict", * "message": "The request could not be completed due to a conflict." - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -20066,9 +19975,10 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `autoscale_pool`. This will be + /** + * @description The response will be a JSON object with a key called `autoscale_pool`. This will be * set to a JSON object that contains the standard autoscale pool attributes. - * */ + */ existing_autoscale_pool: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -20119,7 +20029,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "firewalls": [ * { * "id": "fb6045f1-cf1d-4ca3-bfac-18832663025b", @@ -20172,7 +20083,8 @@ export interface components { * "meta": { * "total": 1 * } - * } */ + * } + */ "application/json": { firewalls?: components["schemas"]["firewall"][]; } & components["schemas"]["pagination"] & components["schemas"]["meta"]; @@ -20187,7 +20099,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "firewall": { * "id": "bb4b2611-3d72-467b-8602-280330ecd65c", * "name": "firewall", @@ -20240,7 +20153,8 @@ export interface components { * } * ] * } - * } */ + * } + */ "application/json": { firewall?: components["schemas"]["firewall"]; }; @@ -20255,11 +20169,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "bad_request", * "message": "error parsing request body", * "request_id": "4851a473-1621-42ea-b2f9-5071c0ea8414" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -20272,7 +20188,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "firewall": { * "id": "bb4b2611-3d72-467b-8602-280330ecd65c", * "name": "firewall", @@ -20319,7 +20236,8 @@ export interface components { * "tags": [], * "pending_changes": [] * } - * } */ + * } + */ "application/json": { firewall?: components["schemas"]["firewall"]; }; @@ -20334,7 +20252,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "firewall": { * "id": "bb4b2611-3d72-467b-8602-280330ecd65c", * "name": "frontend-firewall", @@ -20389,7 +20308,8 @@ export interface components { * } * ] * } - * } */ + * } + */ "application/json": { firewall?: components["schemas"]["firewall"]; }; @@ -20409,8 +20329,10 @@ export interface components { } & components["schemas"]["pagination"] & components["schemas"]["meta"]; }; }; - /** @description The response will be a JSON object with a key called `floating_ip`. The value of this will be an object that contains the standard attributes associated with a floating IP. - * When assigning a floating IP to a Droplet at same time as it created, the response's `links` object will contain links to both the Droplet and the assignment action. The latter can be used to check the status of the action. */ + /** + * @description The response will be a JSON object with a key called `floating_ip`. The value of this will be an object that contains the standard attributes associated with a floating IP. + * When assigning a floating IP to a Droplet at same time as it created, the response's `links` object will contain links to both the Droplet and the assignment action. The latter can be used to check the status of the action. + */ floating_ip_created: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -20477,8 +20399,10 @@ export interface components { }; }; }; - /** @description An array of JSON objects with a key called `namespaces`. Each object represents a namespace and contains - * the properties associated with it. */ + /** + * @description An array of JSON objects with a key called `namespaces`. Each object represents a namespace and contains + * the properties associated with it. + */ list_namespaces: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -20492,8 +20416,10 @@ export interface components { }; }; }; - /** @description A JSON response object with a key called `namespace`. The object contains the properties associated - * with the namespace. */ + /** + * @description A JSON response object with a key called `namespace`. The object contains the properties associated + * with the namespace. + */ namespace_created: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -20516,11 +20442,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "bad_request", * "message": "Invalid request payload: missing label field", * "request_id": "4851a473-1621-42ea-b2f9-5071c0ea8414" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -20533,11 +20461,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "unprocessable_entity", * "message": "namespace limit reached", * "request_id": "a3275238-3d04-4405-a123-55c389b406c0" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -20550,11 +20480,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "forbidden", * "message": "not allowed to get namespace", * "request_id": "b11e45a4-892c-48c9-9001-b6cffe9fe795" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -20567,16 +20499,20 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "not_found", * "message": "namespace not found", * "request_id": "88d17b7a-630b-4083-99ce-5b91045efdb4" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; - /** @description An array of JSON objects with a key called `namespaces`. Each object represents a namespace and contains - * the properties associated with it. */ + /** + * @description An array of JSON objects with a key called `namespaces`. Each object represents a namespace and contains + * the properties associated with it. + */ list_triggers: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -20590,8 +20526,10 @@ export interface components { }; }; }; - /** @description A JSON response object with a key called `trigger`. The object contains the properties associated - * with the trigger. */ + /** + * @description A JSON response object with a key called `trigger`. The object contains the properties associated + * with the trigger. + */ trigger_response: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -20614,11 +20552,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "bad_request", * "message": "validating create trigger: validation error: missing trigger name, missing function name, missing source details", * "request_id": "4851a473-1621-42ea-b2f9-5071c0ea8414" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -20631,11 +20571,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "unprocessable_entity", * "message": "triggers limit reached", * "request_id": "7ba99a43-6618-4fe0-9af7-092752ad0d56" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -20674,7 +20616,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "image": { * "created_at": "2018-09-20T19:28:00Z", * "description": "Cloud-optimized image w/ small footprint", @@ -20690,7 +20633,8 @@ export interface components { * ], * "status": "NEW" * } - * } */ + * } + */ "application/json": { image?: components["schemas"]["image"]; }; @@ -20705,7 +20649,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "image": { * "id": 6918990, * "name": "14.04 x64", @@ -20732,7 +20677,8 @@ export interface components { * "status": "available", * "error_message": "" * } - * } */ + * } + */ "application/json": { image: components["schemas"]["image"]; }; @@ -20747,7 +20693,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "image": { * "id": 7938391, * "name": "new-image-name", @@ -20766,7 +20713,8 @@ export interface components { * "status": "available", * "error_message": "" * } - * } */ + * } + */ "application/json": { image: components["schemas"]["image"]; }; @@ -20781,7 +20729,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "actions": [ * { * "id": 29410565, @@ -20835,7 +20784,8 @@ export interface components { * "meta": { * "total": 5 * } - * } */ + * } + */ "application/json": { actions?: components["schemas"]["action"][]; } & components["schemas"]["pagination"] & components["schemas"]["meta"]; @@ -20850,7 +20800,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "action": { * "id": 36805527, * "status": "in-progress", @@ -20893,7 +20844,8 @@ export interface components { * }, * "region_slug": "nyc3" * } - * } */ + * } + */ "application/json": components["schemas"]["action"]; }; }; @@ -20906,7 +20858,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "action": { * "id": 36805527, * "status": "in-progress", @@ -20949,14 +20902,16 @@ export interface components { * }, * "region_slug": "nyc3" * } - * } */ + * } + */ "application/json": components["schemas"]["action"]; }; }; - /** @description The response will be a JSON object with a key called `kubernetes_clusters`. + /** + * @description The response will be a JSON object with a key called `kubernetes_clusters`. * This will be set to an array of objects, each of which will contain the * standard Kubernetes cluster attributes. - * */ + */ all_clusters: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -20970,7 +20925,8 @@ export interface components { } & components["schemas"]["pagination"] & components["schemas"]["meta"]; }; }; - /** @description The response will be a JSON object with a key called `kubernetes_cluster`. The + /** + * @description The response will be a JSON object with a key called `kubernetes_cluster`. The * value of this will be an object containing the standard attributes of a * Kubernetes cluster. * @@ -20978,7 +20934,7 @@ export interface components { * cluster has finished provisioning. The initial value of the cluster's * `status.state` attribute will be `provisioning`. When the cluster is ready, * this will transition to `running`. - * */ + */ cluster_create: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -20992,10 +20948,11 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `kubernetes_cluster`. The + /** + * @description The response will be a JSON object with a key called `kubernetes_cluster`. The * value of this will be an object containing the standard attributes of a * Kubernetes cluster. - * */ + */ existing_cluster: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21009,10 +20966,11 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `kubernetes_cluster`. The + /** + * @description The response will be a JSON object with a key called `kubernetes_cluster`. The * value of this will be an object containing the standard attributes of a * Kubernetes cluster. - * */ + */ updated_cluster: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21047,7 +21005,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example apiVersion: v1 + /** + * @example apiVersion: v1 * clusters: * - cluster: * certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURUxCUUF3TXpFVk1CTUdBMVVFQ2ftTVJHbG4KYVhSaGJFOWpaV0Z1TVJvd0dUSREERXhGck9ITmhZWE1nUTJ4MWMzUmxjaUJEUVRBZUZ3MHhPREV4TVRVeApOakF3TWpCYUZ3MHpPREV4TVRVeE5qQXdNakJhTURNeEZUQVRCZ05WQkFvVERFUnBaMmwwWVd4UFkyVmhiakVhCk1CZ0dBMVVFQXhNUmF6aHpZV0Z6SUVOc2RYTjBaWElnUTBFd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUIKRHdBd2dnRUtBb0lCQVFDK2Z0L05Nd3pNaUxFZlFvTFU2bDgrY0hMbWttZFVKdjl4SmlhZUpIU0dZOGhPZFVEZQpGd1Zoc0pDTnVFWkpJUFh5Y0orcGpkU3pYc1lFSE03WVNKWk9xNkdaYThPMnZHUlJjN2ZQaUFJaFBRK0ZpUmYzCmRhMHNIUkZlM2hCTmU5ZE5SeTliQ2VCSTRSUlQrSEwzRFR3L2I5KytmRkdZQkRoVTEvTTZUWWRhUHR3WU0rdWgKb1pKcWJZVGJZZTFhb3R1ekdnYUpXaXRhdFdHdnNJYU8xYWthdkh0WEIOOHFxa2lPemdrSDdvd3RVY3JYM05iawozdmlVeFU4TW40MmlJaGFyeHNvTnlwdGhHOWZLMi9OdVdKTXJJS2R0Mzhwc0tkdDBFbng0MWg5K0dsMjUzMzhWCk1mdjBDVDF6SG1JanYwblIrakNkcFd0eFVLRyt0YjYzZFhNbkFnTUJBQUdqUlRCRE1BNEdBMVVkRHdFQi93UUUKQXdJQmhqQVNCZ05WSFJNQkFmOEVDREFHQVFIL0FnRUFNQjBHQTFVZERnUVdCQlNQMmJrOXJiUGJpQnZOd1Z1NQpUL0dwTFdvOTdEQU5CZ2txaGtpRzl3MEJBUXNGQUFPQ0FRRUFEVjFMSGZyc1JiYVdONHE5SnBFVDMxMlluRDZ6Cm5rM3BpU1ZSYVEvM09qWG8wdHJ6Z2N4KzlVTUQxeDRHODI1RnYxc0ROWUExZEhFc2dHUmNyRkVmdGZJQWUrUVYKTitOR3NMRnQrOGZrWHdnUlpoNEU4ZUJsSVlrdEprOWptMzFMT25vaDJYZno0aGs3VmZwYkdvVVlsbmVoak1JZApiL3ZMUk05Y2EwVTJlYTB5OTNveE5pdU9PcXdrZGFjU1orczJtb3JNdGZxc3VRSzRKZDA3SENIbUFIeWpXT2k4ClVOQVUyTnZnSnBKY2RiZ3VzN2I5S3ppR1ZERklFUk04cEo4U1Nob1ZvVFFJd3d5Y2xVTU9EUUJreFFHOHNVRk8KRDE3ZjRod1dNbW5qVHY2MEJBM0dxaTZRcjdsWVFSL3drSEtQcnZjMjhoNXB0NndPWEY1b1M4OUZkUT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K @@ -21065,7 +21024,7 @@ export interface components { * - name: do-nyc1-prod-cluster-01-admin * user: * token: 403d085aaa80102277d8da97ffd2db2b6a4f129d0e2146098fdfb0cec624babc - * */ + */ "application/yaml": unknown; }; }; @@ -21081,13 +21040,14 @@ export interface components { "application/json": components["schemas"]["credentials"]; }; }; - /** @description The response will be a JSON object with a key called + /** + * @description The response will be a JSON object with a key called * `available_upgrade_versions`. The value of this will be an array of objects, * representing the upgrade versions currently available for this cluster. * * If the cluster is up-to-date (i.e. there are no upgrades currently available) * `available_upgrade_versions` will be `null`. - * */ + */ available_upgrades: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21101,10 +21061,11 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `node_pools`. This will + /** + * @description The response will be a JSON object with a key called `node_pools`. This will * be set to an array of objects, each of which will contain the standard node * pool attributes. - * */ + */ all_node_pools: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21113,7 +21074,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "node_pools": [ * { * "id": "cdda885e-7663-40c8-bc74-3a036c66545d", @@ -21207,15 +21169,17 @@ export interface components { * ] * } * ] - * } */ + * } + */ "application/json": { node_pools?: components["schemas"]["kubernetes_node_pool"][]; }; }; }; - /** @description The response will be a JSON object with a key called `node_pool`. The value of + /** + * @description The response will be a JSON object with a key called `node_pool`. The value of * this will be an object containing the standard attributes of a node pool. - * */ + */ node_pool_create: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21229,9 +21193,10 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `node_pool`. The value + /** + * @description The response will be a JSON object with a key called `node_pool`. The value * of this will be an object containing the standard attributes of a node pool. - * */ + */ existing_node_pool: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21245,9 +21210,10 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `node_pool`. The value of + /** + * @description The response will be a JSON object with a key called `node_pool`. The value of * this will be an object containing the standard attributes of a node pool. - * */ + */ node_pool_update: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21261,9 +21227,10 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `kubernetes_cluster_user` + /** + * @description The response will be a JSON object with a key called `kubernetes_cluster_user` * containing the username and in-cluster groups that it belongs to. - * */ + */ cluster_user: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21275,10 +21242,11 @@ export interface components { "application/json": components["schemas"]["user"]; }; }; - /** @description The response will be a JSON object with a key called `options` which contains + /** + * @description The response will be a JSON object with a key called `options` which contains * `regions`, `versions`, and `sizes` objects listing the available options and * the matching slugs for use when creating a new cluster. - * */ + */ all_options: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21290,10 +21258,11 @@ export interface components { "application/json": components["schemas"]["kubernetes_options"]; }; }; - /** @description The response is a JSON object which contains the diagnostics on Kubernetes + /** + * @description The response is a JSON object which contains the diagnostics on Kubernetes * objects in the cluster. Each diagnostic will contain some metadata information * about the object and feedback for users to act upon. - * */ + */ clusterlint_results: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21351,10 +21320,11 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `load_balancer`. The + /** + * @description The response will be a JSON object with a key called `load_balancer`. The * value of this will be an object that contains the standard attributes * associated with a load balancer - * */ + */ existing_load_balancer: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21368,10 +21338,11 @@ export interface components { }; }; }; - /** @description The response will be a JSON object with a key called `load_balancer`. The + /** + * @description The response will be a JSON object with a key called `load_balancer`. The * value of this will be an object containing the standard attributes of a * load balancer. - * */ + */ updated_load_balancer: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21579,10 +21550,12 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "precondition_failed", * "message": "cannot delete a project with resources. move or remove the resources first" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -21747,7 +21720,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "garbage_collections": [ * { * "uuid": "eff0feee-49c7-4e8f-ba5c-a320c109c8a8", @@ -21762,7 +21736,8 @@ export interface components { * "meta": { * "total": 1 * } - * } */ + * } + */ "application/json": { garbage_collections?: components["schemas"]["garbage_collection"][]; }; @@ -21777,7 +21752,8 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "options": { * "available_regions": [ * "nyc3", @@ -21822,12 +21798,15 @@ export interface components { * } * ] * } - * } */ + * } + */ "application/json": { options?: { - /** @example [ + /** + * @example [ * "nyc3" - * ] */ + * ] + */ available_regions?: string[]; subscription_tiers?: (components["schemas"]["subscription_tier_base"] & components["schemas"]["subscription_tier_extended"])[]; }; @@ -21860,8 +21839,10 @@ export interface components { } & components["schemas"]["pagination"] & components["schemas"]["meta"]; }; }; - /** @description The response will be a JSON object with a key called `reserved_ip`. The value of this will be an object that contains the standard attributes associated with a reserved IP. - * When assigning a reserved IP to a Droplet at same time as it created, the response's `links` object will contain links to both the Droplet and the assignment action. The latter can be used to check the status of the action. */ + /** + * @description The response will be a JSON object with a key called `reserved_ip`. The value of this will be an object that contains the standard attributes associated with a reserved IP. + * When assigning a reserved IP to a Droplet at same time as it created, the response's `links` object will contain links to both the Droplet and the assignment action. The latter can be used to check the status of the action. + */ reserved_ip_created: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21956,8 +21937,7 @@ export interface components { } & components["schemas"]["pagination"] & components["schemas"]["meta"]; }; }; - /** @description A JSON object with a key called `snapshot`. - * */ + /** @description A JSON object with a key called `snapshot`. */ snapshots_existing: { headers: { "ratelimit-limit": components["headers"]["ratelimit-limit"]; @@ -21980,11 +21960,13 @@ export interface components { [name: string]: unknown; }; content: { - /** @example { + /** + * @example { * "id": "bad_request", * "message": "the resource is not a snapshot", * "request_id": "bbd8d7d4-2beb-4be1-a374-338e6165e32d" - * } */ + * } + */ "application/json": components["schemas"]["error"]; }; }; @@ -23136,7 +23118,8 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "spec": { * "name": "web-app", * "region": "nyc", @@ -23163,7 +23146,8 @@ export interface operations { * "type": "DEDICATED_IP" * } * } - * } */ + * } + */ "application/json": components["schemas"]["apps_create_app_request"]; }; }; @@ -23715,7 +23699,8 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "spec": { * "name": "web-app", * "region": "nyc", @@ -23740,7 +23725,8 @@ export interface operations { * ] * }, * "app_id": "b6bdf840-2854-4f87-a36c-5f231c617c84" - * } */ + * } + */ "application/json": components["schemas"]["app_propose"]; }; }; @@ -23945,13 +23931,15 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "app_ids": [ * "4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf", * "c2a93513-8d9b-4223-9d61-5e7272c81cf5" * ], * "date": "2023-01-17T00:00:00Z" - * } */ + * } + */ "application/json": components["schemas"]["app_metrics_bandwidth_usage_request"]; }; }; @@ -24520,12 +24508,14 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "config": { * "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,STRICT_ALL_TABLES", * "sql_require_primary_key": true * } - * } */ + * } + */ "application/json": components["schemas"]["database_config"]; }; }; @@ -24599,7 +24589,8 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "source": { * "host": "source-do-user-6607903-0.b.db.ondigitalocean.com", * "dbname": "defaultdb", @@ -24612,7 +24603,8 @@ export interface operations { * "db0", * "db1" * ] - * } */ + * } + */ "application/json": components["schemas"]["source_database"]; }; }; @@ -24701,11 +24693,13 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "size": "db-s-4vcpu-8gb", * "num_nodes": 3, * "storage_size_mib": 163840 - * } */ + * } + */ "application/json": components["schemas"]["database_cluster_resize"]; }; }; @@ -24756,7 +24750,8 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "rules": [ * { * "type": "ip_addr", @@ -24775,7 +24770,8 @@ export interface operations { * "value": "backend" * } * ] - * } */ + * } + */ "application/json": { rules?: components["schemas"]["firewall_rule"][]; }; @@ -24805,10 +24801,12 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "day": "tuesday", * "hour": "14:00" - * } */ + * } + */ "application/json": components["schemas"]["database_maintenance_window"]; }; }; @@ -24905,12 +24903,14 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "name": "read-nyc3-01", * "region": "nyc3", * "size": "db-s-2vcpu-4gb", * "storage_size_mib": 61440 - * } */ + * } + */ "application/json": WithRequired; }; }; @@ -25072,7 +25072,6 @@ export interface operations { /** * @description For MongoDB clusters, set to `true` to create a read-only user. * This option is not currently supported for other database engines. - * * @example true */ readonly?: boolean; @@ -25198,11 +25197,13 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "mysql_settings": { * "auth_plugin": "caching_sha2_password" * } - * } */ + * } + */ "application/json": { mysql_settings?: components["schemas"]["mysql_settings"]; }; @@ -25255,9 +25256,11 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "name": "alpha" - * } */ + * } + */ "application/json": components["schemas"]["database"]; }; }; @@ -25364,13 +25367,15 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "name": "backend-pool", * "mode": "transaction", * "size": 10, * "db": "defaultdb", * "user": "doadmin" - * } */ + * } + */ "application/json": components["schemas"]["connection_pool"]; }; }; @@ -25431,12 +25436,14 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "mode": "transaction", * "size": 10, * "db": "defaultdb", * "user": "doadmin" - * } */ + * } + */ "application/json": components["schemas"]["connection_pool_update"]; }; }; @@ -25515,9 +25522,11 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "eviction_policy": "allkeys_lru" - * } */ + * } + */ "application/json": { eviction_policy: components["schemas"]["eviction_policy_model"]; }; @@ -25570,9 +25579,11 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "sql_mode": "ANSI,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE" - * } */ + * } + */ "application/json": components["schemas"]["sql_mode"]; }; }; @@ -25600,9 +25611,11 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "version": "14" - * } */ + * } + */ "application/json": components["schemas"]["version-2"]; }; }; @@ -25653,7 +25666,8 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "name": "customer-events", * "partitions": 3, * "replication": 2, @@ -25661,7 +25675,8 @@ export interface operations { * "retention_bytes": -1, * "retention_ms": 100000 * } - * } */ + * } + */ "application/json": components["schemas"]["kafka_topic_create"]; }; }; @@ -25722,14 +25737,16 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "partitions": 3, * "replication": 2, * "config": { * "retention_bytes": -1, * "retention_ms": 100000 * } - * } */ + * } + */ "application/json": components["schemas"]["kafka_topic_update"]; }; }; @@ -25868,14 +25885,16 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "config": { * "server": "192.168.0.1", * "port": 514, * "tls": false, * "format": "rfc3164" * } - * } */ + * } + */ "application/json": components["schemas"]["logsink_update"]; }; }; @@ -25942,12 +25961,14 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "credentials": { * "basic_auth_username": "new_username", * "basic_auth_password": "new_password" * } - * } */ + * } + */ "application/json": components["schemas"]["database_metrics_credentials"]; }; }; @@ -26046,9 +26067,11 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "name": "example.com" - * } */ + * } + */ "application/json": components["schemas"]["domain"]; }; }; @@ -26165,7 +26188,8 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "type": "A", * "name": "www", * "data": "162.10.66.0", @@ -26175,7 +26199,8 @@ export interface operations { * "weight": null, * "flags": null, * "tag": null - * } */ + * } + */ "application/json": components["schemas"]["domain_record_a"] | components["schemas"]["domain_record_aaaa"] | components["schemas"]["domain_record_caa"] | components["schemas"]["domain_record_cname"] | components["schemas"]["domain_record_mx"] | components["schemas"]["domain_record_ns"] | components["schemas"]["domain_record_soa"] | components["schemas"]["domain_record_srv"] | components["schemas"]["domain_record_txt"]; }; }; @@ -26236,10 +26261,12 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "name": "blog", * "type": "CNAME" - * } */ + * } + */ "application/json": components["schemas"]["domain_record"]; }; }; @@ -26300,10 +26327,12 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "name": "blog", * "type": "A" - * } */ + * } + */ "application/json": components["schemas"]["domain_record"]; }; }; @@ -26630,10 +26659,11 @@ export interface operations { }; cookie?: never; }; - /** @description The `type` attribute set in the request body will specify the action that + /** + * @description The `type` attribute set in the request body will specify the action that * will be taken on the Droplet. Some actions will require additional * attributes to be set as well. - * */ + */ requestBody?: { content: { "application/json": components["schemas"]["droplet_action"] | components["schemas"]["droplet_action_enable_backups"] | components["schemas"]["droplet_action_change_backup_policy"] | components["schemas"]["droplet_action_restore"] | components["schemas"]["droplet_action_resize"] | components["schemas"]["droplet_action_rebuild"] | components["schemas"]["droplet_action_rename"] | components["schemas"]["droplet_action_change_kernel"] | components["schemas"]["droplet_action_snapshot"]; @@ -26661,10 +26691,11 @@ export interface operations { path?: never; cookie?: never; }; - /** @description The `type` attribute set in the request body will specify the action that + /** + * @description The `type` attribute set in the request body will specify the action that * will be taken on the Droplet. Some actions will require additional * attributes to be set as well. - * */ + */ requestBody?: { content: { "application/json": components["schemas"]["droplet_action"] | components["schemas"]["droplet_action_snapshot"]; @@ -27181,7 +27212,8 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "name": "firewall", * "inbound_rules": [ * { @@ -27221,7 +27253,8 @@ export interface operations { * "droplet_ids": [ * 8043964 * ] - * } */ + * } + */ "application/json": components["schemas"]["firewall"] & unknown & (unknown | unknown); }; }; @@ -27272,7 +27305,8 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "name": "frontend-firewall", * "inbound_rules": [ * { @@ -27315,7 +27349,8 @@ export interface operations { * "tags": [ * "frontend" * ] - * } */ + * } + */ "application/json": components["schemas"]["firewall"] & (unknown | unknown); }; }; @@ -27367,11 +27402,13 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "droplet_ids": [ * 49696269 * ] - * } */ + * } + */ "application/json": { /** * @description An array containing the IDs of the Droplets to be assigned to the firewall. @@ -27408,11 +27445,13 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "droplet_ids": [ * 49696269 * ] - * } */ + * } + */ "application/json": { /** * @description An array containing the IDs of the Droplets to be removed from the firewall. @@ -27449,11 +27488,13 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "tags": [ * "frontend" * ] - * } */ + * } + */ "application/json": { tags: components["schemas"]["existing_tags_array"] & unknown; }; @@ -27484,11 +27525,13 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "tags": [ * "frontend" * ] - * } */ + * } + */ "application/json": { tags: components["schemas"]["existing_tags_array"] & unknown; }; @@ -27519,7 +27562,8 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "inbound_rules": [ * { * "protocol": "tcp", @@ -27542,7 +27586,8 @@ export interface operations { * } * } * ] - * } */ + * } + */ "application/json": components["schemas"]["firewall_rules"] & (unknown | unknown); }; }; @@ -27571,7 +27616,8 @@ export interface operations { }; requestBody?: { content: { - /** @example { + /** + * @example { * "inbound_rules": [ * { * "protocol": "tcp", @@ -27594,7 +27640,8 @@ export interface operations { * } * } * ] - * } */ + * } + */ "application/json": components["schemas"]["firewall_rules"] & (unknown | unknown); }; }; @@ -27737,9 +27784,10 @@ export interface operations { }; cookie?: never; }; - /** @description The `type` attribute set in the request body will specify the action that + /** + * @description The `type` attribute set in the request body will specify the action that * will be taken on the floating IP. - * */ + */ requestBody?: { content: { "application/json": components["schemas"]["floating_ip_action_unassign"] | components["schemas"]["floating_ip_action_assign"]; @@ -28075,13 +28123,14 @@ export interface operations { query?: never; header?: never; path: { - /** @description A unique number (id) or string (slug) used to identify and reference a + /** + * @description A unique number (id) or string (slug) used to identify and reference a * specific image. * * **Public** images can be identified by image `id` or `slug`. * * **Private** images *must* be identified by image `id`. - * */ + */ image_id: number | string; }; cookie?: never; @@ -28569,7 +28618,8 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "size": "s-1vcpu-2gb", * "count": 3, * "name": "new-pool", @@ -28579,7 +28629,8 @@ export interface operations { * "auto_scale": true, * "min_nodes": 3, * "max_nodes": 6 - * } */ + * } + */ "application/json": components["schemas"]["kubernetes_node_pool"]; }; }; @@ -28745,9 +28796,11 @@ export interface operations { requestBody: { content: { "application/json": { - /** @example [ + /** + * @example [ * "d8db5e1a-6103-43b5-a7b3-8a948210a9fc" - * ] */ + * ] + */ nodes?: string[]; }; }; @@ -29204,7 +29257,8 @@ export interface operations { path?: never; cookie?: never; }; - /** @description The `type` field dictates what type of entity that the alert policy applies to and hence what type of entity is passed in the `entities` array. If both the `tags` array and `entities` array are empty the alert policy applies to all entities of the relevant type that are owned by the user account. Otherwise the following table shows the valid entity types for each type of alert policy: + /** + * @description The `type` field dictates what type of entity that the alert policy applies to and hence what type of entity is passed in the `entities` array. If both the `tags` array and `entities` array are empty the alert policy applies to all entities of the relevant type that are owned by the user account. Otherwise the following table shows the valid entity types for each type of alert policy: * * Type | Description | Valid Entity Type * -----|-------------|-------------------- @@ -29244,7 +29298,7 @@ export interface operations { * `v1/droplet/autoscale_alerts/target_memory_utilization` | alert on target average memory utilization | autoscale pool ID * `v1/droplet/autoscale_alerts/scale_up` | alert on scale up event | autoscale pool ID * `v1/droplet/autoscale_alerts/scale_down` | alert on scale down event | autoscale pool ID - * */ + */ requestBody: { content: { "application/json": components["schemas"]["alert_policy_request"]; @@ -29294,7 +29348,8 @@ export interface operations { }; cookie?: never; }; - /** @description The `type` field dictates what type of entity that the alert policy applies to and hence what type of entity is passed in the `entities` array. If both the `tags` array and `entities` array are empty the alert policy applies to all entities of the relevant type that are owned by the user account. Otherwise the following table shows the valid entity types for each type of alert policy: + /** + * @description The `type` field dictates what type of entity that the alert policy applies to and hence what type of entity is passed in the `entities` array. If both the `tags` array and `entities` array are empty the alert policy applies to all entities of the relevant type that are owned by the user account. Otherwise the following table shows the valid entity types for each type of alert policy: * * Type | Description | Valid Entity Type * -----|-------------|-------------------- @@ -29334,7 +29389,7 @@ export interface operations { * `v1/droplet/autoscale_alerts/target_memory_utilization` | alert on target average memory utilization | autoscale pool ID * `v1/droplet/autoscale_alerts/scale_up` | alert on scale up event | autoscale pool ID * `v1/droplet/autoscale_alerts/scale_down` | alert on scale down event | autoscale pool ID - * */ + */ requestBody: { content: { "application/json": components["schemas"]["alert_policy_request"]; @@ -31204,9 +31259,11 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "name": "my-web-api" - * } */ + * } + */ "application/json": components["schemas"]["project"]; }; }; @@ -31308,9 +31365,11 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "name": "my-web-api" - * } */ + * } + */ "application/json": components["schemas"]["project"]; }; }; @@ -32085,9 +32144,10 @@ export interface operations { }; cookie?: never; }; - /** @description The `type` attribute set in the request body will specify the action that + /** + * @description The `type` attribute set in the request body will specify the action that * will be taken on the reserved IP. - * */ + */ requestBody?: { content: { "application/json": components["schemas"]["reserved_ip_action_unassign"] | components["schemas"]["reserved_ip_action_assign"]; @@ -32756,9 +32816,11 @@ export interface operations { }; requestBody: { content: { - /** @example { + /** + * @example { * "name": "big-data-snapshot1475261774" - * } */ + * } + */ "application/json": { /** * @description A human-readable name for the volume snapshot. @@ -33388,14 +33450,15 @@ export interface operations { }; cookie?: never; }; - /** @description The ''type'' field dictates the type of alert, and hence what type of value to pass into the threshold property. + /** + * @description The ''type'' field dictates the type of alert, and hence what type of value to pass into the threshold property. * Type | Description | Threshold Value * -----|-------------|-------------------- * `latency` | alerts on the response latency | milliseconds * `down` | alerts on a target registering as down in any region | N/A (Not required) * `down_global` | alerts on a target registering as down globally | N/A (Not required) * `ssl_expiry` | alerts on a SSL certificate expiring within $threshold days | days - * */ + */ requestBody: { content: { "application/json": components["schemas"]["alert"]; diff --git a/packages/openapi-typescript/examples/github-api-export-type-immutable.ts b/packages/openapi-typescript/examples/github-api-export-type-immutable.ts index 483598b53..4ccd073d1 100644 --- a/packages/openapi-typescript/examples/github-api-export-type-immutable.ts +++ b/packages/openapi-typescript/examples/github-api-export-type-immutable.ts @@ -14790,8 +14790,7 @@ export type paths = { }; /** * Get all contributor commit activity - * @description - * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: + * @description Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: * * * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time). * * `a` - Number of additions @@ -19457,10 +19456,12 @@ export type components = { readonly single_file_name: string | null; /** @example true */ readonly has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ readonly single_file_paths?: readonly string[]; /** @example github-actions */ readonly app_slug: string; @@ -19863,10 +19864,12 @@ export type components = { readonly single_file?: string; /** @example true */ readonly has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ readonly single_file_paths?: readonly string[]; }; /** Scoped Installation */ @@ -19881,10 +19884,12 @@ export type components = { readonly single_file_name: string | null; /** @example true */ readonly has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ readonly single_file_paths?: readonly string[]; /** * Format: uri @@ -20319,7 +20324,8 @@ export type components = { * @example https://api.github.com/codes_of_conduct/contributor_covenant */ readonly url: string; - /** @example # Contributor Covenant Code of Conduct + /** + * @example # Contributor Covenant Code of Conduct * * ## Our Pledge * @@ -20364,7 +20370,7 @@ export type components = { * ## Attribution * * This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/). - * */ + */ readonly body?: string; /** Format: uri */ readonly html_url: string | null; @@ -20961,8 +20967,10 @@ export type components = { readonly resolved_by?: components["schemas"]["nullable-simple-user"]; /** @description The type of secret that secret scanning detected. */ readonly secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ readonly secret_type_display_name?: string; /** @description The secret that was detected. */ readonly secret?: string; @@ -21395,9 +21403,11 @@ export type components = { readonly current_user_actor_url?: string; /** @example https://github.com/octocat-org */ readonly current_user_organization_url?: string; - /** @example [ + /** + * @example [ * "https://github.com/organizations/github/octocat.private.atom?token=abc123" - * ] */ + * ] + */ readonly current_user_organization_urls?: readonly string[]; /** @example https://github.com/security-advisories */ readonly security_advisories_url?: string; @@ -21723,7 +21733,8 @@ export type components = { readonly "gitignore-template": { /** @example C */ readonly name: string; - /** @example # Object files + /** + * @example # Object files * *.o * * # Libraries @@ -21740,7 +21751,7 @@ export type components = { * *.exe * *.out * *.app - * */ + */ readonly source: string; }; /** @@ -21791,25 +21802,30 @@ export type components = { readonly description: string; /** @example Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. */ readonly implementation: string; - /** @example [ + /** + * @example [ * "commercial-use", * "modifications", * "distribution", * "sublicense", * "private-use" - * ] */ + * ] + */ readonly permissions: readonly string[]; - /** @example [ + /** + * @example [ * "include-copyright" - * ] */ + * ] + */ readonly conditions: readonly string[]; - /** @example [ + /** + * @example [ * "no-liability" - * ] */ + * ] + */ readonly limitations: readonly string[]; - /** @example - * - * The MIT License (MIT) + /** + * @example The MIT License (MIT) * * Copyright (c) [year] [fullname] * @@ -21830,7 +21846,7 @@ export type components = { * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ + */ readonly body: string; /** @example true */ readonly featured: boolean; @@ -21872,10 +21888,12 @@ export type components = { readonly unit_name: string | null; /** @example published */ readonly state: string; - /** @example [ + /** + * @example [ * "Up to 25 private repositories", * "11 concurrent builds" - * ] */ + * ] + */ readonly bullets: readonly string[]; }; /** @@ -21920,61 +21938,89 @@ export type components = { readonly SHA256_ECDSA?: string; readonly SHA256_ED25519?: string; }; - /** @example [ + /** + * @example [ * "ssh-ed25519 ABCDEFGHIJKLMNOPQRSTUVWXYZ" - * ] */ + * ] + */ readonly ssh_keys?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly hooks?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly github_enterprise_importer?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly web?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly api?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly git?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly packages?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly pages?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly importer?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly actions?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly actions_macos?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly codespaces?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly dependabot?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly copilot?: readonly string[]; readonly domains?: { readonly website?: readonly string[]; @@ -21987,9 +22033,11 @@ export type components = { readonly wildcard_domains?: readonly string[]; }; readonly artifact_attestations?: { - /** @example [ + /** + * @example [ * "example" - * ] */ + * ] + */ readonly trust_domain?: string; readonly services?: readonly string[]; }; @@ -22811,10 +22859,12 @@ export type components = { readonly github_owned_allowed?: boolean; /** @description Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. */ readonly verified_allowed?: boolean; - /** @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. + /** + * @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. * * > [!NOTE] - * > The `patterns_allowed` setting only applies to public repositories. */ + * > The `patterns_allowed` setting only applies to public repositories. + */ readonly patterns_allowed?: readonly string[]; }; /** @@ -22936,10 +22986,12 @@ export type components = { * @example 2016-07-11T22:14:10Z */ readonly expires_at: string; - /** @example { + /** + * @example { * "issues": "read", * "deployments": "write" - * } */ + * } + */ readonly permissions?: Record; /** @description The repositories this token has access to */ readonly repositories?: readonly components["schemas"]["repository"][]; @@ -23102,8 +23154,10 @@ export type components = { readonly version?: components["schemas"]["code-scanning-analysis-tool-version"]; readonly guid?: components["schemas"]["code-scanning-analysis-tool-guid"]; }; - /** @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, - * `refs/heads/` or simply ``. */ + /** + * @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, + * `refs/heads/` or simply ``. + */ readonly "code-scanning-ref": string; /** @description Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. */ readonly "code-scanning-analysis-analysis-key": string; @@ -23136,8 +23190,10 @@ export type components = { }; readonly location?: components["schemas"]["code-scanning-alert-location"]; readonly html_url?: string; - /** @description Classifications that have been applied to the file that triggered the alert. - * For example identifying it as documentation, or a generated file. */ + /** + * @description Classifications that have been applied to the file that triggered the alert. + * For example identifying it as documentation, or a generated file. + */ readonly classifications?: readonly components["schemas"]["code-scanning-alert-classification"][]; }; readonly "code-scanning-organization-alert-items": { @@ -24204,10 +24260,12 @@ export type components = { readonly deliveries_url?: string; /** @example web */ readonly name: string; - /** @example [ + /** + * @example [ * "push", * "pull_request" - * ] */ + * ] + */ readonly events: readonly string[]; /** @example true */ readonly active: boolean; @@ -24940,8 +24998,10 @@ export type components = { readonly default_value?: (string | readonly string[]) | null; /** @description Short description of the property */ readonly description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ readonly allowed_values?: readonly string[] | null; /** * @description Who can edit the values of the property @@ -24967,8 +25027,10 @@ export type components = { readonly default_value?: (string | readonly string[]) | null; /** @description Short description of the property */ readonly description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ readonly allowed_values?: readonly string[] | null; }; /** @@ -25553,12 +25615,14 @@ export type components = { readonly open_issues_count: number; /** @example true */ readonly is_template?: boolean; - /** @example [ + /** + * @example [ * "octocat", * "atom", * "electron", * "API" - * ] */ + * ] + */ readonly topics?: readonly string[]; /** @example true */ readonly has_issues: boolean; @@ -28656,9 +28720,11 @@ export type components = { readonly url: string; /** @example true */ readonly strict: boolean; - /** @example [ + /** + * @example [ * "continuous-integration/travis-ci" - * ] */ + * ] + */ readonly contexts: readonly string[]; readonly checks: readonly { /** @example continuous-integration/travis-ci */ @@ -29395,8 +29461,10 @@ export type components = { /** @description CodeQL languages to be analyzed. */ readonly languages?: readonly ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[]; }; - /** @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. - * You should not rely on this always being an actions workflow run object. */ + /** + * @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. + * You should not rely on this always being an actions workflow run object. + */ readonly "code-scanning-default-setup-update-response": { /** @description ID of the corresponding run. */ readonly run_id?: number; @@ -33169,8 +33237,10 @@ export type components = { readonly resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ readonly secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ readonly secret_type_display_name?: string; /** @description The secret that was detected. */ readonly secret?: string; @@ -33565,7 +33635,8 @@ export type components = { * @description Commit Activity */ readonly "commit-activity": { - /** @example [ + /** + * @example [ * 0, * 3, * 26, @@ -33573,7 +33644,8 @@ export type components = { * 39, * 1, * 0 - * ] */ + * ] + */ readonly days: readonly number[]; /** @example 89 */ readonly total: number; @@ -33588,14 +33660,16 @@ export type components = { readonly author: components["schemas"]["nullable-simple-user"]; /** @example 135 */ readonly total: number; - /** @example [ + /** + * @example [ * { * "w": "1367712000", * "a": 6898, * "d": 77, * "c": 10 * } - * ] */ + * ] + */ readonly weeks: readonly { readonly w?: number; readonly a?: number; @@ -33770,10 +33844,12 @@ export type components = { readonly language?: string | null; /** Format: date-time */ readonly last_modified_at?: string; - /** @example [ + /** + * @example [ * "73..77", * "77..78" - * ] */ + * ] + */ readonly line_numbers?: readonly string[]; readonly text_matches?: components["schemas"]["search-result-text-matches"]; }; @@ -34541,17 +34617,20 @@ export type components = { readonly key_id: string; /** @example xsBNBFayYZ... */ readonly public_key: string; - /** @example [ + /** + * @example [ * { * "email": "octocat@users.noreply.github.com", * "verified": true * } - * ] */ + * ] + */ readonly emails: readonly { readonly email?: string; readonly verified?: boolean; }[]; - /** @example [ + /** + * @example [ * { * "id": 4, * "primary_key_id": 3, @@ -34566,7 +34645,8 @@ export type components = { * "expires_at": null, * "revoked": false * } - * ] */ + * ] + */ readonly subkeys: readonly { /** Format: int64 */ readonly id?: number; @@ -40016,8 +40096,10 @@ export type components = { readonly resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ readonly secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ readonly secret_type_display_name?: string; /** * @description The token status as of the latest validity check. @@ -52852,10 +52934,12 @@ export type components = { /** @enum {string} */ readonly action: "added"; readonly changes?: { - /** @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` + /** + * @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` * role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role * assigned to the collaborator, use the `role_name` field instead, which will provide the full - * role name, including custom roles. */ + * role name, including custom roles. + */ readonly permission?: { /** @enum {string} */ readonly to: "write" | "admin" | "read"; @@ -54346,8 +54430,10 @@ export type components = { readonly "webhook-projects-v2-item-edited": { /** @enum {string} */ readonly action: "edited"; - /** @description The changes made to the item may involve modifications in the item's fields and draft issue body. - * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. */ + /** + * @description The changes made to the item may involve modifications in the item's fields and draft issue body. + * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. + */ readonly changes?: { readonly field_value: { readonly field_node_id?: string; @@ -87580,41 +87666,55 @@ export type components = { readonly enterprise: string; /** @description The unique identifier of the code security configuration. */ readonly "configuration-id": number; - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ readonly "dependabot-alert-comma-separated-states": string; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ readonly "dependabot-alert-comma-separated-severities": string; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ readonly "dependabot-alert-comma-separated-ecosystems": string; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ readonly "dependabot-alert-comma-separated-packages": string; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ readonly "dependabot-alert-comma-separated-epss": string; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ readonly "dependabot-alert-scope": "development" | "runtime"; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ readonly "dependabot-alert-sort": "created" | "updated" | "epss_percentage"; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ readonly "pagination-first": number; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ readonly "pagination-last": number; /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ readonly "secret-scanning-alert-state": "open" | "resolved"; @@ -87726,10 +87826,12 @@ export type components = { readonly "team-slug": string; /** @description The unique identifier of the role. */ readonly "role-id": number; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ readonly "package-visibility": "public" | "private" | "internal"; /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ readonly "package-type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; @@ -87753,27 +87855,32 @@ export type components = { readonly "fine-grained-personal-access-token-id": number; /** @description The custom property name */ readonly "custom-property-name": string; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ readonly "ruleset-targets": string; /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ readonly "ref-in-query": string; /** @description The name of the repository to filter on. */ readonly "repository-name-in-query": string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ readonly "time-period": "hour" | "day" | "week" | "month"; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ readonly "actor-name-in-query": string; /** @description The rule results to filter on. When specified, only suites with this result will be returned. */ readonly "rule-suite-result": "pass" | "fail" | "bypass" | "all"; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ readonly "rule-suite-id": number; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. */ readonly "secret-scanning-pagination-before-org-repo": string; @@ -87793,10 +87900,12 @@ export type components = { readonly "project-id": number; /** @description The security feature to enable or disable. */ readonly "security-product": "dependency_graph" | "dependabot_alerts" | "dependabot_security_updates" | "advanced_security" | "code_scanning_default_setup" | "secret_scanning" | "secret_scanning_push_protection"; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ readonly "org-security-product-enablement": "enable_all" | "disable_all"; /** @description The unique identifier of the card. */ readonly "card-id": number; @@ -87864,10 +87973,12 @@ export type components = { readonly "commit-ref": string; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ readonly "dependabot-alert-comma-separated-manifests": string; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ readonly "dependabot-alert-number": components["schemas"]["alert-number"]; /** @description The full path, relative to the repository root, of the dependency manifest file. */ readonly "manifest-path": string; @@ -87981,34 +88092,48 @@ export interface operations { readonly ecosystem?: components["schemas"]["security-advisory-ecosystems"]; /** @description If specified, only advisories with these severities will be returned. */ readonly severity?: "unknown" | "low" | "medium" | "high" | "critical"; - /** @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. + /** + * @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. * - * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` */ + * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` + */ readonly cwes?: string | readonly string[]; /** @description Whether to only return advisories that have been withdrawn. */ readonly is_withdrawn?: boolean; - /** @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. + /** + * @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. * If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages. * - * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` */ + * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` + */ readonly affects?: string | readonly string[]; - /** @description If specified, only return advisories that were published on a date or date range. + /** + * @description If specified, only return advisories that were published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ readonly published?: string; - /** @description If specified, only return advisories that were updated on a date or date range. + /** + * @description If specified, only return advisories that were updated on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ readonly updated?: string; - /** @description If specified, only show advisories that were updated or published on a date or date range. + /** + * @description If specified, only show advisories that were updated or published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ readonly modified?: string; - /** @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. - * The EPSS percentage represents the likelihood of a CVE being exploited. */ + /** + * @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. + * The EPSS percentage represents the likelihood of a CVE being exploited. + */ readonly epss_percentage?: string; - /** @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. - * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. */ + /** + * @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. + * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. + */ readonly epss_percentile?: string; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly before?: components["parameters"]["pagination-before"]; @@ -89257,9 +89382,11 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ readonly status?: string; }; readonly header?: never; @@ -89289,33 +89416,43 @@ export interface operations { readonly "dependabot/list-alerts-for-enterprise": { readonly parameters: { readonly query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ readonly state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ readonly severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ readonly ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ readonly package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ readonly epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ readonly scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ readonly sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ readonly direction?: components["parameters"]["direction"]; @@ -89323,13 +89460,17 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ readonly first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ readonly last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly per_page?: components["parameters"]["per-page"]; @@ -93108,8 +93249,10 @@ export interface operations { content: { readonly "application/json": { readonly attestations?: readonly { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ readonly bundle?: { readonly mediaType?: string; readonly verificationMaterial?: { @@ -93755,9 +93898,11 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ readonly status?: string; }; readonly header?: never; @@ -94553,33 +94698,43 @@ export interface operations { readonly "dependabot/list-alerts-for-org": { readonly parameters: { readonly query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ readonly state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ readonly severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ readonly ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ readonly package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ readonly epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ readonly scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ readonly sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ readonly direction?: components["parameters"]["direction"]; @@ -94587,13 +94742,17 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ readonly first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ readonly last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly per_page?: components["parameters"]["per-page"]; @@ -96388,10 +96547,12 @@ export interface operations { }; readonly requestBody?: never; readonly responses: { - /** @description * `pending`, which means the migration hasn't started yet. + /** + * @description * `pending`, which means the migration hasn't started yet. * * `exporting`, which means the migration is in progress. * * `exported`, which means the migration finished successfully. - * * `failed`, which means the migration failed. */ + * * `failed`, which means the migration failed. + */ readonly 200: { headers: { readonly [name: string]: unknown; @@ -96951,10 +97112,12 @@ export interface operations { readonly query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ readonly package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ readonly visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly page?: number; @@ -98278,10 +98441,11 @@ export interface operations { readonly per_page?: components["parameters"]["per-page"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly page?: components["parameters"]["page"]; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ readonly targets?: components["parameters"]["ruleset-targets"]; }; readonly header?: never; @@ -98358,9 +98522,11 @@ export interface operations { readonly ref?: components["parameters"]["ref-in-query"]; /** @description The name of the repository to filter on. */ readonly repository_name?: components["parameters"]["repository-name-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ readonly time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ readonly actor_name?: components["parameters"]["actor-name-in-query"]; @@ -98400,10 +98566,12 @@ export interface operations { readonly path: { /** @description The organization name. The name is not case sensitive. */ readonly org: components["parameters"]["org"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ readonly rule_suite_id: components["parameters"]["rule-suite-id"]; }; readonly cookie?: never; @@ -100262,10 +100430,12 @@ export interface operations { readonly org: components["parameters"]["org"]; /** @description The security feature to enable or disable. */ readonly security_product: components["parameters"]["security-product"]; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ readonly enablement: components["parameters"]["org-security-product-enablement"]; }; readonly cookie?: never; @@ -101176,14 +101346,16 @@ export interface operations { * @enum {string} */ readonly visibility?: "public" | "private"; - /** @description Specify which security and analysis features to enable or disable for the repository. + /** + * @description Specify which security and analysis features to enable or disable for the repository. * * To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." * * For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request: * `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. * - * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. */ + * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. + */ readonly security_and_analysis?: { /** @description Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." */ readonly advanced_security?: { @@ -103535,19 +103707,25 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description The Git reference for the activities you want to list. + /** + * @description The Git reference for the activities you want to list. * - * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. */ + * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. + */ readonly ref?: string; /** @description The GitHub username to use to filter by the actor who performed the activity. */ readonly actor?: string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). + */ readonly time_period?: "day" | "week" | "month" | "quarter" | "year"; - /** @description The activity type to filter by. + /** + * @description The activity type to filter by. * - * For example, you can choose to filter by "force_push", to see all force pushes to the repository. */ + * For example, you can choose to filter by "force_push", to see all force pushes to the repository. + */ readonly activity_type?: "push" | "force_push" | "branch_creation" | "branch_deletion" | "pr_merge" | "merge_queue_merge"; }; readonly header?: never; @@ -103654,8 +103832,10 @@ export interface operations { readonly requestBody: { readonly content: { readonly "application/json": { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ readonly bundle: { readonly mediaType?: string; readonly verificationMaterial?: { @@ -103716,8 +103896,10 @@ export interface operations { content: { readonly "application/json": { readonly attestations?: readonly { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ readonly bundle?: { readonly mediaType?: string; readonly verificationMaterial?: { @@ -106391,8 +106573,10 @@ export interface operations { readonly started_at?: string; /** @description The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. */ readonly tool_name?: string; - /** @description Whether the SARIF file will be validated according to the code scanning specifications. - * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. */ + /** + * @description Whether the SARIF file will be validated according to the code scanning specifications. + * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. + */ readonly validate?: boolean; }; }; @@ -107045,10 +107229,12 @@ export interface operations { readonly "application/json": components["schemas"]["repository-invitation"]; }; }; - /** @description Response when: + /** + * @description Response when: * - an existing collaborator is added as a collaborator * - an organization member is added as an individual collaborator - * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator */ + * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator + */ readonly 204: { headers: { readonly [name: string]: unknown; @@ -107995,35 +108181,45 @@ export interface operations { readonly "dependabot/list-alerts-for-repo": { readonly parameters: { readonly query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ readonly state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ readonly severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ readonly ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ readonly package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ readonly manifest?: components["parameters"]["dependabot-alert-comma-separated-manifests"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ readonly epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ readonly scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ readonly sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ readonly direction?: components["parameters"]["direction"]; @@ -108041,13 +108237,17 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ readonly first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ readonly last?: components["parameters"]["pagination-last"]; }; readonly header?: never; @@ -108086,10 +108286,12 @@ export interface operations { readonly owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ readonly repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ readonly alert_number: components["parameters"]["dependabot-alert-number"]; }; readonly cookie?: never; @@ -108119,10 +108321,12 @@ export interface operations { readonly owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ readonly repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ readonly alert_number: components["parameters"]["dependabot-alert-number"]; }; readonly cookie?: never; @@ -110136,17 +110340,23 @@ export interface operations { * @enum {string} */ readonly type?: "blob" | "tree" | "commit"; - /** @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. + /** + * @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ readonly sha?: string | null; - /** @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. + /** + * @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ readonly content?: string; }[]; - /** @description 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. - * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. */ + /** + * @description 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. + * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. + */ readonly base_tree?: string; }; }; @@ -112403,9 +112613,11 @@ export interface operations { readonly title?: string; /** @description The contents of the key. */ readonly key: string; - /** @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + /** + * @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. * - * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." */ + * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ readonly read_only?: boolean; }; }; @@ -115667,10 +115879,11 @@ export interface operations { readonly page?: components["parameters"]["page"]; /** @description Include rulesets configured at higher levels that apply to this repository */ readonly includes_parents?: boolean; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ readonly targets?: components["parameters"]["ruleset-targets"]; }; readonly header?: never; @@ -115749,9 +115962,11 @@ export interface operations { readonly query?: { /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ readonly ref?: components["parameters"]["ref-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ readonly time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ readonly actor_name?: components["parameters"]["actor-name-in-query"]; @@ -115795,10 +116010,12 @@ export interface operations { readonly owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ readonly repo: components["parameters"]["repo"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ readonly rule_suite_id: components["parameters"]["rule-suite-id"]; }; readonly cookie?: never; @@ -116626,9 +116843,11 @@ export interface operations { * @enum {string} */ readonly state: "error" | "failure" | "pending" | "success"; - /** @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. + /** + * @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. * For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: - * `http://ci.example.com/user/repo/build/sha` */ + * `http://ci.example.com/user/repo/build/sha` + */ readonly target_url?: string | null; /** @description A short description of the status. */ readonly description?: string | null; @@ -120765,10 +120984,12 @@ export interface operations { readonly query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ readonly package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ readonly visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly page?: components["parameters"]["page"]; @@ -121065,10 +121286,12 @@ export interface operations { readonly query?: { /** @description Limit results to repositories with the specified visibility. */ readonly visibility?: "all" | "public" | "private"; - /** @description Comma-separated list of values. Can include: + /** + * @description Comma-separated list of values. Can include: * * `owner`: Repositories that are owned by the authenticated user. * * `collaborator`: Repositories that the user has been added to as a collaborator. - * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. */ + * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. + */ readonly affiliation?: string; /** @description Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. */ readonly type?: "all" | "owner" | "public" | "private" | "member"; @@ -122258,10 +122481,12 @@ export interface operations { readonly query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ readonly package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ readonly visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly page?: components["parameters"]["page"]; diff --git a/packages/openapi-typescript/examples/github-api-immutable.ts b/packages/openapi-typescript/examples/github-api-immutable.ts index 323ea9428..2c9ec9141 100644 --- a/packages/openapi-typescript/examples/github-api-immutable.ts +++ b/packages/openapi-typescript/examples/github-api-immutable.ts @@ -14790,8 +14790,7 @@ export interface paths { }; /** * Get all contributor commit activity - * @description - * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: + * @description Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: * * * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time). * * `a` - Number of additions @@ -19457,10 +19456,12 @@ export interface components { readonly single_file_name: string | null; /** @example true */ readonly has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ readonly single_file_paths?: readonly string[]; /** @example github-actions */ readonly app_slug: string; @@ -19863,10 +19864,12 @@ export interface components { readonly single_file?: string; /** @example true */ readonly has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ readonly single_file_paths?: readonly string[]; }; /** Scoped Installation */ @@ -19881,10 +19884,12 @@ export interface components { readonly single_file_name: string | null; /** @example true */ readonly has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ readonly single_file_paths?: readonly string[]; /** * Format: uri @@ -20319,7 +20324,8 @@ export interface components { * @example https://api.github.com/codes_of_conduct/contributor_covenant */ readonly url: string; - /** @example # Contributor Covenant Code of Conduct + /** + * @example # Contributor Covenant Code of Conduct * * ## Our Pledge * @@ -20364,7 +20370,7 @@ export interface components { * ## Attribution * * This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/). - * */ + */ readonly body?: string; /** Format: uri */ readonly html_url: string | null; @@ -20961,8 +20967,10 @@ export interface components { readonly resolved_by?: components["schemas"]["nullable-simple-user"]; /** @description The type of secret that secret scanning detected. */ readonly secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ readonly secret_type_display_name?: string; /** @description The secret that was detected. */ readonly secret?: string; @@ -21395,9 +21403,11 @@ export interface components { readonly current_user_actor_url?: string; /** @example https://github.com/octocat-org */ readonly current_user_organization_url?: string; - /** @example [ + /** + * @example [ * "https://github.com/organizations/github/octocat.private.atom?token=abc123" - * ] */ + * ] + */ readonly current_user_organization_urls?: readonly string[]; /** @example https://github.com/security-advisories */ readonly security_advisories_url?: string; @@ -21723,7 +21733,8 @@ export interface components { readonly "gitignore-template": { /** @example C */ readonly name: string; - /** @example # Object files + /** + * @example # Object files * *.o * * # Libraries @@ -21740,7 +21751,7 @@ export interface components { * *.exe * *.out * *.app - * */ + */ readonly source: string; }; /** @@ -21791,25 +21802,30 @@ export interface components { readonly description: string; /** @example Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. */ readonly implementation: string; - /** @example [ + /** + * @example [ * "commercial-use", * "modifications", * "distribution", * "sublicense", * "private-use" - * ] */ + * ] + */ readonly permissions: readonly string[]; - /** @example [ + /** + * @example [ * "include-copyright" - * ] */ + * ] + */ readonly conditions: readonly string[]; - /** @example [ + /** + * @example [ * "no-liability" - * ] */ + * ] + */ readonly limitations: readonly string[]; - /** @example - * - * The MIT License (MIT) + /** + * @example The MIT License (MIT) * * Copyright (c) [year] [fullname] * @@ -21830,7 +21846,7 @@ export interface components { * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ + */ readonly body: string; /** @example true */ readonly featured: boolean; @@ -21872,10 +21888,12 @@ export interface components { readonly unit_name: string | null; /** @example published */ readonly state: string; - /** @example [ + /** + * @example [ * "Up to 25 private repositories", * "11 concurrent builds" - * ] */ + * ] + */ readonly bullets: readonly string[]; }; /** @@ -21920,61 +21938,89 @@ export interface components { readonly SHA256_ECDSA?: string; readonly SHA256_ED25519?: string; }; - /** @example [ + /** + * @example [ * "ssh-ed25519 ABCDEFGHIJKLMNOPQRSTUVWXYZ" - * ] */ + * ] + */ readonly ssh_keys?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly hooks?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly github_enterprise_importer?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly web?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly api?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly git?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly packages?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly pages?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly importer?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly actions?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly actions_macos?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly codespaces?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly dependabot?: readonly string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ readonly copilot?: readonly string[]; readonly domains?: { readonly website?: readonly string[]; @@ -21987,9 +22033,11 @@ export interface components { readonly wildcard_domains?: readonly string[]; }; readonly artifact_attestations?: { - /** @example [ + /** + * @example [ * "example" - * ] */ + * ] + */ readonly trust_domain?: string; readonly services?: readonly string[]; }; @@ -22811,10 +22859,12 @@ export interface components { readonly github_owned_allowed?: boolean; /** @description Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. */ readonly verified_allowed?: boolean; - /** @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. + /** + * @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. * * > [!NOTE] - * > The `patterns_allowed` setting only applies to public repositories. */ + * > The `patterns_allowed` setting only applies to public repositories. + */ readonly patterns_allowed?: readonly string[]; }; /** @@ -22936,10 +22986,12 @@ export interface components { * @example 2016-07-11T22:14:10Z */ readonly expires_at: string; - /** @example { + /** + * @example { * "issues": "read", * "deployments": "write" - * } */ + * } + */ readonly permissions?: Record; /** @description The repositories this token has access to */ readonly repositories?: readonly components["schemas"]["repository"][]; @@ -23102,8 +23154,10 @@ export interface components { readonly version?: components["schemas"]["code-scanning-analysis-tool-version"]; readonly guid?: components["schemas"]["code-scanning-analysis-tool-guid"]; }; - /** @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, - * `refs/heads/` or simply ``. */ + /** + * @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, + * `refs/heads/` or simply ``. + */ readonly "code-scanning-ref": string; /** @description Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. */ readonly "code-scanning-analysis-analysis-key": string; @@ -23136,8 +23190,10 @@ export interface components { }; readonly location?: components["schemas"]["code-scanning-alert-location"]; readonly html_url?: string; - /** @description Classifications that have been applied to the file that triggered the alert. - * For example identifying it as documentation, or a generated file. */ + /** + * @description Classifications that have been applied to the file that triggered the alert. + * For example identifying it as documentation, or a generated file. + */ readonly classifications?: readonly components["schemas"]["code-scanning-alert-classification"][]; }; readonly "code-scanning-organization-alert-items": { @@ -24204,10 +24260,12 @@ export interface components { readonly deliveries_url?: string; /** @example web */ readonly name: string; - /** @example [ + /** + * @example [ * "push", * "pull_request" - * ] */ + * ] + */ readonly events: readonly string[]; /** @example true */ readonly active: boolean; @@ -24940,8 +24998,10 @@ export interface components { readonly default_value?: (string | readonly string[]) | null; /** @description Short description of the property */ readonly description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ readonly allowed_values?: readonly string[] | null; /** * @description Who can edit the values of the property @@ -24967,8 +25027,10 @@ export interface components { readonly default_value?: (string | readonly string[]) | null; /** @description Short description of the property */ readonly description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ readonly allowed_values?: readonly string[] | null; }; /** @@ -25553,12 +25615,14 @@ export interface components { readonly open_issues_count: number; /** @example true */ readonly is_template?: boolean; - /** @example [ + /** + * @example [ * "octocat", * "atom", * "electron", * "API" - * ] */ + * ] + */ readonly topics?: readonly string[]; /** @example true */ readonly has_issues: boolean; @@ -28656,9 +28720,11 @@ export interface components { readonly url: string; /** @example true */ readonly strict: boolean; - /** @example [ + /** + * @example [ * "continuous-integration/travis-ci" - * ] */ + * ] + */ readonly contexts: readonly string[]; readonly checks: readonly { /** @example continuous-integration/travis-ci */ @@ -29395,8 +29461,10 @@ export interface components { /** @description CodeQL languages to be analyzed. */ readonly languages?: readonly ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[]; }; - /** @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. - * You should not rely on this always being an actions workflow run object. */ + /** + * @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. + * You should not rely on this always being an actions workflow run object. + */ readonly "code-scanning-default-setup-update-response": { /** @description ID of the corresponding run. */ readonly run_id?: number; @@ -33169,8 +33237,10 @@ export interface components { readonly resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ readonly secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ readonly secret_type_display_name?: string; /** @description The secret that was detected. */ readonly secret?: string; @@ -33565,7 +33635,8 @@ export interface components { * @description Commit Activity */ readonly "commit-activity": { - /** @example [ + /** + * @example [ * 0, * 3, * 26, @@ -33573,7 +33644,8 @@ export interface components { * 39, * 1, * 0 - * ] */ + * ] + */ readonly days: readonly number[]; /** @example 89 */ readonly total: number; @@ -33588,14 +33660,16 @@ export interface components { readonly author: components["schemas"]["nullable-simple-user"]; /** @example 135 */ readonly total: number; - /** @example [ + /** + * @example [ * { * "w": "1367712000", * "a": 6898, * "d": 77, * "c": 10 * } - * ] */ + * ] + */ readonly weeks: readonly { readonly w?: number; readonly a?: number; @@ -33770,10 +33844,12 @@ export interface components { readonly language?: string | null; /** Format: date-time */ readonly last_modified_at?: string; - /** @example [ + /** + * @example [ * "73..77", * "77..78" - * ] */ + * ] + */ readonly line_numbers?: readonly string[]; readonly text_matches?: components["schemas"]["search-result-text-matches"]; }; @@ -34541,17 +34617,20 @@ export interface components { readonly key_id: string; /** @example xsBNBFayYZ... */ readonly public_key: string; - /** @example [ + /** + * @example [ * { * "email": "octocat@users.noreply.github.com", * "verified": true * } - * ] */ + * ] + */ readonly emails: readonly { readonly email?: string; readonly verified?: boolean; }[]; - /** @example [ + /** + * @example [ * { * "id": 4, * "primary_key_id": 3, @@ -34566,7 +34645,8 @@ export interface components { * "expires_at": null, * "revoked": false * } - * ] */ + * ] + */ readonly subkeys: readonly { /** Format: int64 */ readonly id?: number; @@ -40016,8 +40096,10 @@ export interface components { readonly resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ readonly secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ readonly secret_type_display_name?: string; /** * @description The token status as of the latest validity check. @@ -52852,10 +52934,12 @@ export interface components { /** @enum {string} */ readonly action: "added"; readonly changes?: { - /** @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` + /** + * @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` * role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role * assigned to the collaborator, use the `role_name` field instead, which will provide the full - * role name, including custom roles. */ + * role name, including custom roles. + */ readonly permission?: { /** @enum {string} */ readonly to: "write" | "admin" | "read"; @@ -54346,8 +54430,10 @@ export interface components { readonly "webhook-projects-v2-item-edited": { /** @enum {string} */ readonly action: "edited"; - /** @description The changes made to the item may involve modifications in the item's fields and draft issue body. - * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. */ + /** + * @description The changes made to the item may involve modifications in the item's fields and draft issue body. + * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. + */ readonly changes?: { readonly field_value: { readonly field_node_id?: string; @@ -87580,41 +87666,55 @@ export interface components { readonly enterprise: string; /** @description The unique identifier of the code security configuration. */ readonly "configuration-id": number; - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ readonly "dependabot-alert-comma-separated-states": string; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ readonly "dependabot-alert-comma-separated-severities": string; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ readonly "dependabot-alert-comma-separated-ecosystems": string; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ readonly "dependabot-alert-comma-separated-packages": string; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ readonly "dependabot-alert-comma-separated-epss": string; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ readonly "dependabot-alert-scope": "development" | "runtime"; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ readonly "dependabot-alert-sort": "created" | "updated" | "epss_percentage"; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ readonly "pagination-first": number; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ readonly "pagination-last": number; /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ readonly "secret-scanning-alert-state": "open" | "resolved"; @@ -87726,10 +87826,12 @@ export interface components { readonly "team-slug": string; /** @description The unique identifier of the role. */ readonly "role-id": number; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ readonly "package-visibility": "public" | "private" | "internal"; /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ readonly "package-type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; @@ -87753,27 +87855,32 @@ export interface components { readonly "fine-grained-personal-access-token-id": number; /** @description The custom property name */ readonly "custom-property-name": string; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ readonly "ruleset-targets": string; /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ readonly "ref-in-query": string; /** @description The name of the repository to filter on. */ readonly "repository-name-in-query": string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ readonly "time-period": "hour" | "day" | "week" | "month"; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ readonly "actor-name-in-query": string; /** @description The rule results to filter on. When specified, only suites with this result will be returned. */ readonly "rule-suite-result": "pass" | "fail" | "bypass" | "all"; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ readonly "rule-suite-id": number; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. */ readonly "secret-scanning-pagination-before-org-repo": string; @@ -87793,10 +87900,12 @@ export interface components { readonly "project-id": number; /** @description The security feature to enable or disable. */ readonly "security-product": "dependency_graph" | "dependabot_alerts" | "dependabot_security_updates" | "advanced_security" | "code_scanning_default_setup" | "secret_scanning" | "secret_scanning_push_protection"; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ readonly "org-security-product-enablement": "enable_all" | "disable_all"; /** @description The unique identifier of the card. */ readonly "card-id": number; @@ -87864,10 +87973,12 @@ export interface components { readonly "commit-ref": string; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ readonly "dependabot-alert-comma-separated-manifests": string; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ readonly "dependabot-alert-number": components["schemas"]["alert-number"]; /** @description The full path, relative to the repository root, of the dependency manifest file. */ readonly "manifest-path": string; @@ -87981,34 +88092,48 @@ export interface operations { readonly ecosystem?: components["schemas"]["security-advisory-ecosystems"]; /** @description If specified, only advisories with these severities will be returned. */ readonly severity?: "unknown" | "low" | "medium" | "high" | "critical"; - /** @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. + /** + * @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. * - * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` */ + * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` + */ readonly cwes?: string | readonly string[]; /** @description Whether to only return advisories that have been withdrawn. */ readonly is_withdrawn?: boolean; - /** @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. + /** + * @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. * If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages. * - * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` */ + * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` + */ readonly affects?: string | readonly string[]; - /** @description If specified, only return advisories that were published on a date or date range. + /** + * @description If specified, only return advisories that were published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ readonly published?: string; - /** @description If specified, only return advisories that were updated on a date or date range. + /** + * @description If specified, only return advisories that were updated on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ readonly updated?: string; - /** @description If specified, only show advisories that were updated or published on a date or date range. + /** + * @description If specified, only show advisories that were updated or published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ readonly modified?: string; - /** @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. - * The EPSS percentage represents the likelihood of a CVE being exploited. */ + /** + * @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. + * The EPSS percentage represents the likelihood of a CVE being exploited. + */ readonly epss_percentage?: string; - /** @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. - * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. */ + /** + * @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. + * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. + */ readonly epss_percentile?: string; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly before?: components["parameters"]["pagination-before"]; @@ -89257,9 +89382,11 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ readonly status?: string; }; readonly header?: never; @@ -89289,33 +89416,43 @@ export interface operations { readonly "dependabot/list-alerts-for-enterprise": { readonly parameters: { readonly query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ readonly state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ readonly severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ readonly ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ readonly package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ readonly epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ readonly scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ readonly sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ readonly direction?: components["parameters"]["direction"]; @@ -89323,13 +89460,17 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ readonly first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ readonly last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly per_page?: components["parameters"]["per-page"]; @@ -93108,8 +93249,10 @@ export interface operations { content: { readonly "application/json": { readonly attestations?: readonly { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ readonly bundle?: { readonly mediaType?: string; readonly verificationMaterial?: { @@ -93755,9 +93898,11 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ readonly status?: string; }; readonly header?: never; @@ -94553,33 +94698,43 @@ export interface operations { readonly "dependabot/list-alerts-for-org": { readonly parameters: { readonly query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ readonly state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ readonly severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ readonly ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ readonly package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ readonly epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ readonly scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ readonly sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ readonly direction?: components["parameters"]["direction"]; @@ -94587,13 +94742,17 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ readonly first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ readonly last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly per_page?: components["parameters"]["per-page"]; @@ -96388,10 +96547,12 @@ export interface operations { }; readonly requestBody?: never; readonly responses: { - /** @description * `pending`, which means the migration hasn't started yet. + /** + * @description * `pending`, which means the migration hasn't started yet. * * `exporting`, which means the migration is in progress. * * `exported`, which means the migration finished successfully. - * * `failed`, which means the migration failed. */ + * * `failed`, which means the migration failed. + */ readonly 200: { headers: { readonly [name: string]: unknown; @@ -96951,10 +97112,12 @@ export interface operations { readonly query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ readonly package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ readonly visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly page?: number; @@ -98278,10 +98441,11 @@ export interface operations { readonly per_page?: components["parameters"]["per-page"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly page?: components["parameters"]["page"]; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ readonly targets?: components["parameters"]["ruleset-targets"]; }; readonly header?: never; @@ -98358,9 +98522,11 @@ export interface operations { readonly ref?: components["parameters"]["ref-in-query"]; /** @description The name of the repository to filter on. */ readonly repository_name?: components["parameters"]["repository-name-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ readonly time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ readonly actor_name?: components["parameters"]["actor-name-in-query"]; @@ -98400,10 +98566,12 @@ export interface operations { readonly path: { /** @description The organization name. The name is not case sensitive. */ readonly org: components["parameters"]["org"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ readonly rule_suite_id: components["parameters"]["rule-suite-id"]; }; readonly cookie?: never; @@ -100262,10 +100430,12 @@ export interface operations { readonly org: components["parameters"]["org"]; /** @description The security feature to enable or disable. */ readonly security_product: components["parameters"]["security-product"]; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ readonly enablement: components["parameters"]["org-security-product-enablement"]; }; readonly cookie?: never; @@ -101176,14 +101346,16 @@ export interface operations { * @enum {string} */ readonly visibility?: "public" | "private"; - /** @description Specify which security and analysis features to enable or disable for the repository. + /** + * @description Specify which security and analysis features to enable or disable for the repository. * * To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." * * For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request: * `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. * - * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. */ + * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. + */ readonly security_and_analysis?: { /** @description Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." */ readonly advanced_security?: { @@ -103535,19 +103707,25 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description The Git reference for the activities you want to list. + /** + * @description The Git reference for the activities you want to list. * - * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. */ + * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. + */ readonly ref?: string; /** @description The GitHub username to use to filter by the actor who performed the activity. */ readonly actor?: string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). + */ readonly time_period?: "day" | "week" | "month" | "quarter" | "year"; - /** @description The activity type to filter by. + /** + * @description The activity type to filter by. * - * For example, you can choose to filter by "force_push", to see all force pushes to the repository. */ + * For example, you can choose to filter by "force_push", to see all force pushes to the repository. + */ readonly activity_type?: "push" | "force_push" | "branch_creation" | "branch_deletion" | "pr_merge" | "merge_queue_merge"; }; readonly header?: never; @@ -103654,8 +103832,10 @@ export interface operations { readonly requestBody: { readonly content: { readonly "application/json": { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ readonly bundle: { readonly mediaType?: string; readonly verificationMaterial?: { @@ -103716,8 +103896,10 @@ export interface operations { content: { readonly "application/json": { readonly attestations?: readonly { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ readonly bundle?: { readonly mediaType?: string; readonly verificationMaterial?: { @@ -106391,8 +106573,10 @@ export interface operations { readonly started_at?: string; /** @description The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. */ readonly tool_name?: string; - /** @description Whether the SARIF file will be validated according to the code scanning specifications. - * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. */ + /** + * @description Whether the SARIF file will be validated according to the code scanning specifications. + * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. + */ readonly validate?: boolean; }; }; @@ -107045,10 +107229,12 @@ export interface operations { readonly "application/json": components["schemas"]["repository-invitation"]; }; }; - /** @description Response when: + /** + * @description Response when: * - an existing collaborator is added as a collaborator * - an organization member is added as an individual collaborator - * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator */ + * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator + */ readonly 204: { headers: { readonly [name: string]: unknown; @@ -107995,35 +108181,45 @@ export interface operations { readonly "dependabot/list-alerts-for-repo": { readonly parameters: { readonly query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ readonly state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ readonly severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ readonly ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ readonly package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ readonly manifest?: components["parameters"]["dependabot-alert-comma-separated-manifests"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ readonly epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ readonly scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ readonly sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ readonly direction?: components["parameters"]["direction"]; @@ -108041,13 +108237,17 @@ export interface operations { readonly before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ readonly first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ readonly last?: components["parameters"]["pagination-last"]; }; readonly header?: never; @@ -108086,10 +108286,12 @@ export interface operations { readonly owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ readonly repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ readonly alert_number: components["parameters"]["dependabot-alert-number"]; }; readonly cookie?: never; @@ -108119,10 +108321,12 @@ export interface operations { readonly owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ readonly repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ readonly alert_number: components["parameters"]["dependabot-alert-number"]; }; readonly cookie?: never; @@ -110136,17 +110340,23 @@ export interface operations { * @enum {string} */ readonly type?: "blob" | "tree" | "commit"; - /** @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. + /** + * @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ readonly sha?: string | null; - /** @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. + /** + * @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ readonly content?: string; }[]; - /** @description 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. - * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. */ + /** + * @description 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. + * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. + */ readonly base_tree?: string; }; }; @@ -112403,9 +112613,11 @@ export interface operations { readonly title?: string; /** @description The contents of the key. */ readonly key: string; - /** @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + /** + * @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. * - * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." */ + * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ readonly read_only?: boolean; }; }; @@ -115667,10 +115879,11 @@ export interface operations { readonly page?: components["parameters"]["page"]; /** @description Include rulesets configured at higher levels that apply to this repository */ readonly includes_parents?: boolean; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ readonly targets?: components["parameters"]["ruleset-targets"]; }; readonly header?: never; @@ -115749,9 +115962,11 @@ export interface operations { readonly query?: { /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ readonly ref?: components["parameters"]["ref-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ readonly time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ readonly actor_name?: components["parameters"]["actor-name-in-query"]; @@ -115795,10 +116010,12 @@ export interface operations { readonly owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ readonly repo: components["parameters"]["repo"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ readonly rule_suite_id: components["parameters"]["rule-suite-id"]; }; readonly cookie?: never; @@ -116626,9 +116843,11 @@ export interface operations { * @enum {string} */ readonly state: "error" | "failure" | "pending" | "success"; - /** @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. + /** + * @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. * For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: - * `http://ci.example.com/user/repo/build/sha` */ + * `http://ci.example.com/user/repo/build/sha` + */ readonly target_url?: string | null; /** @description A short description of the status. */ readonly description?: string | null; @@ -120765,10 +120984,12 @@ export interface operations { readonly query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ readonly package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ readonly visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly page?: components["parameters"]["page"]; @@ -121065,10 +121286,12 @@ export interface operations { readonly query?: { /** @description Limit results to repositories with the specified visibility. */ readonly visibility?: "all" | "public" | "private"; - /** @description Comma-separated list of values. Can include: + /** + * @description Comma-separated list of values. Can include: * * `owner`: Repositories that are owned by the authenticated user. * * `collaborator`: Repositories that the user has been added to as a collaborator. - * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. */ + * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. + */ readonly affiliation?: string; /** @description Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. */ readonly type?: "all" | "owner" | "public" | "private" | "member"; @@ -122258,10 +122481,12 @@ export interface operations { readonly query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ readonly package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ readonly visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ readonly page?: components["parameters"]["page"]; diff --git a/packages/openapi-typescript/examples/github-api-next.ts b/packages/openapi-typescript/examples/github-api-next.ts index 8a5db8be4..2d47a1d10 100644 --- a/packages/openapi-typescript/examples/github-api-next.ts +++ b/packages/openapi-typescript/examples/github-api-next.ts @@ -14790,8 +14790,7 @@ export interface paths { }; /** * Get all contributor commit activity - * @description - * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: + * @description Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: * * * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time). * * `a` - Number of additions @@ -18897,13 +18896,15 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when a Git branch or tag is created. + /** + * This event occurs when a Git branch or tag is created. * * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. * * **Notes**: * - This event will not occur when more than three tags are created at once. - * - Payloads are capped at 25 MB. If an event generates a larger payload, GitHub will not deliver a payload for that webhook event. This may happen, for example, if many branches or tags are pushed at once. We suggest monitoring your payload size to ensure delivery. */ + * - Payloads are capped at 25 MB. If an event generates a larger payload, GitHub will not deliver a payload for that webhook event. This may happen, for example, if many branches or tags are pushed at once. We suggest monitoring your payload size to ensure delivery. + */ post: operations["create"]; delete?: never; options?: never; @@ -19016,13 +19017,15 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when a Git branch or tag is deleted. To subscribe to all pushes to a repository, including + /** + * This event occurs when a Git branch or tag is deleted. To subscribe to all pushes to a repository, including * branch and tag deletions, use the [`push`](#push) webhook event. * * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. * * > [!NOTE] - * > This event will not occur when more than three tags are deleted at once. */ + * > This event will not occur when more than three tags are deleted at once. + */ post: operations["delete"]; delete?: never; options?: never; @@ -19903,9 +19906,11 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when someone forks a repository. For more information, see "[Fork a repo](https://docs.github.com/get-started/quickstart/fork-a-repo)." For information about the API to manage forks, see "[Forks](https://docs.github.com/rest/repos/forks)" in the REST API documentation. + /** + * This event occurs when someone forks a repository. For more information, see "[Fork a repo](https://docs.github.com/get-started/quickstart/fork-a-repo)." For information about the API to manage forks, see "[Forks](https://docs.github.com/rest/repos/forks)" in the REST API documentation. * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. + */ post: operations["fork"]; delete?: never; options?: never; @@ -19946,9 +19951,11 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when someone creates or updates a wiki page. For more information, see "[About wikis](https://docs.github.com/communities/documenting-your-project-with-wikis/about-wikis)." + /** + * This event occurs when someone creates or updates a wiki page. For more information, see "[About wikis](https://docs.github.com/communities/documenting-your-project-with-wikis/about-wikis)." * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. + */ post: operations["gollum"]; delete?: never; options?: never; @@ -21279,9 +21286,11 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when there is an attempted build of a GitHub Pages site. This event occurs regardless of whether the build is successful. For more information, see "[Configuring a publishing source for your GitHub Pages site](https://docs.github.com/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)." For information about the API to manage GitHub Pages, see "[Pages](https://docs.github.com/rest/pages)" in the REST API documentation. + /** + * This event occurs when there is an attempted build of a GitHub Pages site. This event occurs regardless of whether the build is successful. For more information, see "[Configuring a publishing source for your GitHub Pages site](https://docs.github.com/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)." For information about the API to manage GitHub Pages, see "[Pages](https://docs.github.com/rest/pages)" in the REST API documentation. * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Pages" repository permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Pages" repository permission. + */ post: operations["page-build"]; delete?: never; options?: never; @@ -22184,9 +22193,11 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when repository visibility changes from private to public. For more information, see "[Setting repository visibility](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility)." + /** + * This event occurs when repository visibility changes from private to public. For more information, see "[Setting repository visibility](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility)." * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Metadata" repository permission. + */ post: operations["public"]; delete?: never; options?: never; @@ -22899,14 +22910,16 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, + /** + * This event occurs when there is a push to a repository branch. This includes when a commit is pushed, when a commit tag is pushed, * when a branch is deleted, when a tag is deleted, or when a repository is created from a template. To subscribe to only branch * and tag deletions, use the [`delete`](#delete) webhook event. * * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. * * > [!NOTE] - * > Events will not be created if more than 5000 branches are pushed at once. Events will not be created for tags when more than three tags are pushed at once. */ + * > Events will not be created if more than 5000 branches are pushed at once. Events will not be created for tags when more than three tags are pushed at once. + */ post: operations["push"]; delete?: never; options?: never; @@ -23237,9 +23250,11 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /** + * This event occurs when a GitHub App sends a `POST` request to `/repos/{owner}/{repo}/dispatches`. For more information, see [the REST API documentation for creating a repository dispatch event](https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event). In the payload, the `action` will be the `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. + */ post: operations["repository-dispatch/sample.collected"]; delete?: never; options?: never; @@ -23806,9 +23821,11 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when code security and analysis features are enabled or disabled for a repository. For more information, see "[GitHub security features](https://docs.github.com/code-security/getting-started/github-security-features)." + /** + * This event occurs when code security and analysis features are enabled or disabled for a repository. For more information, see "[GitHub security features](https://docs.github.com/code-security/getting-started/github-security-features)." * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Administration" repository permission. + */ post: operations["security-and-analysis"]; delete?: never; options?: never; @@ -24005,9 +24022,11 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when the status of a Git commit changes. For example, commits can be marked as `error`, `failure`, `pending`, or `success`. For more information, see "[About status checks](https://docs.github.com/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks)." For information about the APIs to manage commit statuses, see [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#status) or "[Commit statuses](https://docs.github.com/rest/commits/statuses)" in the REST API documentation. + /** + * This event occurs when the status of a Git commit changes. For example, commits can be marked as `error`, `failure`, `pending`, or `success`. For more information, see "[About status checks](https://docs.github.com/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks)." For information about the APIs to manage commit statuses, see [the GraphQL documentation](https://docs.github.com/graphql/reference/objects#status) or "[Commit statuses](https://docs.github.com/rest/commits/statuses)" in the REST API documentation. * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Commit statuses" repository permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Commit statuses" repository permission. + */ post: operations["status"]; delete?: never; options?: never; @@ -24120,12 +24139,14 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when a team is added to a repository. + /** + * This event occurs when a team is added to a repository. * For more information, see "[Managing teams and people with access to your repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-teams-and-people-with-access-to-your-repository)." * * For activity relating to teams, see the `teams` event. * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Members" organization permission. + */ post: operations["team-add"]; delete?: never; options?: never; @@ -24279,11 +24300,13 @@ export interface webhooks { }; get?: never; put?: never; - /** This event occurs when a GitHub Actions workflow is manually triggered. For more information, see "[Manually running a workflow](https://docs.github.com/actions/managing-workflow-runs/manually-running-a-workflow)." + /** + * This event occurs when a GitHub Actions workflow is manually triggered. For more information, see "[Manually running a workflow](https://docs.github.com/actions/managing-workflow-runs/manually-running-a-workflow)." * * For activity relating to workflow runs, use the `workflow_run` event. * - * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. */ + * To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission. + */ post: operations["workflow-dispatch"]; delete?: never; options?: never; @@ -26288,7 +26311,8 @@ export interface components { * @example https://api.github.com/codes_of_conduct/contributor_covenant */ url: string; - /** @example # Contributor Covenant Code of Conduct + /** + * @example # Contributor Covenant Code of Conduct * * ## Our Pledge * @@ -26333,7 +26357,7 @@ export interface components { * ## Attribution * * This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/). - * */ + */ body?: string; /** Format: uri */ html_url: string | null; @@ -26925,8 +26949,10 @@ export interface components { resolved_by?: null | components["schemas"]["simple-user"]; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** @description The secret that was detected. */ secret?: string; @@ -27600,7 +27626,8 @@ export interface components { "gitignore-template": { /** @example C */ name: string; - /** @example # Object files + /** + * @example # Object files * *.o * * # Libraries @@ -27617,7 +27644,7 @@ export interface components { * *.exe * *.out * *.app - * */ + */ source: string; }; /** @@ -27659,9 +27686,8 @@ export interface components { conditions: string[]; /** @example no-liability */ limitations: string[]; - /** @example - * - * The MIT License (MIT) + /** + * @example The MIT License (MIT) * * Copyright (c) [year] [fullname] * @@ -27682,7 +27708,7 @@ export interface components { * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ + */ body: string; /** @example true */ featured: boolean; @@ -28633,10 +28659,12 @@ export interface components { github_owned_allowed?: boolean; /** @description Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. */ verified_allowed?: boolean; - /** @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. + /** + * @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. * * > [!NOTE] - * > The `patterns_allowed` setting only applies to public repositories. */ + * > The `patterns_allowed` setting only applies to public repositories. + */ patterns_allowed?: string[]; }; /** @@ -28758,10 +28786,12 @@ export interface components { * @example 2016-07-11T22:14:10Z */ expires_at: string; - /** @example { + /** + * @example { * "issues": "read", * "deployments": "write" - * } */ + * } + */ permissions?: Record; /** @description The repositories this token has access to */ repositories?: components["schemas"]["repository"][]; @@ -28924,8 +28954,10 @@ export interface components { version?: components["schemas"]["code-scanning-analysis-tool-version"]; guid?: components["schemas"]["code-scanning-analysis-tool-guid"]; }; - /** @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, - * `refs/heads/` or simply ``. */ + /** + * @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, + * `refs/heads/` or simply ``. + */ "code-scanning-ref": string; /** @description Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. */ "code-scanning-analysis-analysis-key": string; @@ -28958,8 +28990,10 @@ export interface components { }; location?: components["schemas"]["code-scanning-alert-location"]; html_url?: string; - /** @description Classifications that have been applied to the file that triggered the alert. - * For example identifying it as documentation, or a generated file. */ + /** + * @description Classifications that have been applied to the file that triggered the alert. + * For example identifying it as documentation, or a generated file. + */ classifications?: components["schemas"]["code-scanning-alert-classification"][]; }; "code-scanning-organization-alert-items": { @@ -30446,8 +30480,10 @@ export interface components { default_value?: (null | unknown[]) & (string | string[]); /** @description Short description of the property */ description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ allowed_values?: string[] | null; /** * @description Who can edit the values of the property @@ -30473,8 +30509,10 @@ export interface components { default_value?: (null | unknown[]) & (string | string[]); /** @description Short description of the property */ description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ allowed_values?: string[] | null; }; /** @@ -34488,8 +34526,10 @@ export interface components { /** @description CodeQL languages to be analyzed. */ languages?: ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[]; }; - /** @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. - * You should not rely on this always being an actions workflow run object. */ + /** + * @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. + * You should not rely on this always being an actions workflow run object. + */ "code-scanning-default-setup-update-response": { /** @description ID of the corresponding run. */ run_id?: number; @@ -37940,8 +37980,10 @@ export interface components { resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** @description The secret that was detected. */ secret?: string; @@ -38359,12 +38401,14 @@ export interface components { author: null | components["schemas"]["simple-user"]; /** @example 135 */ total: number; - /** @example { + /** + * @example { * "w": "1367712000", * "a": 6898, * "d": 77, * "c": 10 - * } */ + * } + */ weeks: { w?: number; a?: number; @@ -39310,15 +39354,18 @@ export interface components { key_id: string; /** @example xsBNBFayYZ... */ public_key: string; - /** @example { + /** + * @example { * "email": "octocat@users.noreply.github.com", * "verified": true - * } */ + * } + */ emails: { email?: string; verified?: boolean; }[]; - /** @example { + /** + * @example { * "id": 4, * "primary_key_id": 3, * "key_id": "4A595D4C72EE49C7", @@ -39331,7 +39378,8 @@ export interface components { * "created_at": "2016-03-24T11:31:04-06:00", * "expires_at": null, * "revoked": false - * } */ + * } + */ subkeys: { /** Format: int64 */ id?: number; @@ -44273,8 +44321,10 @@ export interface components { resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** * @description The token status as of the latest validity check. @@ -57109,10 +57159,12 @@ export interface components { /** @enum {string} */ action: "added"; changes?: { - /** @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` + /** + * @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` * role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role * assigned to the collaborator, use the `role_name` field instead, which will provide the full - * role name, including custom roles. */ + * role name, including custom roles. + */ permission?: { /** @enum {string} */ to: "write" | "admin" | "read"; @@ -58603,8 +58655,10 @@ export interface components { "webhook-projects-v2-item-edited": { /** @enum {string} */ action: "edited"; - /** @description The changes made to the item may involve modifications in the item's fields and draft issue body. - * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. */ + /** + * @description The changes made to the item may involve modifications in the item's fields and draft issue body. + * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. + */ changes?: { field_value: { field_node_id?: string; @@ -91837,41 +91891,55 @@ export interface components { enterprise: string; /** @description The unique identifier of the code security configuration. */ "configuration-id": number; - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ "dependabot-alert-comma-separated-states": string; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ "dependabot-alert-comma-separated-severities": string; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ "dependabot-alert-comma-separated-ecosystems": string; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ "dependabot-alert-comma-separated-packages": string; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ "dependabot-alert-comma-separated-epss": string; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ "dependabot-alert-scope": "development" | "runtime"; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ "dependabot-alert-sort": "created" | "updated" | "epss_percentage"; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ "pagination-first": number; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ "pagination-last": number; /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ "secret-scanning-alert-state": "open" | "resolved"; @@ -91983,10 +92051,12 @@ export interface components { "team-slug": string; /** @description The unique identifier of the role. */ "role-id": number; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ "package-visibility": "public" | "private" | "internal"; /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ "package-type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; @@ -92010,27 +92080,32 @@ export interface components { "fine-grained-personal-access-token-id": number; /** @description The custom property name */ "custom-property-name": string; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ "ruleset-targets": string; /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ "ref-in-query": string; /** @description The name of the repository to filter on. */ "repository-name-in-query": string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ "time-period": "hour" | "day" | "week" | "month"; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ "actor-name-in-query": string; /** @description The rule results to filter on. When specified, only suites with this result will be returned. */ "rule-suite-result": "pass" | "fail" | "bypass" | "all"; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ "rule-suite-id": number; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. */ "secret-scanning-pagination-before-org-repo": string; @@ -92050,10 +92125,12 @@ export interface components { "project-id": number; /** @description The security feature to enable or disable. */ "security-product": "dependency_graph" | "dependabot_alerts" | "dependabot_security_updates" | "advanced_security" | "code_scanning_default_setup" | "secret_scanning" | "secret_scanning_push_protection"; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ "org-security-product-enablement": "enable_all" | "disable_all"; /** @description The unique identifier of the card. */ "card-id": number; @@ -92121,10 +92198,12 @@ export interface components { "commit-ref": string; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ "dependabot-alert-comma-separated-manifests": string; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ "dependabot-alert-number": components["schemas"]["alert-number"]; /** @description The full path, relative to the repository root, of the dependency manifest file. */ "manifest-path": string; @@ -92238,34 +92317,48 @@ export interface operations { ecosystem?: components["schemas"]["security-advisory-ecosystems"]; /** @description If specified, only advisories with these severities will be returned. */ severity?: "unknown" | "low" | "medium" | "high" | "critical"; - /** @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. + /** + * @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. * - * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` */ + * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` + */ cwes?: string | string[]; /** @description Whether to only return advisories that have been withdrawn. */ is_withdrawn?: boolean; - /** @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. + /** + * @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. * If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages. * - * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` */ + * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` + */ affects?: string | string[]; - /** @description If specified, only return advisories that were published on a date or date range. + /** + * @description If specified, only return advisories that were published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ published?: string; - /** @description If specified, only return advisories that were updated on a date or date range. + /** + * @description If specified, only return advisories that were updated on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ updated?: string; - /** @description If specified, only show advisories that were updated or published on a date or date range. + /** + * @description If specified, only show advisories that were updated or published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ modified?: string; - /** @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. - * The EPSS percentage represents the likelihood of a CVE being exploited. */ + /** + * @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. + * The EPSS percentage represents the likelihood of a CVE being exploited. + */ epss_percentage?: string; - /** @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. - * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. */ + /** + * @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. + * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. + */ epss_percentile?: string; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ before?: components["parameters"]["pagination-before"]; @@ -93510,9 +93603,11 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ status?: string; }; header?: never; @@ -93542,33 +93637,43 @@ export interface operations { "dependabot/list-alerts-for-enterprise": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -93576,13 +93681,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ per_page?: components["parameters"]["per-page"]; @@ -97361,8 +97470,10 @@ export interface operations { content: { "application/json": { attestations?: { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle?: { mediaType?: string; verificationMaterial?: { @@ -98008,9 +98119,11 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ status?: string; }; header?: never; @@ -98806,33 +98919,43 @@ export interface operations { "dependabot/list-alerts-for-org": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -98840,13 +98963,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ per_page?: components["parameters"]["per-page"]; @@ -100641,10 +100768,12 @@ export interface operations { }; requestBody?: never; responses: { - /** @description * `pending`, which means the migration hasn't started yet. + /** + * @description * `pending`, which means the migration hasn't started yet. * * `exporting`, which means the migration is in progress. * * `exported`, which means the migration finished successfully. - * * `failed`, which means the migration failed. */ + * * `failed`, which means the migration failed. + */ 200: { headers: { [name: string]: unknown; @@ -101204,10 +101333,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: number; @@ -102531,10 +102662,11 @@ export interface operations { per_page?: components["parameters"]["per-page"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -102611,9 +102743,11 @@ export interface operations { ref?: components["parameters"]["ref-in-query"]; /** @description The name of the repository to filter on. */ repository_name?: components["parameters"]["repository-name-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ actor_name?: components["parameters"]["actor-name-in-query"]; @@ -102653,10 +102787,12 @@ export interface operations { path: { /** @description The organization name. The name is not case sensitive. */ org: components["parameters"]["org"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ rule_suite_id: components["parameters"]["rule-suite-id"]; }; cookie?: never; @@ -104515,10 +104651,12 @@ export interface operations { org: components["parameters"]["org"]; /** @description The security feature to enable or disable. */ security_product: components["parameters"]["security-product"]; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ enablement: components["parameters"]["org-security-product-enablement"]; }; cookie?: never; @@ -105429,14 +105567,16 @@ export interface operations { * @enum {string} */ visibility?: "public" | "private"; - /** @description Specify which security and analysis features to enable or disable for the repository. + /** + * @description Specify which security and analysis features to enable or disable for the repository. * * To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." * * For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request: * `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. * - * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. */ + * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. + */ security_and_analysis?: { /** @description Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." */ advanced_security?: { @@ -107786,19 +107926,25 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description The Git reference for the activities you want to list. + /** + * @description The Git reference for the activities you want to list. * - * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. */ + * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. + */ ref?: string; /** @description The GitHub username to use to filter by the actor who performed the activity. */ actor?: string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). + */ time_period?: "day" | "week" | "month" | "quarter" | "year"; - /** @description The activity type to filter by. + /** + * @description The activity type to filter by. * - * For example, you can choose to filter by "force_push", to see all force pushes to the repository. */ + * For example, you can choose to filter by "force_push", to see all force pushes to the repository. + */ activity_type?: "push" | "force_push" | "branch_creation" | "branch_deletion" | "pr_merge" | "merge_queue_merge"; }; header?: never; @@ -107905,8 +108051,10 @@ export interface operations { requestBody: { content: { "application/json": { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle: { mediaType?: string; verificationMaterial?: { @@ -107967,8 +108115,10 @@ export interface operations { content: { "application/json": { attestations?: { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle?: { mediaType?: string; verificationMaterial?: { @@ -110642,8 +110792,10 @@ export interface operations { started_at?: string; /** @description The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. */ tool_name?: string; - /** @description Whether the SARIF file will be validated according to the code scanning specifications. - * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. */ + /** + * @description Whether the SARIF file will be validated according to the code scanning specifications. + * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. + */ validate?: boolean; }; }; @@ -111296,10 +111448,12 @@ export interface operations { "application/json": components["schemas"]["repository-invitation"]; }; }; - /** @description Response when: + /** + * @description Response when: * - an existing collaborator is added as a collaborator * - an organization member is added as an individual collaborator - * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator */ + * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator + */ 204: { headers: { [name: string]: unknown; @@ -112246,35 +112400,45 @@ export interface operations { "dependabot/list-alerts-for-repo": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ manifest?: components["parameters"]["dependabot-alert-comma-separated-manifests"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -112292,13 +112456,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; }; header?: never; @@ -112337,10 +112505,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ alert_number: components["parameters"]["dependabot-alert-number"]; }; cookie?: never; @@ -112370,10 +112540,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ alert_number: components["parameters"]["dependabot-alert-number"]; }; cookie?: never; @@ -114387,17 +114559,23 @@ export interface operations { * @enum {string} */ type?: "blob" | "tree" | "commit"; - /** @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. + /** + * @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ sha?: string | null; - /** @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. + /** + * @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ content?: string; }[]; - /** @description 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. - * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. */ + /** + * @description 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. + * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. + */ base_tree?: string; }; }; @@ -116654,9 +116832,11 @@ export interface operations { title?: string; /** @description The contents of the key. */ key: string; - /** @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + /** + * @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. * - * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." */ + * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ read_only?: boolean; }; }; @@ -119918,10 +120098,11 @@ export interface operations { page?: components["parameters"]["page"]; /** @description Include rulesets configured at higher levels that apply to this repository */ includes_parents?: boolean; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -120000,9 +120181,11 @@ export interface operations { query?: { /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ ref?: components["parameters"]["ref-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ actor_name?: components["parameters"]["actor-name-in-query"]; @@ -120046,10 +120229,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ rule_suite_id: components["parameters"]["rule-suite-id"]; }; cookie?: never; @@ -120877,9 +121062,11 @@ export interface operations { * @enum {string} */ state: "error" | "failure" | "pending" | "success"; - /** @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. + /** + * @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. * For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: - * `http://ci.example.com/user/repo/build/sha` */ + * `http://ci.example.com/user/repo/build/sha` + */ target_url?: string | null; /** @description A short description of the status. */ description?: string | null; @@ -125011,10 +125198,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; @@ -125311,10 +125500,12 @@ export interface operations { query?: { /** @description Limit results to repositories with the specified visibility. */ visibility?: "all" | "public" | "private"; - /** @description Comma-separated list of values. Can include: + /** + * @description Comma-separated list of values. Can include: * * `owner`: Repositories that are owned by the authenticated user. * * `collaborator`: Repositories that the user has been added to as a collaborator. - * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. */ + * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. + */ affiliation?: string; /** @description Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. */ type?: "all" | "owner" | "public" | "private" | "member"; @@ -126498,10 +126689,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; diff --git a/packages/openapi-typescript/examples/github-api-required.ts b/packages/openapi-typescript/examples/github-api-required.ts index ff4362624..3bb28b0c1 100644 --- a/packages/openapi-typescript/examples/github-api-required.ts +++ b/packages/openapi-typescript/examples/github-api-required.ts @@ -14790,8 +14790,7 @@ export interface paths { }; /** * Get all contributor commit activity - * @description - * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: + * @description Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: * * * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time). * * `a` - Number of additions @@ -19457,10 +19456,12 @@ export interface components { single_file_name: string | null; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; /** @example github-actions */ app_slug: string; @@ -19863,10 +19864,12 @@ export interface components { single_file?: string; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; }; /** Scoped Installation */ @@ -19881,10 +19884,12 @@ export interface components { single_file_name: string | null; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; /** * Format: uri @@ -20319,7 +20324,8 @@ export interface components { * @example https://api.github.com/codes_of_conduct/contributor_covenant */ url: string; - /** @example # Contributor Covenant Code of Conduct + /** + * @example # Contributor Covenant Code of Conduct * * ## Our Pledge * @@ -20364,7 +20370,7 @@ export interface components { * ## Attribution * * This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/). - * */ + */ body?: string; /** Format: uri */ html_url: string | null; @@ -20961,8 +20967,10 @@ export interface components { resolved_by: components["schemas"]["nullable-simple-user"]; /** @description The type of secret that secret scanning detected. */ secret_type: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name: string; /** @description The secret that was detected. */ secret: string; @@ -21395,9 +21403,11 @@ export interface components { current_user_actor_url?: string; /** @example https://github.com/octocat-org */ current_user_organization_url?: string; - /** @example [ + /** + * @example [ * "https://github.com/organizations/github/octocat.private.atom?token=abc123" - * ] */ + * ] + */ current_user_organization_urls?: string[]; /** @example https://github.com/security-advisories */ security_advisories_url?: string; @@ -21723,7 +21733,8 @@ export interface components { "gitignore-template": { /** @example C */ name: string; - /** @example # Object files + /** + * @example # Object files * *.o * * # Libraries @@ -21740,7 +21751,7 @@ export interface components { * *.exe * *.out * *.app - * */ + */ source: string; }; /** @@ -21791,25 +21802,30 @@ export interface components { description: string; /** @example Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. */ implementation: string; - /** @example [ + /** + * @example [ * "commercial-use", * "modifications", * "distribution", * "sublicense", * "private-use" - * ] */ + * ] + */ permissions: string[]; - /** @example [ + /** + * @example [ * "include-copyright" - * ] */ + * ] + */ conditions: string[]; - /** @example [ + /** + * @example [ * "no-liability" - * ] */ + * ] + */ limitations: string[]; - /** @example - * - * The MIT License (MIT) + /** + * @example The MIT License (MIT) * * Copyright (c) [year] [fullname] * @@ -21830,7 +21846,7 @@ export interface components { * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ + */ body: string; /** @example true */ featured: boolean; @@ -21872,10 +21888,12 @@ export interface components { unit_name: string | null; /** @example published */ state: string; - /** @example [ + /** + * @example [ * "Up to 25 private repositories", * "11 concurrent builds" - * ] */ + * ] + */ bullets: string[]; }; /** @@ -21920,61 +21938,89 @@ export interface components { SHA256_ECDSA: string; SHA256_ED25519: string; }; - /** @example [ + /** + * @example [ * "ssh-ed25519 ABCDEFGHIJKLMNOPQRSTUVWXYZ" - * ] */ + * ] + */ ssh_keys?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ hooks?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ github_enterprise_importer?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ web?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ api?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ git?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ packages?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ pages?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ importer?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ actions?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ actions_macos?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ codespaces?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ dependabot?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ copilot?: string[]; domains?: { website: string[]; @@ -21987,9 +22033,11 @@ export interface components { wildcard_domains: string[]; }; artifact_attestations: { - /** @example [ + /** + * @example [ * "example" - * ] */ + * ] + */ trust_domain: string; services: string[]; }; @@ -22811,10 +22859,12 @@ export interface components { github_owned_allowed: boolean; /** @description Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. */ verified_allowed: boolean; - /** @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. + /** + * @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. * * > [!NOTE] - * > The `patterns_allowed` setting only applies to public repositories. */ + * > The `patterns_allowed` setting only applies to public repositories. + */ patterns_allowed: string[]; }; /** @@ -22936,10 +22986,12 @@ export interface components { * @example 2016-07-11T22:14:10Z */ expires_at: string; - /** @example { + /** + * @example { * "issues": "read", * "deployments": "write" - * } */ + * } + */ permissions?: Record; /** @description The repositories this token has access to */ repositories?: components["schemas"]["repository"][]; @@ -23102,8 +23154,10 @@ export interface components { version: components["schemas"]["code-scanning-analysis-tool-version"]; guid: components["schemas"]["code-scanning-analysis-tool-guid"]; }; - /** @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, - * `refs/heads/` or simply ``. */ + /** + * @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, + * `refs/heads/` or simply ``. + */ "code-scanning-ref": string; /** @description Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. */ "code-scanning-analysis-analysis-key": string; @@ -23136,8 +23190,10 @@ export interface components { }; location: components["schemas"]["code-scanning-alert-location"]; html_url: string; - /** @description Classifications that have been applied to the file that triggered the alert. - * For example identifying it as documentation, or a generated file. */ + /** + * @description Classifications that have been applied to the file that triggered the alert. + * For example identifying it as documentation, or a generated file. + */ classifications: components["schemas"]["code-scanning-alert-classification"][]; }; "code-scanning-organization-alert-items": { @@ -24204,10 +24260,12 @@ export interface components { deliveries_url?: string; /** @example web */ name: string; - /** @example [ + /** + * @example [ * "push", * "pull_request" - * ] */ + * ] + */ events: string[]; /** @example true */ active: boolean; @@ -24940,8 +24998,10 @@ export interface components { default_value?: (string | string[]) | null; /** @description Short description of the property */ description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ allowed_values?: string[] | null; /** * @description Who can edit the values of the property @@ -24967,8 +25027,10 @@ export interface components { default_value?: (string | string[]) | null; /** @description Short description of the property */ description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ allowed_values?: string[] | null; }; /** @@ -25553,12 +25615,14 @@ export interface components { open_issues_count: number; /** @example true */ is_template?: boolean; - /** @example [ + /** + * @example [ * "octocat", * "atom", * "electron", * "API" - * ] */ + * ] + */ topics?: string[]; /** @example true */ has_issues: boolean; @@ -28656,9 +28720,11 @@ export interface components { url: string; /** @example true */ strict: boolean; - /** @example [ + /** + * @example [ * "continuous-integration/travis-ci" - * ] */ + * ] + */ contexts: string[]; checks: { /** @example continuous-integration/travis-ci */ @@ -29395,8 +29461,10 @@ export interface components { /** @description CodeQL languages to be analyzed. */ languages: ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[]; }; - /** @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. - * You should not rely on this always being an actions workflow run object. */ + /** + * @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. + * You should not rely on this always being an actions workflow run object. + */ "code-scanning-default-setup-update-response": { /** @description ID of the corresponding run. */ run_id: number; @@ -33169,8 +33237,10 @@ export interface components { resolution_comment: string | null; /** @description The type of secret that secret scanning detected. */ secret_type: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name: string; /** @description The secret that was detected. */ secret: string; @@ -33565,7 +33635,8 @@ export interface components { * @description Commit Activity */ "commit-activity": { - /** @example [ + /** + * @example [ * 0, * 3, * 26, @@ -33573,7 +33644,8 @@ export interface components { * 39, * 1, * 0 - * ] */ + * ] + */ days: number[]; /** @example 89 */ total: number; @@ -33588,14 +33660,16 @@ export interface components { author: components["schemas"]["nullable-simple-user"]; /** @example 135 */ total: number; - /** @example [ + /** + * @example [ * { * "w": "1367712000", * "a": 6898, * "d": 77, * "c": 10 * } - * ] */ + * ] + */ weeks: { w: number; a: number; @@ -33770,10 +33844,12 @@ export interface components { language?: string | null; /** Format: date-time */ last_modified_at?: string; - /** @example [ + /** + * @example [ * "73..77", * "77..78" - * ] */ + * ] + */ line_numbers?: string[]; text_matches?: components["schemas"]["search-result-text-matches"]; }; @@ -34541,17 +34617,20 @@ export interface components { key_id: string; /** @example xsBNBFayYZ... */ public_key: string; - /** @example [ + /** + * @example [ * { * "email": "octocat@users.noreply.github.com", * "verified": true * } - * ] */ + * ] + */ emails: { email: string; verified: boolean; }[]; - /** @example [ + /** + * @example [ * { * "id": 4, * "primary_key_id": 3, @@ -34566,7 +34645,8 @@ export interface components { * "expires_at": null, * "revoked": false * } - * ] */ + * ] + */ subkeys: { /** Format: int64 */ id: number; @@ -40016,8 +40096,10 @@ export interface components { resolution_comment: string | null; /** @description The type of secret that secret scanning detected. */ secret_type: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name: string; /** * @description The token status as of the latest validity check. @@ -52852,10 +52934,12 @@ export interface components { /** @enum {string} */ action: "added"; changes?: { - /** @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` + /** + * @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` * role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role * assigned to the collaborator, use the `role_name` field instead, which will provide the full - * role name, including custom roles. */ + * role name, including custom roles. + */ permission: { /** @enum {string} */ to: "write" | "admin" | "read"; @@ -54346,8 +54430,10 @@ export interface components { "webhook-projects-v2-item-edited": { /** @enum {string} */ action: "edited"; - /** @description The changes made to the item may involve modifications in the item's fields and draft issue body. - * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. */ + /** + * @description The changes made to the item may involve modifications in the item's fields and draft issue body. + * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. + */ changes?: { field_value: { field_node_id: string; @@ -87580,41 +87666,55 @@ export interface components { enterprise: string; /** @description The unique identifier of the code security configuration. */ "configuration-id": number; - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ "dependabot-alert-comma-separated-states": string; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ "dependabot-alert-comma-separated-severities": string; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ "dependabot-alert-comma-separated-ecosystems": string; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ "dependabot-alert-comma-separated-packages": string; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ "dependabot-alert-comma-separated-epss": string; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ "dependabot-alert-scope": "development" | "runtime"; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ "dependabot-alert-sort": "created" | "updated" | "epss_percentage"; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ "pagination-first": number; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ "pagination-last": number; /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ "secret-scanning-alert-state": "open" | "resolved"; @@ -87726,10 +87826,12 @@ export interface components { "team-slug": string; /** @description The unique identifier of the role. */ "role-id": number; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ "package-visibility": "public" | "private" | "internal"; /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ "package-type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; @@ -87753,27 +87855,32 @@ export interface components { "fine-grained-personal-access-token-id": number; /** @description The custom property name */ "custom-property-name": string; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ "ruleset-targets": string; /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ "ref-in-query": string; /** @description The name of the repository to filter on. */ "repository-name-in-query": string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ "time-period": "hour" | "day" | "week" | "month"; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ "actor-name-in-query": string; /** @description The rule results to filter on. When specified, only suites with this result will be returned. */ "rule-suite-result": "pass" | "fail" | "bypass" | "all"; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ "rule-suite-id": number; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. */ "secret-scanning-pagination-before-org-repo": string; @@ -87793,10 +87900,12 @@ export interface components { "project-id": number; /** @description The security feature to enable or disable. */ "security-product": "dependency_graph" | "dependabot_alerts" | "dependabot_security_updates" | "advanced_security" | "code_scanning_default_setup" | "secret_scanning" | "secret_scanning_push_protection"; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ "org-security-product-enablement": "enable_all" | "disable_all"; /** @description The unique identifier of the card. */ "card-id": number; @@ -87864,10 +87973,12 @@ export interface components { "commit-ref": string; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ "dependabot-alert-comma-separated-manifests": string; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ "dependabot-alert-number": components["schemas"]["alert-number"]; /** @description The full path, relative to the repository root, of the dependency manifest file. */ "manifest-path": string; @@ -87981,34 +88092,48 @@ export interface operations { ecosystem?: components["schemas"]["security-advisory-ecosystems"]; /** @description If specified, only advisories with these severities will be returned. */ severity?: "unknown" | "low" | "medium" | "high" | "critical"; - /** @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. + /** + * @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. * - * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` */ + * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` + */ cwes?: string | string[]; /** @description Whether to only return advisories that have been withdrawn. */ is_withdrawn?: boolean; - /** @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. + /** + * @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. * If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages. * - * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` */ + * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` + */ affects?: string | string[]; - /** @description If specified, only return advisories that were published on a date or date range. + /** + * @description If specified, only return advisories that were published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ published?: string; - /** @description If specified, only return advisories that were updated on a date or date range. + /** + * @description If specified, only return advisories that were updated on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ updated?: string; - /** @description If specified, only show advisories that were updated or published on a date or date range. + /** + * @description If specified, only show advisories that were updated or published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ modified?: string; - /** @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. - * The EPSS percentage represents the likelihood of a CVE being exploited. */ + /** + * @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. + * The EPSS percentage represents the likelihood of a CVE being exploited. + */ epss_percentage?: string; - /** @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. - * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. */ + /** + * @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. + * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. + */ epss_percentile?: string; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ before?: components["parameters"]["pagination-before"]; @@ -89257,9 +89382,11 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ status?: string; }; header?: never; @@ -89289,33 +89416,43 @@ export interface operations { "dependabot/list-alerts-for-enterprise": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -89323,13 +89460,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ per_page?: components["parameters"]["per-page"]; @@ -93108,8 +93249,10 @@ export interface operations { content: { "application/json": { attestations: { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle: { mediaType: string; verificationMaterial: { @@ -93755,9 +93898,11 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ status?: string; }; header?: never; @@ -94553,33 +94698,43 @@ export interface operations { "dependabot/list-alerts-for-org": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -94587,13 +94742,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ per_page?: components["parameters"]["per-page"]; @@ -96388,10 +96547,12 @@ export interface operations { }; requestBody?: never; responses: { - /** @description * `pending`, which means the migration hasn't started yet. + /** + * @description * `pending`, which means the migration hasn't started yet. * * `exporting`, which means the migration is in progress. * * `exported`, which means the migration finished successfully. - * * `failed`, which means the migration failed. */ + * * `failed`, which means the migration failed. + */ 200: { headers: { [name: string]: unknown; @@ -96951,10 +97112,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: number; @@ -98278,10 +98441,11 @@ export interface operations { per_page?: components["parameters"]["per-page"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -98358,9 +98522,11 @@ export interface operations { ref?: components["parameters"]["ref-in-query"]; /** @description The name of the repository to filter on. */ repository_name?: components["parameters"]["repository-name-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ actor_name?: components["parameters"]["actor-name-in-query"]; @@ -98400,10 +98566,12 @@ export interface operations { path: { /** @description The organization name. The name is not case sensitive. */ org: components["parameters"]["org"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ rule_suite_id: components["parameters"]["rule-suite-id"]; }; cookie?: never; @@ -100262,10 +100430,12 @@ export interface operations { org: components["parameters"]["org"]; /** @description The security feature to enable or disable. */ security_product: components["parameters"]["security-product"]; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ enablement: components["parameters"]["org-security-product-enablement"]; }; cookie?: never; @@ -101176,14 +101346,16 @@ export interface operations { * @enum {string} */ visibility: "public" | "private"; - /** @description Specify which security and analysis features to enable or disable for the repository. + /** + * @description Specify which security and analysis features to enable or disable for the repository. * * To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." * * For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request: * `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. * - * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. */ + * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. + */ security_and_analysis: { /** @description Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." */ advanced_security: { @@ -103535,19 +103707,25 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description The Git reference for the activities you want to list. + /** + * @description The Git reference for the activities you want to list. * - * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. */ + * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. + */ ref?: string; /** @description The GitHub username to use to filter by the actor who performed the activity. */ actor?: string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). + */ time_period?: "day" | "week" | "month" | "quarter" | "year"; - /** @description The activity type to filter by. + /** + * @description The activity type to filter by. * - * For example, you can choose to filter by "force_push", to see all force pushes to the repository. */ + * For example, you can choose to filter by "force_push", to see all force pushes to the repository. + */ activity_type?: "push" | "force_push" | "branch_creation" | "branch_deletion" | "pr_merge" | "merge_queue_merge"; }; header?: never; @@ -103654,8 +103832,10 @@ export interface operations { requestBody: { content: { "application/json": { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle: { mediaType: string; verificationMaterial: { @@ -103716,8 +103896,10 @@ export interface operations { content: { "application/json": { attestations: { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle: { mediaType: string; verificationMaterial: { @@ -106391,8 +106573,10 @@ export interface operations { started_at?: string; /** @description The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. */ tool_name?: string; - /** @description Whether the SARIF file will be validated according to the code scanning specifications. - * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. */ + /** + * @description Whether the SARIF file will be validated according to the code scanning specifications. + * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. + */ validate?: boolean; }; }; @@ -107045,10 +107229,12 @@ export interface operations { "application/json": components["schemas"]["repository-invitation"]; }; }; - /** @description Response when: + /** + * @description Response when: * - an existing collaborator is added as a collaborator * - an organization member is added as an individual collaborator - * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator */ + * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator + */ 204: { headers: { [name: string]: unknown; @@ -107995,35 +108181,45 @@ export interface operations { "dependabot/list-alerts-for-repo": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ manifest?: components["parameters"]["dependabot-alert-comma-separated-manifests"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -108041,13 +108237,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; }; header?: never; @@ -108086,10 +108286,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ alert_number: components["parameters"]["dependabot-alert-number"]; }; cookie?: never; @@ -108119,10 +108321,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ alert_number: components["parameters"]["dependabot-alert-number"]; }; cookie?: never; @@ -110136,17 +110340,23 @@ export interface operations { * @enum {string} */ type: "blob" | "tree" | "commit"; - /** @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. + /** + * @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ sha: string | null; - /** @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. + /** + * @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ content: string; }[]; - /** @description 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. - * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. */ + /** + * @description 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. + * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. + */ base_tree?: string; }; }; @@ -112403,9 +112613,11 @@ export interface operations { title?: string; /** @description The contents of the key. */ key: string; - /** @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + /** + * @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. * - * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." */ + * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ read_only?: boolean; }; }; @@ -115667,10 +115879,11 @@ export interface operations { page?: components["parameters"]["page"]; /** @description Include rulesets configured at higher levels that apply to this repository */ includes_parents?: boolean; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -115749,9 +115962,11 @@ export interface operations { query?: { /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ ref?: components["parameters"]["ref-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ actor_name?: components["parameters"]["actor-name-in-query"]; @@ -115795,10 +116010,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ rule_suite_id: components["parameters"]["rule-suite-id"]; }; cookie?: never; @@ -116626,9 +116843,11 @@ export interface operations { * @enum {string} */ state: "error" | "failure" | "pending" | "success"; - /** @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. + /** + * @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. * For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: - * `http://ci.example.com/user/repo/build/sha` */ + * `http://ci.example.com/user/repo/build/sha` + */ target_url?: string | null; /** @description A short description of the status. */ description?: string | null; @@ -120765,10 +120984,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; @@ -121065,10 +121286,12 @@ export interface operations { query?: { /** @description Limit results to repositories with the specified visibility. */ visibility?: "all" | "public" | "private"; - /** @description Comma-separated list of values. Can include: + /** + * @description Comma-separated list of values. Can include: * * `owner`: Repositories that are owned by the authenticated user. * * `collaborator`: Repositories that the user has been added to as a collaborator. - * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. */ + * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. + */ affiliation?: string; /** @description Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. */ type?: "all" | "owner" | "public" | "private" | "member"; @@ -122258,10 +122481,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; diff --git a/packages/openapi-typescript/examples/github-api-root-types.ts b/packages/openapi-typescript/examples/github-api-root-types.ts index dd0d43544..18af3fe0a 100644 --- a/packages/openapi-typescript/examples/github-api-root-types.ts +++ b/packages/openapi-typescript/examples/github-api-root-types.ts @@ -14790,8 +14790,7 @@ export interface paths { }; /** * Get all contributor commit activity - * @description - * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: + * @description Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: * * * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time). * * `a` - Number of additions @@ -19457,10 +19456,12 @@ export interface components { single_file_name: string | null; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; /** @example github-actions */ app_slug: string; @@ -19863,10 +19864,12 @@ export interface components { single_file?: string; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; }; /** Scoped Installation */ @@ -19881,10 +19884,12 @@ export interface components { single_file_name: string | null; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; /** * Format: uri @@ -20319,7 +20324,8 @@ export interface components { * @example https://api.github.com/codes_of_conduct/contributor_covenant */ url: string; - /** @example # Contributor Covenant Code of Conduct + /** + * @example # Contributor Covenant Code of Conduct * * ## Our Pledge * @@ -20364,7 +20370,7 @@ export interface components { * ## Attribution * * This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/). - * */ + */ body?: string; /** Format: uri */ html_url: string | null; @@ -20961,8 +20967,10 @@ export interface components { resolved_by?: components["schemas"]["nullable-simple-user"]; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** @description The secret that was detected. */ secret?: string; @@ -21395,9 +21403,11 @@ export interface components { current_user_actor_url?: string; /** @example https://github.com/octocat-org */ current_user_organization_url?: string; - /** @example [ + /** + * @example [ * "https://github.com/organizations/github/octocat.private.atom?token=abc123" - * ] */ + * ] + */ current_user_organization_urls?: string[]; /** @example https://github.com/security-advisories */ security_advisories_url?: string; @@ -21723,7 +21733,8 @@ export interface components { "gitignore-template": { /** @example C */ name: string; - /** @example # Object files + /** + * @example # Object files * *.o * * # Libraries @@ -21740,7 +21751,7 @@ export interface components { * *.exe * *.out * *.app - * */ + */ source: string; }; /** @@ -21791,25 +21802,30 @@ export interface components { description: string; /** @example Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. */ implementation: string; - /** @example [ + /** + * @example [ * "commercial-use", * "modifications", * "distribution", * "sublicense", * "private-use" - * ] */ + * ] + */ permissions: string[]; - /** @example [ + /** + * @example [ * "include-copyright" - * ] */ + * ] + */ conditions: string[]; - /** @example [ + /** + * @example [ * "no-liability" - * ] */ + * ] + */ limitations: string[]; - /** @example - * - * The MIT License (MIT) + /** + * @example The MIT License (MIT) * * Copyright (c) [year] [fullname] * @@ -21830,7 +21846,7 @@ export interface components { * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ + */ body: string; /** @example true */ featured: boolean; @@ -21872,10 +21888,12 @@ export interface components { unit_name: string | null; /** @example published */ state: string; - /** @example [ + /** + * @example [ * "Up to 25 private repositories", * "11 concurrent builds" - * ] */ + * ] + */ bullets: string[]; }; /** @@ -21920,61 +21938,89 @@ export interface components { SHA256_ECDSA?: string; SHA256_ED25519?: string; }; - /** @example [ + /** + * @example [ * "ssh-ed25519 ABCDEFGHIJKLMNOPQRSTUVWXYZ" - * ] */ + * ] + */ ssh_keys?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ hooks?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ github_enterprise_importer?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ web?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ api?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ git?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ packages?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ pages?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ importer?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ actions?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ actions_macos?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ codespaces?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ dependabot?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ copilot?: string[]; domains?: { website?: string[]; @@ -21987,9 +22033,11 @@ export interface components { wildcard_domains?: string[]; }; artifact_attestations?: { - /** @example [ + /** + * @example [ * "example" - * ] */ + * ] + */ trust_domain?: string; services?: string[]; }; @@ -22811,10 +22859,12 @@ export interface components { github_owned_allowed?: boolean; /** @description Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. */ verified_allowed?: boolean; - /** @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. + /** + * @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. * * > [!NOTE] - * > The `patterns_allowed` setting only applies to public repositories. */ + * > The `patterns_allowed` setting only applies to public repositories. + */ patterns_allowed?: string[]; }; /** @@ -22936,10 +22986,12 @@ export interface components { * @example 2016-07-11T22:14:10Z */ expires_at: string; - /** @example { + /** + * @example { * "issues": "read", * "deployments": "write" - * } */ + * } + */ permissions?: Record; /** @description The repositories this token has access to */ repositories?: components["schemas"]["repository"][]; @@ -23102,8 +23154,10 @@ export interface components { version?: components["schemas"]["code-scanning-analysis-tool-version"]; guid?: components["schemas"]["code-scanning-analysis-tool-guid"]; }; - /** @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, - * `refs/heads/` or simply ``. */ + /** + * @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, + * `refs/heads/` or simply ``. + */ "code-scanning-ref": string; /** @description Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. */ "code-scanning-analysis-analysis-key": string; @@ -23136,8 +23190,10 @@ export interface components { }; location?: components["schemas"]["code-scanning-alert-location"]; html_url?: string; - /** @description Classifications that have been applied to the file that triggered the alert. - * For example identifying it as documentation, or a generated file. */ + /** + * @description Classifications that have been applied to the file that triggered the alert. + * For example identifying it as documentation, or a generated file. + */ classifications?: components["schemas"]["code-scanning-alert-classification"][]; }; "code-scanning-organization-alert-items": { @@ -24204,10 +24260,12 @@ export interface components { deliveries_url?: string; /** @example web */ name: string; - /** @example [ + /** + * @example [ * "push", * "pull_request" - * ] */ + * ] + */ events: string[]; /** @example true */ active: boolean; @@ -24940,8 +24998,10 @@ export interface components { default_value?: (string | string[]) | null; /** @description Short description of the property */ description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ allowed_values?: string[] | null; /** * @description Who can edit the values of the property @@ -24967,8 +25027,10 @@ export interface components { default_value?: (string | string[]) | null; /** @description Short description of the property */ description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ allowed_values?: string[] | null; }; /** @@ -25553,12 +25615,14 @@ export interface components { open_issues_count: number; /** @example true */ is_template?: boolean; - /** @example [ + /** + * @example [ * "octocat", * "atom", * "electron", * "API" - * ] */ + * ] + */ topics?: string[]; /** @example true */ has_issues: boolean; @@ -28656,9 +28720,11 @@ export interface components { url: string; /** @example true */ strict: boolean; - /** @example [ + /** + * @example [ * "continuous-integration/travis-ci" - * ] */ + * ] + */ contexts: string[]; checks: { /** @example continuous-integration/travis-ci */ @@ -29395,8 +29461,10 @@ export interface components { /** @description CodeQL languages to be analyzed. */ languages?: ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[]; }; - /** @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. - * You should not rely on this always being an actions workflow run object. */ + /** + * @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. + * You should not rely on this always being an actions workflow run object. + */ "code-scanning-default-setup-update-response": { /** @description ID of the corresponding run. */ run_id?: number; @@ -33169,8 +33237,10 @@ export interface components { resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** @description The secret that was detected. */ secret?: string; @@ -33565,7 +33635,8 @@ export interface components { * @description Commit Activity */ "commit-activity": { - /** @example [ + /** + * @example [ * 0, * 3, * 26, @@ -33573,7 +33644,8 @@ export interface components { * 39, * 1, * 0 - * ] */ + * ] + */ days: number[]; /** @example 89 */ total: number; @@ -33588,14 +33660,16 @@ export interface components { author: components["schemas"]["nullable-simple-user"]; /** @example 135 */ total: number; - /** @example [ + /** + * @example [ * { * "w": "1367712000", * "a": 6898, * "d": 77, * "c": 10 * } - * ] */ + * ] + */ weeks: { w?: number; a?: number; @@ -33770,10 +33844,12 @@ export interface components { language?: string | null; /** Format: date-time */ last_modified_at?: string; - /** @example [ + /** + * @example [ * "73..77", * "77..78" - * ] */ + * ] + */ line_numbers?: string[]; text_matches?: components["schemas"]["search-result-text-matches"]; }; @@ -34541,17 +34617,20 @@ export interface components { key_id: string; /** @example xsBNBFayYZ... */ public_key: string; - /** @example [ + /** + * @example [ * { * "email": "octocat@users.noreply.github.com", * "verified": true * } - * ] */ + * ] + */ emails: { email?: string; verified?: boolean; }[]; - /** @example [ + /** + * @example [ * { * "id": 4, * "primary_key_id": 3, @@ -34566,7 +34645,8 @@ export interface components { * "expires_at": null, * "revoked": false * } - * ] */ + * ] + */ subkeys: { /** Format: int64 */ id?: number; @@ -40016,8 +40096,10 @@ export interface components { resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** * @description The token status as of the latest validity check. @@ -52852,10 +52934,12 @@ export interface components { /** @enum {string} */ action: "added"; changes?: { - /** @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` + /** + * @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` * role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role * assigned to the collaborator, use the `role_name` field instead, which will provide the full - * role name, including custom roles. */ + * role name, including custom roles. + */ permission?: { /** @enum {string} */ to: "write" | "admin" | "read"; @@ -54346,8 +54430,10 @@ export interface components { "webhook-projects-v2-item-edited": { /** @enum {string} */ action: "edited"; - /** @description The changes made to the item may involve modifications in the item's fields and draft issue body. - * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. */ + /** + * @description The changes made to the item may involve modifications in the item's fields and draft issue body. + * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. + */ changes?: { field_value: { field_node_id?: string; @@ -87580,41 +87666,55 @@ export interface components { enterprise: string; /** @description The unique identifier of the code security configuration. */ "configuration-id": number; - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ "dependabot-alert-comma-separated-states": string; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ "dependabot-alert-comma-separated-severities": string; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ "dependabot-alert-comma-separated-ecosystems": string; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ "dependabot-alert-comma-separated-packages": string; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ "dependabot-alert-comma-separated-epss": string; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ "dependabot-alert-scope": "development" | "runtime"; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ "dependabot-alert-sort": "created" | "updated" | "epss_percentage"; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ "pagination-first": number; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ "pagination-last": number; /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ "secret-scanning-alert-state": "open" | "resolved"; @@ -87726,10 +87826,12 @@ export interface components { "team-slug": string; /** @description The unique identifier of the role. */ "role-id": number; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ "package-visibility": "public" | "private" | "internal"; /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ "package-type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; @@ -87753,27 +87855,32 @@ export interface components { "fine-grained-personal-access-token-id": number; /** @description The custom property name */ "custom-property-name": string; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ "ruleset-targets": string; /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ "ref-in-query": string; /** @description The name of the repository to filter on. */ "repository-name-in-query": string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ "time-period": "hour" | "day" | "week" | "month"; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ "actor-name-in-query": string; /** @description The rule results to filter on. When specified, only suites with this result will be returned. */ "rule-suite-result": "pass" | "fail" | "bypass" | "all"; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ "rule-suite-id": number; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. */ "secret-scanning-pagination-before-org-repo": string; @@ -87793,10 +87900,12 @@ export interface components { "project-id": number; /** @description The security feature to enable or disable. */ "security-product": "dependency_graph" | "dependabot_alerts" | "dependabot_security_updates" | "advanced_security" | "code_scanning_default_setup" | "secret_scanning" | "secret_scanning_push_protection"; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ "org-security-product-enablement": "enable_all" | "disable_all"; /** @description The unique identifier of the card. */ "card-id": number; @@ -87864,10 +87973,12 @@ export interface components { "commit-ref": string; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ "dependabot-alert-comma-separated-manifests": string; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ "dependabot-alert-number": components["schemas"]["alert-number"]; /** @description The full path, relative to the repository root, of the dependency manifest file. */ "manifest-path": string; @@ -89008,34 +89119,48 @@ export interface operations { ecosystem?: components["schemas"]["security-advisory-ecosystems"]; /** @description If specified, only advisories with these severities will be returned. */ severity?: "unknown" | "low" | "medium" | "high" | "critical"; - /** @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. + /** + * @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. * - * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` */ + * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` + */ cwes?: string | string[]; /** @description Whether to only return advisories that have been withdrawn. */ is_withdrawn?: boolean; - /** @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. + /** + * @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. * If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages. * - * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` */ + * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` + */ affects?: string | string[]; - /** @description If specified, only return advisories that were published on a date or date range. + /** + * @description If specified, only return advisories that were published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ published?: string; - /** @description If specified, only return advisories that were updated on a date or date range. + /** + * @description If specified, only return advisories that were updated on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ updated?: string; - /** @description If specified, only show advisories that were updated or published on a date or date range. + /** + * @description If specified, only show advisories that were updated or published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ modified?: string; - /** @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. - * The EPSS percentage represents the likelihood of a CVE being exploited. */ + /** + * @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. + * The EPSS percentage represents the likelihood of a CVE being exploited. + */ epss_percentage?: string; - /** @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. - * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. */ + /** + * @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. + * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. + */ epss_percentile?: string; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ before?: components["parameters"]["pagination-before"]; @@ -90284,9 +90409,11 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ status?: string; }; header?: never; @@ -90316,33 +90443,43 @@ export interface operations { "dependabot/list-alerts-for-enterprise": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -90350,13 +90487,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ per_page?: components["parameters"]["per-page"]; @@ -94135,8 +94276,10 @@ export interface operations { content: { "application/json": { attestations?: { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle?: { mediaType?: string; verificationMaterial?: { @@ -94782,9 +94925,11 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ status?: string; }; header?: never; @@ -95580,33 +95725,43 @@ export interface operations { "dependabot/list-alerts-for-org": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -95614,13 +95769,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ per_page?: components["parameters"]["per-page"]; @@ -97415,10 +97574,12 @@ export interface operations { }; requestBody?: never; responses: { - /** @description * `pending`, which means the migration hasn't started yet. + /** + * @description * `pending`, which means the migration hasn't started yet. * * `exporting`, which means the migration is in progress. * * `exported`, which means the migration finished successfully. - * * `failed`, which means the migration failed. */ + * * `failed`, which means the migration failed. + */ 200: { headers: { [name: string]: unknown; @@ -97978,10 +98139,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: number; @@ -99305,10 +99468,11 @@ export interface operations { per_page?: components["parameters"]["per-page"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -99385,9 +99549,11 @@ export interface operations { ref?: components["parameters"]["ref-in-query"]; /** @description The name of the repository to filter on. */ repository_name?: components["parameters"]["repository-name-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ actor_name?: components["parameters"]["actor-name-in-query"]; @@ -99427,10 +99593,12 @@ export interface operations { path: { /** @description The organization name. The name is not case sensitive. */ org: components["parameters"]["org"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ rule_suite_id: components["parameters"]["rule-suite-id"]; }; cookie?: never; @@ -101289,10 +101457,12 @@ export interface operations { org: components["parameters"]["org"]; /** @description The security feature to enable or disable. */ security_product: components["parameters"]["security-product"]; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ enablement: components["parameters"]["org-security-product-enablement"]; }; cookie?: never; @@ -102203,14 +102373,16 @@ export interface operations { * @enum {string} */ visibility?: "public" | "private"; - /** @description Specify which security and analysis features to enable or disable for the repository. + /** + * @description Specify which security and analysis features to enable or disable for the repository. * * To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." * * For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request: * `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. * - * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. */ + * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. + */ security_and_analysis?: { /** @description Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." */ advanced_security?: { @@ -104562,19 +104734,25 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description The Git reference for the activities you want to list. + /** + * @description The Git reference for the activities you want to list. * - * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. */ + * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. + */ ref?: string; /** @description The GitHub username to use to filter by the actor who performed the activity. */ actor?: string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). + */ time_period?: "day" | "week" | "month" | "quarter" | "year"; - /** @description The activity type to filter by. + /** + * @description The activity type to filter by. * - * For example, you can choose to filter by "force_push", to see all force pushes to the repository. */ + * For example, you can choose to filter by "force_push", to see all force pushes to the repository. + */ activity_type?: "push" | "force_push" | "branch_creation" | "branch_deletion" | "pr_merge" | "merge_queue_merge"; }; header?: never; @@ -104681,8 +104859,10 @@ export interface operations { requestBody: { content: { "application/json": { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle: { mediaType?: string; verificationMaterial?: { @@ -104743,8 +104923,10 @@ export interface operations { content: { "application/json": { attestations?: { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle?: { mediaType?: string; verificationMaterial?: { @@ -107418,8 +107600,10 @@ export interface operations { started_at?: string; /** @description The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. */ tool_name?: string; - /** @description Whether the SARIF file will be validated according to the code scanning specifications. - * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. */ + /** + * @description Whether the SARIF file will be validated according to the code scanning specifications. + * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. + */ validate?: boolean; }; }; @@ -108072,10 +108256,12 @@ export interface operations { "application/json": components["schemas"]["repository-invitation"]; }; }; - /** @description Response when: + /** + * @description Response when: * - an existing collaborator is added as a collaborator * - an organization member is added as an individual collaborator - * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator */ + * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator + */ 204: { headers: { [name: string]: unknown; @@ -109022,35 +109208,45 @@ export interface operations { "dependabot/list-alerts-for-repo": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ manifest?: components["parameters"]["dependabot-alert-comma-separated-manifests"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -109068,13 +109264,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; }; header?: never; @@ -109113,10 +109313,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ alert_number: components["parameters"]["dependabot-alert-number"]; }; cookie?: never; @@ -109146,10 +109348,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ alert_number: components["parameters"]["dependabot-alert-number"]; }; cookie?: never; @@ -111163,17 +111367,23 @@ export interface operations { * @enum {string} */ type?: "blob" | "tree" | "commit"; - /** @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. + /** + * @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ sha?: string | null; - /** @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. + /** + * @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ content?: string; }[]; - /** @description 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. - * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. */ + /** + * @description 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. + * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. + */ base_tree?: string; }; }; @@ -113430,9 +113640,11 @@ export interface operations { title?: string; /** @description The contents of the key. */ key: string; - /** @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + /** + * @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. * - * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." */ + * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ read_only?: boolean; }; }; @@ -116694,10 +116906,11 @@ export interface operations { page?: components["parameters"]["page"]; /** @description Include rulesets configured at higher levels that apply to this repository */ includes_parents?: boolean; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -116776,9 +116989,11 @@ export interface operations { query?: { /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ ref?: components["parameters"]["ref-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ actor_name?: components["parameters"]["actor-name-in-query"]; @@ -116822,10 +117037,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ rule_suite_id: components["parameters"]["rule-suite-id"]; }; cookie?: never; @@ -117653,9 +117870,11 @@ export interface operations { * @enum {string} */ state: "error" | "failure" | "pending" | "success"; - /** @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. + /** + * @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. * For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: - * `http://ci.example.com/user/repo/build/sha` */ + * `http://ci.example.com/user/repo/build/sha` + */ target_url?: string | null; /** @description A short description of the status. */ description?: string | null; @@ -121792,10 +122011,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; @@ -122092,10 +122313,12 @@ export interface operations { query?: { /** @description Limit results to repositories with the specified visibility. */ visibility?: "all" | "public" | "private"; - /** @description Comma-separated list of values. Can include: + /** + * @description Comma-separated list of values. Can include: * * `owner`: Repositories that are owned by the authenticated user. * * `collaborator`: Repositories that the user has been added to as a collaborator. - * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. */ + * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. + */ affiliation?: string; /** @description Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. */ type?: "all" | "owner" | "public" | "private" | "member"; @@ -123285,10 +123508,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; diff --git a/packages/openapi-typescript/examples/github-api.ts b/packages/openapi-typescript/examples/github-api.ts index 510f78b83..c63dd71bc 100644 --- a/packages/openapi-typescript/examples/github-api.ts +++ b/packages/openapi-typescript/examples/github-api.ts @@ -14790,8 +14790,7 @@ export interface paths { }; /** * Get all contributor commit activity - * @description - * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: + * @description Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: * * * `w` - Start of the week, given as a [Unix timestamp](https://en.wikipedia.org/wiki/Unix_time). * * `a` - Number of additions @@ -19457,10 +19456,12 @@ export interface components { single_file_name: string | null; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; /** @example github-actions */ app_slug: string; @@ -19863,10 +19864,12 @@ export interface components { single_file?: string; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; }; /** Scoped Installation */ @@ -19881,10 +19884,12 @@ export interface components { single_file_name: string | null; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; /** * Format: uri @@ -20319,7 +20324,8 @@ export interface components { * @example https://api.github.com/codes_of_conduct/contributor_covenant */ url: string; - /** @example # Contributor Covenant Code of Conduct + /** + * @example # Contributor Covenant Code of Conduct * * ## Our Pledge * @@ -20364,7 +20370,7 @@ export interface components { * ## Attribution * * This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/). - * */ + */ body?: string; /** Format: uri */ html_url: string | null; @@ -20961,8 +20967,10 @@ export interface components { resolved_by?: components["schemas"]["nullable-simple-user"]; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** @description The secret that was detected. */ secret?: string; @@ -21395,9 +21403,11 @@ export interface components { current_user_actor_url?: string; /** @example https://github.com/octocat-org */ current_user_organization_url?: string; - /** @example [ + /** + * @example [ * "https://github.com/organizations/github/octocat.private.atom?token=abc123" - * ] */ + * ] + */ current_user_organization_urls?: string[]; /** @example https://github.com/security-advisories */ security_advisories_url?: string; @@ -21723,7 +21733,8 @@ export interface components { "gitignore-template": { /** @example C */ name: string; - /** @example # Object files + /** + * @example # Object files * *.o * * # Libraries @@ -21740,7 +21751,7 @@ export interface components { * *.exe * *.out * *.app - * */ + */ source: string; }; /** @@ -21791,25 +21802,30 @@ export interface components { description: string; /** @example Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. */ implementation: string; - /** @example [ + /** + * @example [ * "commercial-use", * "modifications", * "distribution", * "sublicense", * "private-use" - * ] */ + * ] + */ permissions: string[]; - /** @example [ + /** + * @example [ * "include-copyright" - * ] */ + * ] + */ conditions: string[]; - /** @example [ + /** + * @example [ * "no-liability" - * ] */ + * ] + */ limitations: string[]; - /** @example - * - * The MIT License (MIT) + /** + * @example The MIT License (MIT) * * Copyright (c) [year] [fullname] * @@ -21830,7 +21846,7 @@ export interface components { * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ + */ body: string; /** @example true */ featured: boolean; @@ -21872,10 +21888,12 @@ export interface components { unit_name: string | null; /** @example published */ state: string; - /** @example [ + /** + * @example [ * "Up to 25 private repositories", * "11 concurrent builds" - * ] */ + * ] + */ bullets: string[]; }; /** @@ -21920,61 +21938,89 @@ export interface components { SHA256_ECDSA?: string; SHA256_ED25519?: string; }; - /** @example [ + /** + * @example [ * "ssh-ed25519 ABCDEFGHIJKLMNOPQRSTUVWXYZ" - * ] */ + * ] + */ ssh_keys?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ hooks?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ github_enterprise_importer?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ web?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ api?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ git?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ packages?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ pages?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ importer?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ actions?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ actions_macos?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ codespaces?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ dependabot?: string[]; - /** @example [ + /** + * @example [ * "192.0.2.1" - * ] */ + * ] + */ copilot?: string[]; domains?: { website?: string[]; @@ -21987,9 +22033,11 @@ export interface components { wildcard_domains?: string[]; }; artifact_attestations?: { - /** @example [ + /** + * @example [ * "example" - * ] */ + * ] + */ trust_domain?: string; services?: string[]; }; @@ -22811,10 +22859,12 @@ export interface components { github_owned_allowed?: boolean; /** @description Whether actions from GitHub Marketplace verified creators are allowed. Set to `true` to allow all actions by GitHub Marketplace verified creators. */ verified_allowed?: boolean; - /** @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. + /** + * @description Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`. * * > [!NOTE] - * > The `patterns_allowed` setting only applies to public repositories. */ + * > The `patterns_allowed` setting only applies to public repositories. + */ patterns_allowed?: string[]; }; /** @@ -22936,10 +22986,12 @@ export interface components { * @example 2016-07-11T22:14:10Z */ expires_at: string; - /** @example { + /** + * @example { * "issues": "read", * "deployments": "write" - * } */ + * } + */ permissions?: Record; /** @description The repositories this token has access to */ repositories?: components["schemas"]["repository"][]; @@ -23102,8 +23154,10 @@ export interface components { version?: components["schemas"]["code-scanning-analysis-tool-version"]; guid?: components["schemas"]["code-scanning-analysis-tool-guid"]; }; - /** @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, - * `refs/heads/` or simply ``. */ + /** + * @description The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, + * `refs/heads/` or simply ``. + */ "code-scanning-ref": string; /** @description Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. */ "code-scanning-analysis-analysis-key": string; @@ -23136,8 +23190,10 @@ export interface components { }; location?: components["schemas"]["code-scanning-alert-location"]; html_url?: string; - /** @description Classifications that have been applied to the file that triggered the alert. - * For example identifying it as documentation, or a generated file. */ + /** + * @description Classifications that have been applied to the file that triggered the alert. + * For example identifying it as documentation, or a generated file. + */ classifications?: components["schemas"]["code-scanning-alert-classification"][]; }; "code-scanning-organization-alert-items": { @@ -24204,10 +24260,12 @@ export interface components { deliveries_url?: string; /** @example web */ name: string; - /** @example [ + /** + * @example [ * "push", * "pull_request" - * ] */ + * ] + */ events: string[]; /** @example true */ active: boolean; @@ -24940,8 +24998,10 @@ export interface components { default_value?: (string | string[]) | null; /** @description Short description of the property */ description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ allowed_values?: string[] | null; /** * @description Who can edit the values of the property @@ -24967,8 +25027,10 @@ export interface components { default_value?: (string | string[]) | null; /** @description Short description of the property */ description?: string | null; - /** @description An ordered list of the allowed values of the property. - * The property can have up to 200 allowed values. */ + /** + * @description An ordered list of the allowed values of the property. + * The property can have up to 200 allowed values. + */ allowed_values?: string[] | null; }; /** @@ -25553,12 +25615,14 @@ export interface components { open_issues_count: number; /** @example true */ is_template?: boolean; - /** @example [ + /** + * @example [ * "octocat", * "atom", * "electron", * "API" - * ] */ + * ] + */ topics?: string[]; /** @example true */ has_issues: boolean; @@ -28656,9 +28720,11 @@ export interface components { url: string; /** @example true */ strict: boolean; - /** @example [ + /** + * @example [ * "continuous-integration/travis-ci" - * ] */ + * ] + */ contexts: string[]; checks: { /** @example continuous-integration/travis-ci */ @@ -29395,8 +29461,10 @@ export interface components { /** @description CodeQL languages to be analyzed. */ languages?: ("actions" | "c-cpp" | "csharp" | "go" | "java-kotlin" | "javascript-typescript" | "python" | "ruby" | "swift")[]; }; - /** @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. - * You should not rely on this always being an actions workflow run object. */ + /** + * @description You can use `run_url` to track the status of the run. This includes a property status and conclusion. + * You should not rely on this always being an actions workflow run object. + */ "code-scanning-default-setup-update-response": { /** @description ID of the corresponding run. */ run_id?: number; @@ -33169,8 +33237,10 @@ export interface components { resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** @description The secret that was detected. */ secret?: string; @@ -33565,7 +33635,8 @@ export interface components { * @description Commit Activity */ "commit-activity": { - /** @example [ + /** + * @example [ * 0, * 3, * 26, @@ -33573,7 +33644,8 @@ export interface components { * 39, * 1, * 0 - * ] */ + * ] + */ days: number[]; /** @example 89 */ total: number; @@ -33588,14 +33660,16 @@ export interface components { author: components["schemas"]["nullable-simple-user"]; /** @example 135 */ total: number; - /** @example [ + /** + * @example [ * { * "w": "1367712000", * "a": 6898, * "d": 77, * "c": 10 * } - * ] */ + * ] + */ weeks: { w?: number; a?: number; @@ -33770,10 +33844,12 @@ export interface components { language?: string | null; /** Format: date-time */ last_modified_at?: string; - /** @example [ + /** + * @example [ * "73..77", * "77..78" - * ] */ + * ] + */ line_numbers?: string[]; text_matches?: components["schemas"]["search-result-text-matches"]; }; @@ -34541,17 +34617,20 @@ export interface components { key_id: string; /** @example xsBNBFayYZ... */ public_key: string; - /** @example [ + /** + * @example [ * { * "email": "octocat@users.noreply.github.com", * "verified": true * } - * ] */ + * ] + */ emails: { email?: string; verified?: boolean; }[]; - /** @example [ + /** + * @example [ * { * "id": 4, * "primary_key_id": 3, @@ -34566,7 +34645,8 @@ export interface components { * "expires_at": null, * "revoked": false * } - * ] */ + * ] + */ subkeys: { /** Format: int64 */ id?: number; @@ -40016,8 +40096,10 @@ export interface components { resolution_comment?: string | null; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + */ secret_type_display_name?: string; /** * @description The token status as of the latest validity check. @@ -52852,10 +52934,12 @@ export interface components { /** @enum {string} */ action: "added"; changes?: { - /** @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` + /** + * @description This field is included for legacy purposes; use the `role_name` field instead. The `maintain` * role is mapped to `write` and the `triage` role is mapped to `read`. To determine the role * assigned to the collaborator, use the `role_name` field instead, which will provide the full - * role name, including custom roles. */ + * role name, including custom roles. + */ permission?: { /** @enum {string} */ to: "write" | "admin" | "read"; @@ -54346,8 +54430,10 @@ export interface components { "webhook-projects-v2-item-edited": { /** @enum {string} */ action: "edited"; - /** @description The changes made to the item may involve modifications in the item's fields and draft issue body. - * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. */ + /** + * @description The changes made to the item may involve modifications in the item's fields and draft issue body. + * It includes altered values for text, number, date, single select, and iteration fields, along with the GraphQL node ID of the changed field. + */ changes?: { field_value: { field_node_id?: string; @@ -87580,41 +87666,55 @@ export interface components { enterprise: string; /** @description The unique identifier of the code security configuration. */ "configuration-id": number; - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ "dependabot-alert-comma-separated-states": string; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ "dependabot-alert-comma-separated-severities": string; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ "dependabot-alert-comma-separated-ecosystems": string; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ "dependabot-alert-comma-separated-packages": string; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ "dependabot-alert-comma-separated-epss": string; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ "dependabot-alert-scope": "development" | "runtime"; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ "dependabot-alert-sort": "created" | "updated" | "epss_percentage"; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ "pagination-first": number; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ "pagination-last": number; /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ "secret-scanning-alert-state": "open" | "resolved"; @@ -87726,10 +87826,12 @@ export interface components { "team-slug": string; /** @description The unique identifier of the role. */ "role-id": number; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ "package-visibility": "public" | "private" | "internal"; /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ "package-type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; @@ -87753,27 +87855,32 @@ export interface components { "fine-grained-personal-access-token-id": number; /** @description The custom property name */ "custom-property-name": string; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ "ruleset-targets": string; /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ "ref-in-query": string; /** @description The name of the repository to filter on. */ "repository-name-in-query": string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ "time-period": "hour" | "day" | "week" | "month"; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ "actor-name-in-query": string; /** @description The rule results to filter on. When specified, only suites with this result will be returned. */ "rule-suite-result": "pass" | "fail" | "bypass" | "all"; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ "rule-suite-id": number; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To receive an initial cursor on your first request, include an empty "before" query string. */ "secret-scanning-pagination-before-org-repo": string; @@ -87793,10 +87900,12 @@ export interface components { "project-id": number; /** @description The security feature to enable or disable. */ "security-product": "dependency_graph" | "dependabot_alerts" | "dependabot_security_updates" | "advanced_security" | "code_scanning_default_setup" | "secret_scanning" | "secret_scanning_push_protection"; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ "org-security-product-enablement": "enable_all" | "disable_all"; /** @description The unique identifier of the card. */ "card-id": number; @@ -87864,10 +87973,12 @@ export interface components { "commit-ref": string; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ "dependabot-alert-comma-separated-manifests": string; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ "dependabot-alert-number": components["schemas"]["alert-number"]; /** @description The full path, relative to the repository root, of the dependency manifest file. */ "manifest-path": string; @@ -87981,34 +88092,48 @@ export interface operations { ecosystem?: components["schemas"]["security-advisory-ecosystems"]; /** @description If specified, only advisories with these severities will be returned. */ severity?: "unknown" | "low" | "medium" | "high" | "critical"; - /** @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. + /** + * @description If specified, only advisories with these Common Weakness Enumerations (CWEs) will be returned. * - * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` */ + * Example: `cwes=79,284,22` or `cwes[]=79&cwes[]=284&cwes[]=22` + */ cwes?: string | string[]; /** @description Whether to only return advisories that have been withdrawn. */ is_withdrawn?: boolean; - /** @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. + /** + * @description If specified, only return advisories that affect any of `package` or `package@version`. A maximum of 1000 packages can be specified. * If the query parameter causes the URL to exceed the maximum URL length supported by your client, you must specify fewer packages. * - * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` */ + * Example: `affects=package1,package2@1.0.0,package3@^2.0.0` or `affects[]=package1&affects[]=package2@1.0.0` + */ affects?: string | string[]; - /** @description If specified, only return advisories that were published on a date or date range. + /** + * @description If specified, only return advisories that were published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ published?: string; - /** @description If specified, only return advisories that were updated on a date or date range. + /** + * @description If specified, only return advisories that were updated on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ updated?: string; - /** @description If specified, only show advisories that were updated or published on a date or date range. + /** + * @description If specified, only show advisories that were updated or published on a date or date range. * - * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." */ + * For more information on the syntax of the date range, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." + */ modified?: string; - /** @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. - * The EPSS percentage represents the likelihood of a CVE being exploited. */ + /** + * @description If specified, only return advisories that have an EPSS percentage score that matches the provided value. + * The EPSS percentage represents the likelihood of a CVE being exploited. + */ epss_percentage?: string; - /** @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. - * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. */ + /** + * @description If specified, only return advisories that have an EPSS percentile score that matches the provided value. + * The EPSS percentile represents the relative rank of the CVE's likelihood of being exploited compared to other CVEs. + */ epss_percentile?: string; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ before?: components["parameters"]["pagination-before"]; @@ -89257,9 +89382,11 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ status?: string; }; header?: never; @@ -89289,33 +89416,43 @@ export interface operations { "dependabot/list-alerts-for-enterprise": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -89323,13 +89460,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ per_page?: components["parameters"]["per-page"]; @@ -93108,8 +93249,10 @@ export interface operations { content: { "application/json": { attestations?: { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle?: { mediaType?: string; verificationMaterial?: { @@ -93755,9 +93898,11 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. + /** + * @description A comma-separated list of statuses. If specified, only repositories with these attachment statuses will be returned. * - * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` */ + * Can be: `all`, `attached`, `attaching`, `detached`, `removed`, `enforced`, `failed`, `updating`, `removed_by_enterprise` + */ status?: string; }; header?: never; @@ -94553,33 +94698,43 @@ export interface operations { "dependabot/list-alerts-for-org": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -94587,13 +94742,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; /** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ per_page?: components["parameters"]["per-page"]; @@ -96388,10 +96547,12 @@ export interface operations { }; requestBody?: never; responses: { - /** @description * `pending`, which means the migration hasn't started yet. + /** + * @description * `pending`, which means the migration hasn't started yet. * * `exporting`, which means the migration is in progress. * * `exported`, which means the migration finished successfully. - * * `failed`, which means the migration failed. */ + * * `failed`, which means the migration failed. + */ 200: { headers: { [name: string]: unknown; @@ -96951,10 +97112,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: number; @@ -98278,10 +98441,11 @@ export interface operations { per_page?: components["parameters"]["per-page"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -98358,9 +98522,11 @@ export interface operations { ref?: components["parameters"]["ref-in-query"]; /** @description The name of the repository to filter on. */ repository_name?: components["parameters"]["repository-name-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ actor_name?: components["parameters"]["actor-name-in-query"]; @@ -98400,10 +98566,12 @@ export interface operations { path: { /** @description The organization name. The name is not case sensitive. */ org: components["parameters"]["org"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ rule_suite_id: components["parameters"]["rule-suite-id"]; }; cookie?: never; @@ -100262,10 +100430,12 @@ export interface operations { org: components["parameters"]["org"]; /** @description The security feature to enable or disable. */ security_product: components["parameters"]["security-product"]; - /** @description The action to take. + /** + * @description The action to take. * * `enable_all` means to enable the specified security feature for all repositories in the organization. - * `disable_all` means to disable the specified security feature for all repositories in the organization. */ + * `disable_all` means to disable the specified security feature for all repositories in the organization. + */ enablement: components["parameters"]["org-security-product-enablement"]; }; cookie?: never; @@ -101176,14 +101346,16 @@ export interface operations { * @enum {string} */ visibility?: "public" | "private"; - /** @description Specify which security and analysis features to enable or disable for the repository. + /** + * @description Specify which security and analysis features to enable or disable for the repository. * * To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." * * For example, to enable GitHub Advanced Security, use this data in the body of the `PATCH` request: * `{ "security_and_analysis": {"advanced_security": { "status": "enabled" } } }`. * - * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. */ + * You can check which security and analysis features are currently enabled by using a `GET /repos/{owner}/{repo}` request. + */ security_and_analysis?: { /** @description Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." */ advanced_security?: { @@ -103535,19 +103707,25 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description The Git reference for the activities you want to list. + /** + * @description The Git reference for the activities you want to list. * - * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. */ + * The `ref` for a branch can be formatted either as `refs/heads/BRANCH_NAME` or `BRANCH_NAME`, where `BRANCH_NAME` is the name of your branch. + */ ref?: string; /** @description The GitHub username to use to filter by the actor who performed the activity. */ actor?: string; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for activity that occurred in the past 24 hours, and `week` will filter for activity that occurred in the past 7 days (168 hours). + */ time_period?: "day" | "week" | "month" | "quarter" | "year"; - /** @description The activity type to filter by. + /** + * @description The activity type to filter by. * - * For example, you can choose to filter by "force_push", to see all force pushes to the repository. */ + * For example, you can choose to filter by "force_push", to see all force pushes to the repository. + */ activity_type?: "push" | "force_push" | "branch_creation" | "branch_deletion" | "pr_merge" | "merge_queue_merge"; }; header?: never; @@ -103654,8 +103832,10 @@ export interface operations { requestBody: { content: { "application/json": { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle: { mediaType?: string; verificationMaterial?: { @@ -103716,8 +103896,10 @@ export interface operations { content: { "application/json": { attestations?: { - /** @description The attestation's Sigstore Bundle. - * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. */ + /** + * @description The attestation's Sigstore Bundle. + * Refer to the [Sigstore Bundle Specification](https://github.com/sigstore/protobuf-specs/blob/main/protos/sigstore_bundle.proto) for more information. + */ bundle?: { mediaType?: string; verificationMaterial?: { @@ -106391,8 +106573,10 @@ export interface operations { started_at?: string; /** @description The name of the tool used to generate the code scanning analysis. If this parameter is not used, the tool name defaults to "API". If the uploaded SARIF contains a tool GUID, this will be available for filtering using the `tool_guid` parameter of operations such as `GET /repos/{owner}/{repo}/code-scanning/alerts`. */ tool_name?: string; - /** @description Whether the SARIF file will be validated according to the code scanning specifications. - * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. */ + /** + * @description Whether the SARIF file will be validated according to the code scanning specifications. + * This parameter is intended to help integrators ensure that the uploaded SARIF files are correctly rendered by code scanning. + */ validate?: boolean; }; }; @@ -107045,10 +107229,12 @@ export interface operations { "application/json": components["schemas"]["repository-invitation"]; }; }; - /** @description Response when: + /** + * @description Response when: * - an existing collaborator is added as a collaborator * - an organization member is added as an individual collaborator - * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator */ + * - an existing team member (whose team is also a repository collaborator) is added as an individual collaborator + */ 204: { headers: { [name: string]: unknown; @@ -107995,35 +108181,45 @@ export interface operations { "dependabot/list-alerts-for-repo": { parameters: { query?: { - /** @description A comma-separated list of states. If specified, only alerts with these states will be returned. + /** + * @description A comma-separated list of states. If specified, only alerts with these states will be returned. * - * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` */ + * Can be: `auto_dismissed`, `dismissed`, `fixed`, `open` + */ state?: components["parameters"]["dependabot-alert-comma-separated-states"]; - /** @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. + /** + * @description A comma-separated list of severities. If specified, only alerts with these severities will be returned. * - * Can be: `low`, `medium`, `high`, `critical` */ + * Can be: `low`, `medium`, `high`, `critical` + */ severity?: components["parameters"]["dependabot-alert-comma-separated-severities"]; - /** @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. + /** + * @description A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. * - * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` */ + * Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust` + */ ecosystem?: components["parameters"]["dependabot-alert-comma-separated-ecosystems"]; /** @description A comma-separated list of package names. If specified, only alerts for these packages will be returned. */ package?: components["parameters"]["dependabot-alert-comma-separated-packages"]; /** @description A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. */ manifest?: components["parameters"]["dependabot-alert-comma-separated-manifests"]; - /** @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /** + * @description CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: * - An exact number (`n`) * - Comparators such as `>n`, `=n`, `<=n` * - A range like `n..n`, where `n` is a number from 0.0 to 1.0 * - * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. */ + * Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. + */ epss_percentage?: components["parameters"]["dependabot-alert-comma-separated-epss"]; /** @description The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. */ scope?: components["parameters"]["dependabot-alert-scope"]; - /** @description The property by which to sort the results. + /** + * @description The property by which to sort the results. * `created` means when the alert was created. * `updated` means when the alert's state last changed. - * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. */ + * `epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. + */ sort?: components["parameters"]["dependabot-alert-sort"]; /** @description The direction to sort the results by. */ direction?: components["parameters"]["direction"]; @@ -108041,13 +108237,17 @@ export interface operations { before?: components["parameters"]["pagination-before"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ after?: components["parameters"]["pagination-after"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the first matching result. * This parameter must not be used in combination with `last`. - * Instead, use `per_page` in combination with `after` to fetch the first page of results. */ + * Instead, use `per_page` in combination with `after` to fetch the first page of results. + */ first?: components["parameters"]["pagination-first"]; - /** @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. + /** + * @description **Deprecated**. The number of results per page (max 100), starting from the last matching result. * This parameter must not be used in combination with `first`. - * Instead, use `per_page` in combination with `before` to fetch the last page of results. */ + * Instead, use `per_page` in combination with `before` to fetch the last page of results. + */ last?: components["parameters"]["pagination-last"]; }; header?: never; @@ -108086,10 +108286,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ alert_number: components["parameters"]["dependabot-alert-number"]; }; cookie?: never; @@ -108119,10 +108321,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The number that identifies a Dependabot alert in its repository. + /** + * @description The number that identifies a Dependabot alert in its repository. * You can find this at the end of the URL for a Dependabot alert within GitHub, * or in `number` fields in the response from the - * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. */ + * `GET /repos/{owner}/{repo}/dependabot/alerts` operation. + */ alert_number: components["parameters"]["dependabot-alert-number"]; }; cookie?: never; @@ -110136,17 +110340,23 @@ export interface operations { * @enum {string} */ type?: "blob" | "tree" | "commit"; - /** @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. + /** + * @description The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ sha?: string | null; - /** @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. + /** + * @description The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. */ + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ content?: string; }[]; - /** @description 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. - * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. */ + /** + * @description 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. + * If not provided, GitHub will create a new Git tree object from only the entries defined in the `tree` parameter. If you create a new commit pointing to such a tree, then all files which were a part of the parent commit's tree and were not defined in the `tree` parameter will be listed as deleted by the new commit. + */ base_tree?: string; }; }; @@ -112403,9 +112613,11 @@ export interface operations { title?: string; /** @description The contents of the key. */ key: string; - /** @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + /** + * @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. * - * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." */ + * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ read_only?: boolean; }; }; @@ -115667,10 +115879,11 @@ export interface operations { page?: components["parameters"]["page"]; /** @description Include rulesets configured at higher levels that apply to this repository */ includes_parents?: boolean; - /** @description A comma-separated list of rule targets to filter by. + /** + * @description A comma-separated list of rule targets to filter by. * If provided, only rulesets that apply to the specified targets will be returned. * For example, `branch,tag,push`. - * */ + */ targets?: components["parameters"]["ruleset-targets"]; }; header?: never; @@ -115749,9 +115962,11 @@ export interface operations { query?: { /** @description The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. */ ref?: components["parameters"]["ref-in-query"]; - /** @description The time period to filter by. + /** + * @description The time period to filter by. * - * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). */ + * For example, `day` will filter for rule suites that occurred in the past 24 hours, and `week` will filter for insights that occurred in the past 7 days (168 hours). + */ time_period?: components["parameters"]["time-period"]; /** @description The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. */ actor_name?: components["parameters"]["actor-name-in-query"]; @@ -115795,10 +116010,12 @@ export interface operations { owner: components["parameters"]["owner"]; /** @description The name of the repository without the `.git` extension. The name is not case sensitive. */ repo: components["parameters"]["repo"]; - /** @description The unique identifier of the rule suite result. + /** + * @description The unique identifier of the rule suite result. * To get this ID, you can use [GET /repos/{owner}/{repo}/rulesets/rule-suites](https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites) * for repositories and [GET /orgs/{org}/rulesets/rule-suites](https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites) - * for organizations. */ + * for organizations. + */ rule_suite_id: components["parameters"]["rule-suite-id"]; }; cookie?: never; @@ -116626,9 +116843,11 @@ export interface operations { * @enum {string} */ state: "error" | "failure" | "pending" | "success"; - /** @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. + /** + * @description The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. * For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: - * `http://ci.example.com/user/repo/build/sha` */ + * `http://ci.example.com/user/repo/build/sha` + */ target_url?: string | null; /** @description A short description of the status. */ description?: string | null; @@ -120765,10 +120984,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; @@ -121065,10 +121286,12 @@ export interface operations { query?: { /** @description Limit results to repositories with the specified visibility. */ visibility?: "all" | "public" | "private"; - /** @description Comma-separated list of values. Can include: + /** + * @description Comma-separated list of values. Can include: * * `owner`: Repositories that are owned by the authenticated user. * * `collaborator`: Repositories that the user has been added to as a collaborator. - * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. */ + * * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. + */ affiliation?: string; /** @description Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. */ type?: "all" | "owner" | "public" | "private" | "member"; @@ -122258,10 +122481,12 @@ export interface operations { query: { /** @description The type of supported package. Packages in GitHub's Gradle registry have the type `maven`. Docker images pushed to GitHub's Container registry (`ghcr.io`) have the type `container`. You can use the type `docker` to find images that were pushed to GitHub's Docker registry (`docker.pkg.github.com`), even if these have now been migrated to the Container registry. */ package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; - /** @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. + /** + * @description The selected visibility of the packages. This parameter is optional and only filters an existing result set. * * The `internal` visibility is only supported for GitHub Packages registries that allow for granular permissions. For other ecosystems `internal` is synonymous with `private`. - * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." */ + * For the list of GitHub Packages registries that support granular permissions, see "[About permissions for GitHub Packages](https://docs.github.com/packages/learn-github-packages/about-permissions-for-github-packages#granular-permissions-for-userorganization-scoped-packages)." + */ visibility?: components["parameters"]["package-visibility"]; /** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */ page?: components["parameters"]["page"]; diff --git a/packages/openapi-typescript/examples/octokit-ghes-3.6-diff-to-api.ts b/packages/openapi-typescript/examples/octokit-ghes-3.6-diff-to-api.ts index 5d059a36f..3d688f2f8 100644 --- a/packages/openapi-typescript/examples/octokit-ghes-3.6-diff-to-api.ts +++ b/packages/openapi-typescript/examples/octokit-ghes-3.6-diff-to-api.ts @@ -2916,10 +2916,12 @@ export interface components { single_file_name: string | null; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; /** @example github-actions */ app_slug: string; @@ -3106,10 +3108,12 @@ export interface components { single_file?: string; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; }; /** @@ -3140,9 +3144,11 @@ export interface components { * @example 2011-09-06T20:39:23Z */ updated_at: string; - /** @example [ + /** + * @example [ * "public_repo" - * ] */ + * ] + */ scopes: string[]; user?: components["schemas"]["nullable-simple-user"]; }; @@ -3340,8 +3346,10 @@ export interface components { resolved_by?: components["schemas"]["nullable-simple-user"]; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-server@3.6/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-server@3.6/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)." + */ secret_type_display_name?: string; /** @description The secret that was detected. */ secret?: string; @@ -3362,16 +3370,20 @@ export interface components { "api-overview": { /** @example true */ verifiable_password_authentication: boolean; - /** @example [ + /** + * @example [ * "13.65.0.0/16", * "157.55.204.33/32", * "2a01:111:f403:f90c::/62" - * ] */ + * ] + */ packages?: string[]; - /** @example [ + /** + * @example [ * "192.168.7.15/32", * "192.168.7.16/32" - * ] */ + * ] + */ dependabot?: string[]; /** @example 3.6.0 */ installed_version?: string; @@ -3915,8 +3927,10 @@ export interface components { */ url_template: string; }; - /** @description The full Git reference, formatted as `refs/heads/`, - * `refs/pull//merge`, or `refs/pull//head`. */ + /** + * @description The full Git reference, formatted as `refs/heads/`, + * `refs/pull//merge`, or `refs/pull//head`. + */ "code-scanning-ref": string; /** * @description An identifier for the upload. @@ -4244,12 +4258,14 @@ export interface components { open_issues_count: number; /** @example true */ is_template?: boolean; - /** @example [ + /** + * @example [ * "octocat", * "atom", * "electron", * "API" - * ] */ + * ] + */ topics?: string[]; /** @example true */ has_issues: boolean; @@ -4459,8 +4475,10 @@ export interface components { resolved_by?: components["schemas"]["nullable-simple-user"]; /** @description The type of secret that secret scanning detected. */ secret_type?: string; - /** @description User-friendly name for the detected secret, matching the `secret_type`. - * For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-server@3.6/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)." */ + /** + * @description User-friendly name for the detected secret, matching the `secret_type`. + * For a list of built-in patterns, see "[Secret scanning patterns](https://docs.github.com/enterprise-server@3.6/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)." + */ secret_type_display_name?: string; /** @description The secret that was detected. */ secret?: string; @@ -5027,10 +5045,12 @@ export interface components { single_file_name: string | null; /** @example true */ has_multiple_single_files?: boolean; - /** @example [ + /** + * @example [ * "config.yml", * ".github/issue_TEMPLATE.md" - * ] */ + * ] + */ single_file_paths?: string[]; /** * Format: uri @@ -6845,7 +6865,8 @@ export interface components { * @example https://api.github.com/codes_of_conduct/contributor_covenant */ url: string; - /** @example # Contributor Covenant Code of Conduct + /** + * @example # Contributor Covenant Code of Conduct * * ## Our Pledge * @@ -6893,7 +6914,7 @@ export interface components { * * [homepage]: http://contributor-covenant.org * [version]: http://contributor-covenant.org/version/1/4/ - * */ + */ body?: string; /** Format: uri */ html_url: string | null; @@ -7042,27 +7063,33 @@ export interface components { enterprise: string; /** @description A search phrase. For more information, see [Searching the audit log](https://docs.github.com/enterprise-server@3.6/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization#searching-the-audit-log). */ "audit-log-phrase": string; - /** @description The event types to include: + /** + * @description The event types to include: * * - `web` - returns web (non-Git) events. * - `git` - returns Git events. * - `all` - returns both web and Git events. * - * The default is `web`. */ + * The default is `web`. + */ "audit-log-include": "web" | "git" | "all"; /** @description A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor. */ "audit-log-after": string; /** @description A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. */ "audit-log-before": string; - /** @description The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. + /** + * @description The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. * - * The default is `desc`. */ + * The default is `desc`. + */ "audit-log-order": "desc" | "asc"; /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ "secret-scanning-alert-state": "open" | "resolved"; - /** @description A comma-separated list of secret types to return. By default all secret types are returned. + /** + * @description A comma-separated list of secret types to return. By default all secret types are returned. * See "[Secret scanning patterns](https://docs.github.com/enterprise-server@3.6/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)" - * for a complete list of secret types. */ + * for a complete list of secret types. + */ "secret-scanning-alert-secret-type": string; /** @description A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. */ "secret-scanning-alert-resolution": string; @@ -7992,9 +8019,11 @@ export interface operations { "application/json": { /** @description The user's username. */ login: string; - /** @description **Required for built-in authentication.** The user's email + /** + * @description **Required for built-in authentication.** The user's email * address. This parameter can be omitted when using CAS, LDAP, or SAML. - * For more information, see "[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.6/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise)." */ + * For more information, see "[About authentication for your enterprise](https://docs.github.com/enterprise-server@3.6/admin/identity-and-access-management/managing-iam-for-your-enterprise/about-authentication-for-your-enterprise)." + */ email?: string; }; }; @@ -9135,21 +9164,25 @@ export interface operations { query?: { /** @description A search phrase. For more information, see [Searching the audit log](https://docs.github.com/enterprise-server@3.6/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization#searching-the-audit-log). */ phrase?: components["parameters"]["audit-log-phrase"]; - /** @description The event types to include: + /** + * @description The event types to include: * * - `web` - returns web (non-Git) events. * - `git` - returns Git events. * - `all` - returns both web and Git events. * - * The default is `web`. */ + * The default is `web`. + */ include?: components["parameters"]["audit-log-include"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor. */ after?: components["parameters"]["audit-log-after"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. */ before?: components["parameters"]["audit-log-before"]; - /** @description The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. + /** + * @description The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. * - * The default is `desc`. */ + * The default is `desc`. + */ order?: components["parameters"]["audit-log-order"]; /** @description Page number of the results to fetch. */ page?: components["parameters"]["page"]; @@ -9181,9 +9214,11 @@ export interface operations { query?: { /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ state?: components["parameters"]["secret-scanning-alert-state"]; - /** @description A comma-separated list of secret types to return. By default all secret types are returned. + /** + * @description A comma-separated list of secret types to return. By default all secret types are returned. * See "[Secret scanning patterns](https://docs.github.com/enterprise-server@3.6/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)" - * for a complete list of secret types. */ + * for a complete list of secret types. + */ secret_type?: components["parameters"]["secret-scanning-alert-secret-type"]; /** @description A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. */ resolution?: components["parameters"]["secret-scanning-alert-resolution"]; @@ -9445,21 +9480,25 @@ export interface operations { query?: { /** @description A search phrase. For more information, see [Searching the audit log](https://docs.github.com/enterprise-server@3.6/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization#searching-the-audit-log). */ phrase?: components["parameters"]["audit-log-phrase"]; - /** @description The event types to include: + /** + * @description The event types to include: * * - `web` - returns web (non-Git) events. * - `git` - returns Git events. * - `all` - returns both web and Git events. * - * The default is `web`. */ + * The default is `web`. + */ include?: components["parameters"]["audit-log-include"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events after this cursor. */ after?: components["parameters"]["audit-log-after"]; /** @description A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.6/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. */ before?: components["parameters"]["audit-log-before"]; - /** @description The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. + /** + * @description The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. * - * The default is `desc`. */ + * The default is `desc`. + */ order?: components["parameters"]["audit-log-order"]; /** @description The number of results per page (max 100). */ per_page?: components["parameters"]["per-page"]; @@ -9719,9 +9758,11 @@ export interface operations { query?: { /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ state?: components["parameters"]["secret-scanning-alert-state"]; - /** @description A comma-separated list of secret types to return. By default all secret types are returned. + /** + * @description A comma-separated list of secret types to return. By default all secret types are returned. * See "[Secret scanning patterns](https://docs.github.com/enterprise-server@3.6/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)" - * for a complete list of secret types. */ + * for a complete list of secret types. + */ secret_type?: components["parameters"]["secret-scanning-alert-secret-type"]; /** @description A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. */ resolution?: components["parameters"]["secret-scanning-alert-resolution"]; @@ -10538,9 +10579,11 @@ export interface operations { title?: string; /** @description The contents of the key. */ key: string; - /** @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + /** + * @description If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. * - * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." */ + * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ read_only?: boolean; }; }; @@ -10972,9 +11015,11 @@ export interface operations { query?: { /** @description Set to `open` or `resolved` to only list secret scanning alerts in a specific state. */ state?: components["parameters"]["secret-scanning-alert-state"]; - /** @description A comma-separated list of secret types to return. By default all secret types are returned. + /** + * @description A comma-separated list of secret types to return. By default all secret types are returned. * See "[Secret scanning patterns](https://docs.github.com/enterprise-server@3.6/code-security/secret-scanning/secret-scanning-patterns#supported-secrets-for-advanced-security)" - * for a complete list of secret types. */ + * for a complete list of secret types. + */ secret_type?: components["parameters"]["secret-scanning-alert-secret-type"]; /** @description A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. */ resolution?: components["parameters"]["secret-scanning-alert-resolution"]; @@ -11612,11 +11657,13 @@ export interface operations { requestBody: { content: { "application/x-www-form-urlencoded": { - /** @description A JSON string with the attributes `enabled` and `when`. + /** + * @description A JSON string with the attributes `enabled` and `when`. * * The possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled. * - * The possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic). */ + * The possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic). + */ maintenance: string; }; }; diff --git a/packages/openapi-typescript/examples/stripe-api.ts b/packages/openapi-typescript/examples/stripe-api.ts index 8ec3e1954..934a34ee5 100644 --- a/packages/openapi-typescript/examples/stripe-api.ts +++ b/packages/openapi-typescript/examples/stripe-api.ts @@ -77,12 +77,14 @@ export interface paths { */ get: operations["GetAccounts"]; put?: never; - /** @description

With Connect, you can create Stripe accounts for your users. + /** + * @description

With Connect, you can create Stripe accounts for your users. * To do this, you’ll first need to register your platform.

* *

If you’ve already collected information for your connected accounts, you can prefill that information when * creating the account. Connect Onboarding won’t ask for the prefilled information during account onboarding. - * You can prefill any information on the account.

*/ + * You can prefill any information on the account.

+ */ post: operations["PostAccounts"]; delete?: never; options?: never; @@ -169,14 +171,16 @@ export interface paths { */ get: operations["GetAccountsAccountBankAccountsId"]; put?: never; - /** @description

Updates the metadata, account holder name, account holder type of a bank account belonging to + /** + * @description

Updates the metadata, account holder name, account holder type of a bank account belonging to * a connected account and optionally sets it as the default for its currency. Other bank account * details are not editable by design.

* *

You can only update bank accounts when account.controller.requirement_collection is application, which includes Custom accounts.

* *

You can re-enable a disabled bank account by performing an update call without providing any - * arguments or changes.

*/ + * arguments or changes.

+ */ post: operations["PostAccountsAccountBankAccountsId"]; /** * Delete an external account @@ -269,14 +273,16 @@ export interface paths { */ get: operations["GetAccountsAccountExternalAccountsId"]; put?: never; - /** @description

Updates the metadata, account holder name, account holder type of a bank account belonging to + /** + * @description

Updates the metadata, account holder name, account holder type of a bank account belonging to * a connected account and optionally sets it as the default for its currency. Other bank account * details are not editable by design.

* *

You can only update bank accounts when account.controller.requirement_collection is application, which includes Custom accounts.

* *

You can re-enable a disabled bank account by performing an update call without providing any - * arguments or changes.

*/ + * arguments or changes.

+ */ post: operations["PostAccountsAccountExternalAccountsId"]; /** * Delete an external account @@ -1240,9 +1246,11 @@ export interface paths { */ get: operations["GetCharges"]; put?: never; - /** @description

This method is no longer recommended—use the Payment Intents API + /** + * @description

This method is no longer recommended—use the Payment Intents API * to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge - * object used to request payment.

*/ + * object used to request payment.

+ */ post: operations["PostCharges"]; delete?: never; options?: never; @@ -9476,11 +9484,13 @@ export interface components { account_session: { /** @description The ID of the account the AccountSession was created for */ account: string; - /** @description The client secret of this AccountSession. Used on the client to set up secure access to the given `account`. + /** + * @description The client secret of this AccountSession. Used on the client to set up secure access to the given `account`. * * The client secret can be used to provide access to `account` from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret. * - * Refer to our docs to [setup Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled. */ + * Refer to our docs to [setup Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled. + */ client_secret: string; components: components["schemas"]["connect_embedded_account_session_create_components"]; /** @@ -9968,9 +9978,11 @@ export interface components { requirements?: components["schemas"]["external_account_requirements"] | null; /** @description The routing transit number for the bank account. */ routing_number?: string | null; - /** @description For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated. + /** + * @description For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated. * - * For external accounts, possible values are `new`, `errored` and `verification_failed`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. */ + * For external accounts, possible values are `new`, `errored` and `verification_failed`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply. + */ status: string; }; /** BankConnectionsResourceAccountholder */ @@ -9994,11 +10006,13 @@ export interface components { as_of: number; cash?: components["schemas"]["bank_connections_resource_balance_api_resource_cash_balance"]; credit?: components["schemas"]["bank_connections_resource_balance_api_resource_credit_balance"]; - /** @description The balances owed to (or by) the account holder, before subtracting any outbound pending transactions or adding any inbound pending transactions. + /** + * @description The balances owed to (or by) the account holder, before subtracting any outbound pending transactions or adding any inbound pending transactions. * * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. * - * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */ + * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. + */ current: { [key: string]: number; }; @@ -10010,22 +10024,26 @@ export interface components { }; /** BankConnectionsResourceBalanceAPIResourceCashBalance */ bank_connections_resource_balance_api_resource_cash_balance: { - /** @description The funds available to the account holder. Typically this is the current balance after subtracting any outbound pending transactions and adding any inbound pending transactions. + /** + * @description The funds available to the account holder. Typically this is the current balance after subtracting any outbound pending transactions and adding any inbound pending transactions. * * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. * - * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */ + * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. + */ available?: { [key: string]: number; } | null; }; /** BankConnectionsResourceBalanceAPIResourceCreditBalance */ bank_connections_resource_balance_api_resource_credit_balance: { - /** @description The credit that has been used by the account holder. + /** + * @description The credit that has been used by the account holder. * * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. * - * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */ + * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. + */ used?: { [key: string]: number; } | null; @@ -10697,9 +10715,11 @@ export interface components { exp_month: number; /** @description Four-digit number representing the card's expiration year. */ exp_year: number; - /** @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + /** + * @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ fingerprint?: string | null; /** @description Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. */ funding: string; @@ -10878,9 +10898,11 @@ export interface components { shipping?: components["schemas"]["shipping"] | null; /** @description The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details. */ source_transfer?: (string | components["schemas"]["transfer"]) | null; - /** @description For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). + /** + * @description For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). * - * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix. */ + * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix. + */ statement_descriptor?: string | null; /** @description Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor. */ statement_descriptor_suffix?: string | null; @@ -10972,9 +10994,11 @@ export interface components { billing_address_collection?: "auto" | "required" | null; /** @description If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. */ cancel_url?: string | null; - /** @description A unique string to reference the Checkout Session. This can be a + /** + * @description A unique string to reference the Checkout Session. This can be a * customer ID, a cart ID, or similar, and can be used to reconcile the - * Session with your internal systems. */ + * Session with your internal systems. + */ client_reference_id?: string | null; /** @description Client secret to be used when initializing Stripe.js embedded checkout. */ client_secret?: string | null; @@ -10997,11 +11021,13 @@ export interface components { /** @description Collect additional information from your customer using custom fields. Up to 3 fields are supported. */ custom_fields: components["schemas"]["payment_pages_checkout_session_custom_fields"][]; custom_text: components["schemas"]["payment_pages_checkout_session_custom_text"]; - /** @description The ID of the customer for this Session. + /** + * @description The ID of the customer for this Session. * For Checkout Sessions in `subscription` mode or Checkout Sessions with `customer_creation` set as `always` in `payment` mode, Checkout * will create a new customer object based on information provided * during the payment flow unless an existing customer was provided when - * the Session was created. */ + * the Session was created. + */ customer?: (string | components["schemas"]["customer"] | components["schemas"]["deleted_customer"]) | null; /** * @description Configure whether a Checkout Session creates a Customer when the Checkout Session completes. @@ -11010,11 +11036,13 @@ export interface components { customer_creation?: "always" | "if_required" | null; /** @description The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in `setup` mode. */ customer_details?: components["schemas"]["payment_pages_checkout_session_customer_details"] | null; - /** @description If provided, this value will be used when the Customer object is created. + /** + * @description If provided, this value will be used when the Customer object is created. * If not provided, customers will be asked to enter their email address. * Use this parameter to prefill customer data if you already have an email * on file. To access information about the customer once the payment flow is - * complete, use the `customer` attribute. */ + * complete, use the `customer` attribute. + */ customer_email?: string | null; /** @description List of coupons and promotion codes attached to the Checkout Session. */ discounts?: components["schemas"]["payment_pages_checkout_session_discount"][] | null; @@ -11080,8 +11108,10 @@ export interface components { payment_method_configuration_details?: components["schemas"]["payment_method_config_biz_payment_method_configuration_details"] | null; /** @description Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession. */ payment_method_options?: components["schemas"]["checkout_session_payment_method_options"] | null; - /** @description A list of the types of payment methods (e.g. card) this Checkout - * Session is allowed to accept. */ + /** + * @description A list of the types of payment methods (e.g. card) this Checkout + * Session is allowed to accept. + */ payment_method_types: string[]; /** * @description The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`. @@ -11125,8 +11155,10 @@ export interface components { submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null; /** @description The ID of the subscription for Checkout Sessions in `subscription` mode. */ subscription?: (string | components["schemas"]["subscription"]) | null; - /** @description The URL the customer will be directed to after the payment or - * subscription creation is successful. */ + /** + * @description The URL the customer will be directed to after the payment or + * subscription creation is successful. + */ success_url?: string | null; tax_id_collection?: components["schemas"]["payment_pages_checkout_session_tax_id_collection"]; /** @description Tax and discount details for the computed total amount. */ @@ -11136,8 +11168,10 @@ export interface components { * @enum {string|null} */ ui_mode?: "embedded" | "hosted" | null; - /** @description The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.` - * This value is only present when the session is active. */ + /** + * @description The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.` + * This value is only present when the session is active. + */ url?: string | null; }; /** CheckoutAcssDebitMandateOptions */ @@ -11365,9 +11399,11 @@ export interface components { /** CheckoutCustomerBalanceBankTransferPaymentMethodOptions */ checkout_customer_balance_bank_transfer_payment_method_options: { eu_bank_transfer?: components["schemas"]["payment_method_options_customer_balance_eu_bank_account"]; - /** @description List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. + /** + * @description List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. * - * Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. */ + * Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + */ requested_address_types?: ("aba" | "iban" | "sepa" | "sort_code" | "spei" | "swift" | "zengin")[]; /** * @description The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. @@ -11888,9 +11924,11 @@ export interface components { }; /** @description The year in which the carbon removal is expected to be delivered. */ delivery_year?: number | null; - /** @description Unique identifier for the object. For convenience, Climate product IDs are human-readable strings + /** + * @description Unique identifier for the object. For convenience, Climate product IDs are human-readable strings * that start with `climsku_`. See [carbon removal inventory](https://stripe.com/docs/climate/orders/carbon-removal-inventory) - * for a list of available carbon removal products. */ + * for a list of available carbon removal products. + */ id: string; /** @description Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. */ livemode: boolean; @@ -12678,15 +12716,19 @@ export interface components { created: number; /** @description Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) the customer can be charged in for recurring billing purposes. */ currency?: string | null; - /** @description ID of the default payment source for the customer. + /** + * @description ID of the default payment source for the customer. * - * If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead. */ + * If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead. + */ default_source?: (string | components["schemas"]["bank_account"] | components["schemas"]["card"] | components["schemas"]["source"]) | null; - /** @description Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`. + /** + * @description Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`. * * If an invoice becomes uncollectible by [dunning](https://stripe.com/docs/billing/automatic-collection), `delinquent` doesn't reset to `false`. * - * If you care whether the customer has paid their most recent subscription invoice, use `subscription.status` instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to `false`. */ + * If you care whether the customer has paid their most recent subscription invoice, use `subscription.status` instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to `false`. + */ delinquent?: boolean | null; /** @description An arbitrary string attached to the object. Often useful for displaying to users. */ description?: string | null; @@ -12994,9 +13036,11 @@ export interface components { * [Customer Session with the Buy Button](/payment-links/buy-button#pass-an-existing-customer). */ customer_session: { - /** @description The client secret of this Customer Session. Used on the client to set up secure access to the given `customer`. + /** + * @description The client secret of this Customer Session. Used on the client to set up secure access to the given `customer`. * - * The client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret. */ + * The client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret. + */ client_secret: string; components?: components["schemas"]["customer_session_resource_components"]; /** @@ -13051,9 +13095,11 @@ export interface components { * @description This hash contains the features the Payment Element supports. */ customer_session_resource_components_resource_payment_element_resource_features: { - /** @description A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + /** + * @description A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. * - * If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. */ + * If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + */ payment_method_allow_redisplay_filters: ("always" | "limited" | "unspecified")[]; /** * @description Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`. @@ -16057,8 +16103,10 @@ export interface components { object: "issuing.cardholder"; /** @description The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the [3D Secure documentation](https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied) for more details. */ phone_number?: string | null; - /** @description The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`. - * This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder. */ + /** + * @description The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`. + * This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder. + */ preferred_locales?: ("de" | "en" | "es" | "fr" | "it")[] | null; requirements: components["schemas"]["issuing_cardholder_requirements"]; /** @description Rules that control spending across this cardholder's cards. Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details. */ @@ -18093,11 +18141,13 @@ export interface components { * @enum {string} */ capture_method: "automatic" | "automatic_async" | "manual"; - /** @description The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key. + /** + * @description The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key. * * The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret. * - * Refer to our docs to [accept a payment](https://stripe.com/docs/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled. */ + * Refer to our docs to [accept a payment](https://stripe.com/docs/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled. + */ client_secret?: string | null; /** * @description Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment. @@ -18114,11 +18164,13 @@ export interface components { * @description Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ currency: string; - /** @description ID of the Customer this PaymentIntent belongs to, if one exists. + /** + * @description ID of the Customer this PaymentIntent belongs to, if one exists. * * Payment methods attached to other Customers cannot be used with this PaymentIntent. * - * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. */ + * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. + */ customer?: (string | components["schemas"]["customer"] | components["schemas"]["deleted_customer"]) | null; /** @description An arbitrary string attached to the object. Often useful for displaying to users. */ description?: string | null; @@ -18172,9 +18224,11 @@ export interface components { setup_future_usage?: "off_session" | "on_session" | null; /** @description Shipping information for this PaymentIntent. */ shipping?: components["schemas"]["shipping"] | null; - /** @description Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). + /** + * @description Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). * - * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. */ + * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. + */ statement_descriptor?: string | null; /** @description Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. */ statement_descriptor_suffix?: string | null; @@ -18594,9 +18648,11 @@ export interface components { * @enum {string} */ capture_method?: "manual"; - /** @description Installment details for this payment (Mexico only). + /** + * @description Installment details for this payment (Mexico only). * - * For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). */ + * For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + */ installments?: components["schemas"]["payment_method_options_card_installments"] | null; /** @description Configuration options for setting up an eMandate for cards issued in India. */ mandate_options?: components["schemas"]["payment_method_options_card_mandate_options"] | null; @@ -19320,9 +19376,11 @@ export interface components { exp_month: number; /** @description Four-digit number representing the card's expiration year. */ exp_year: number; - /** @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + /** + * @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ fingerprint?: string | null; /** @description Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. */ funding: string; @@ -19376,9 +19434,11 @@ export interface components { exp_month: number; /** @description Four-digit number representing the card's expiration year. */ exp_year: number; - /** @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + /** + * @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ fingerprint?: string | null; /** @description Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. */ funding?: string | null; @@ -19620,9 +19680,11 @@ export interface components { stripe_account?: components["schemas"]["payment_method_details_stripe_account"]; swish?: components["schemas"]["payment_method_details_swish"]; twint?: components["schemas"]["payment_method_details_twint"]; - /** @description The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`. + /** + * @description The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`. * An additional hash is included on `payment_method_details` with a name matching this value. - * It contains information specific to the payment method. */ + * It contains information specific to the payment method. + */ type: string; us_bank_account?: components["schemas"]["payment_method_details_us_bank_account"]; wechat?: components["schemas"]["payment_method_details_wechat"]; @@ -19733,8 +19795,10 @@ export interface components { * @enum {string|null} */ preferred_language?: "de" | "en" | "fr" | "nl" | null; - /** @description Owner's verified full name. Values are verified or provided by Bancontact directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's verified full name. Values are verified or provided by Bancontact directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ verified_name?: string | null; }; /** payment_method_details_blik */ @@ -19769,16 +19833,20 @@ export interface components { /** @description Four-digit number representing the card's expiration year. */ exp_year: number; extended_authorization?: components["schemas"]["payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization"]; - /** @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + /** + * @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ fingerprint?: string | null; /** @description Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. */ funding?: string | null; incremental_authorization?: components["schemas"]["payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization"]; - /** @description Installment details for this payment (Mexico only). + /** + * @description Installment details for this payment (Mexico only). * - * For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). */ + * For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments). + */ installments?: components["schemas"]["payment_method_details_card_installments"] | null; /** @description The last four digits of the card. */ last4?: string | null; @@ -19862,9 +19930,11 @@ export interface components { exp_month: number; /** @description Four-digit number representing the card's expiration year. */ exp_year: number; - /** @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + /** + * @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ fingerprint?: string | null; /** @description Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. */ funding?: string | null; @@ -19997,9 +20067,11 @@ export interface components { * @enum {string|null} */ bank?: "arzte_und_apotheker_bank" | "austrian_anadi_bank_ag" | "bank_austria" | "bankhaus_carl_spangler" | "bankhaus_schelhammer_und_schattera_ag" | "bawag_psk_ag" | "bks_bank_ag" | "brull_kallmus_bank_ag" | "btv_vier_lander_bank" | "capital_bank_grawe_gruppe_ag" | "deutsche_bank_ag" | "dolomitenbank" | "easybank_ag" | "erste_bank_und_sparkassen" | "hypo_alpeadriabank_international_ag" | "hypo_bank_burgenland_aktiengesellschaft" | "hypo_noe_lb_fur_niederosterreich_u_wien" | "hypo_oberosterreich_salzburg_steiermark" | "hypo_tirol_bank_ag" | "hypo_vorarlberg_bank_ag" | "marchfelder_bank" | "oberbank_ag" | "raiffeisen_bankengruppe_osterreich" | "schoellerbank_ag" | "sparda_bank_wien" | "volksbank_gruppe" | "volkskreditbank_ag" | "vr_bank_braunau" | null; - /** @description Owner's verified full name. Values are verified or provided by EPS directly + /** + * @description Owner's verified full name. Values are verified or provided by EPS directly * (if supported) at the time of authorization or settlement. They cannot be set or mutated. - * EPS rarely provides this information so the attribute is usually empty. */ + * EPS rarely provides this information so the attribute is usually empty. + */ verified_name?: string | null; }; /** payment_method_details_fpx */ @@ -20020,9 +20092,11 @@ export interface components { bank_name?: string | null; /** @description Bank Identifier Code of the bank associated with the bank account. */ bic?: string | null; - /** @description Owner's verified full name. Values are verified or provided by Giropay directly + /** + * @description Owner's verified full name. Values are verified or provided by Giropay directly * (if supported) at the time of authorization or settlement. They cannot be set or mutated. - * Giropay rarely provides this information so the attribute is usually empty. */ + * Giropay rarely provides this information so the attribute is usually empty. + */ verified_name?: string | null; }; /** payment_method_details_grabpay */ @@ -20048,8 +20122,10 @@ export interface components { generated_sepa_debit_mandate?: (string | components["schemas"]["mandate"]) | null; /** @description Last four characters of the IBAN. */ iban_last4?: string | null; - /** @description Owner's verified full name. Values are verified or provided by iDEAL directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's verified full name. Values are verified or provided by iDEAL directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ verified_name?: string | null; }; /** payment_method_details_interac_present */ @@ -20068,9 +20144,11 @@ export interface components { exp_month: number; /** @description Four-digit number representing the card's expiration year. */ exp_year: number; - /** @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + /** + * @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ fingerprint?: string | null; /** @description Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. */ funding?: string | null; @@ -20127,11 +20205,15 @@ export interface components { payment_method_details_klarna: { /** @description The payer details for this transaction. */ payer_details?: components["schemas"]["klarna_payer_details"] | null; - /** @description The Klarna payment method used for this transaction. - * Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` */ + /** + * @description The Klarna payment method used for this transaction. + * Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + */ payment_method_category?: string | null; - /** @description Preferred language of the Klarna authorization page that the customer is redirected to. - * Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` */ + /** + * @description Preferred language of the Klarna authorization page that the customer is redirected to. + * Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + */ preferred_locale?: string | null; }; /** payment_method_details_konbini */ @@ -20161,8 +20243,10 @@ export interface components { }; /** payment_method_details_link */ payment_method_details_link: { - /** @description Two-letter ISO code representing the funding source country beneath the Link payment. - * You could use this attribute to get a sense of international fees. */ + /** + * @description Two-letter ISO code representing the funding source country beneath the Link payment. + * You could use this attribute to get a sense of international fees. + */ country?: string | null; }; /** payment_method_details_mobilepay */ @@ -20196,9 +20280,11 @@ export interface components { bank?: "alior_bank" | "bank_millennium" | "bank_nowy_bfg_sa" | "bank_pekao_sa" | "banki_spbdzielcze" | "blik" | "bnp_paribas" | "boz" | "citi_handlowy" | "credit_agricole" | "envelobank" | "etransfer_pocztowy24" | "getin_bank" | "ideabank" | "ing" | "inteligo" | "mbank_mtransfer" | "nest_przelew" | "noble_pay" | "pbac_z_ipko" | "plus_bank" | "santander_przelew24" | "tmobile_usbugi_bankowe" | "toyota_bank" | "velobank" | "volkswagen_bank" | null; /** @description Unique reference for this Przelewy24 payment. */ reference?: string | null; - /** @description Owner's verified full name. Values are verified or provided by Przelewy24 directly + /** + * @description Owner's verified full name. Values are verified or provided by Przelewy24 directly * (if supported) at the time of authorization or settlement. They cannot be set or mutated. - * Przelewy24 rarely provides this information so the attribute is usually empty. */ + * Przelewy24 rarely provides this information so the attribute is usually empty. + */ verified_name?: string | null; }; /** payment_method_details_passthrough_card */ @@ -20232,13 +20318,17 @@ export interface components { payment_method_details_paypal: { /** @description Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ country?: string | null; - /** @description Owner's email. Values are provided by PayPal directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's email. Values are provided by PayPal directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ payer_email?: string | null; /** @description PayPal account PayerID. This identifier uniquely identifies the PayPal customer. */ payer_id?: string | null; - /** @description Owner's full name. Values provided by PayPal directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's full name. Values provided by PayPal directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ payer_name?: string | null; /** @description The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction. */ seller_protection?: components["schemas"]["paypal_seller_protection"] | null; @@ -20301,8 +20391,10 @@ export interface components { * @enum {string|null} */ preferred_language?: "de" | "en" | "es" | "fr" | "it" | "nl" | "pl" | null; - /** @description Owner's verified full name. Values are verified or provided by SOFORT directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's verified full name. Values are verified or provided by SOFORT directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ verified_name?: string | null; }; /** payment_method_details_stripe_account */ @@ -20453,9 +20545,11 @@ export interface components { exp_month: number; /** @description Four-digit number representing the card's expiration year. */ exp_year: number; - /** @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + /** + * @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ fingerprint?: string | null; /** @description Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. */ funding?: string | null; @@ -20537,8 +20631,10 @@ export interface components { * @enum {string} */ capture_method?: "manual"; - /** @description An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. - * This field differs from the statement descriptor and item name. */ + /** + * @description An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. + * This field differs from the statement descriptor and item name. + */ reference?: string | null; /** * @description Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -20728,9 +20824,11 @@ export interface components { /** payment_method_options_customer_balance_bank_transfer */ payment_method_options_customer_balance_bank_transfer: { eu_bank_transfer?: components["schemas"]["payment_method_options_customer_balance_eu_bank_account"]; - /** @description List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. + /** + * @description List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. * - * Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. */ + * Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. + */ requested_address_types?: ("aba" | "iban" | "sepa" | "sort_code" | "spei" | "swift" | "zengin")[]; /** * @description The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. @@ -21099,8 +21197,10 @@ export interface components { payment_method_paypal: { /** @description Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ country?: string | null; - /** @description Owner's email. Values are provided by PayPal directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's email. Values are provided by PayPal directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ payer_email?: string | null; /** @description PayPal account PayerID. This identifier uniquely identifies the PayPal customer. */ payer_id?: string | null; @@ -21199,9 +21299,11 @@ export interface components { payment_pages_checkout_session_after_expiration_recovery: { /** @description Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` */ allow_promotion_codes: boolean; - /** @description If `true`, a recovery url will be generated to recover this Checkout Session if it + /** + * @description If `true`, a recovery url will be generated to recover this Checkout Session if it * expires before a transaction is completed. It will be attached to the - * Checkout Session object upon expiration. */ + * Checkout Session object upon expiration. + */ enabled: boolean; /** * Format: unix-time @@ -21352,8 +21454,10 @@ export interface components { payment_pages_checkout_session_customer_details: { /** @description The customer's address after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022. */ address?: components["schemas"]["address"] | null; - /** @description The email associated with the Customer, if one exists, on the Checkout Session after a completed Checkout Session or at time of session expiry. - * Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form. */ + /** + * @description The email associated with the Customer, if one exists, on the Checkout Session after a completed Checkout Session or at time of session expiry. + * Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form. + */ email?: string | null; /** @description The customer's name after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022. */ name?: string | null; @@ -21431,8 +21535,10 @@ export interface components { }; /** PaymentPagesCheckoutSessionShippingAddressCollection */ payment_pages_checkout_session_shipping_address_collection: { - /** @description An array of two-letter ISO country codes representing which countries Checkout should provide as options for - * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. */ + /** + * @description An array of two-letter ISO country codes representing which countries Checkout should provide as options for + * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. + */ allowed_countries: ("AC" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CV" | "CW" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MK" | "ML" | "MM" | "MN" | "MO" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SZ" | "TA" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | "ZZ")[]; }; /** PaymentPagesCheckoutSessionShippingCost */ @@ -21983,9 +22089,11 @@ export interface components { }; /** PortalLoginPage */ portal_login_page: { - /** @description If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal. + /** + * @description If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal. * - * If `false`, the previously generated `url`, if any, will be deactivated. */ + * If `false`, the previously generated `url`, if any, will be deactivated. + */ enabled: boolean; /** @description A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://stripe.com/docs/api/customers/object#customer_object-email) and receive a link to their customer portal. */ url?: string | null; @@ -22925,8 +23033,10 @@ export interface components { * @description Time at which the object was created. Measured in seconds since the Unix epoch. */ created: number; - /** @description If something should go wrong during the run, a message about the failure (populated when - * `status=failed`). */ + /** + * @description If something should go wrong during the run, a message about the failure (populated when + * `status=failed`). + */ error?: string | null; /** @description Unique identifier for the object. */ id: string; @@ -22940,12 +23050,16 @@ export interface components { parameters: components["schemas"]["financial_reporting_finance_report_run_run_parameters"]; /** @description The ID of the [report type](https://stripe.com/docs/reports/report-types) to run, such as `"balance.summary.1"`. */ report_type: string; - /** @description The file object representing the result of the report run (populated when - * `status=succeeded`). */ + /** + * @description The file object representing the result of the report run (populated when + * `status=succeeded`). + */ result?: components["schemas"]["file"] | null; - /** @description Status of this report run. This will be `pending` when the run is initially created. + /** + * @description Status of this report run. This will be `pending` when the run is initially created. * When the run finishes, this will be set to `succeeded` and the `result` field will be populated. - * Rarely, we may encounter an error, at which point this will be set to `failed` and the `error` field will be populated. */ + * Rarely, we may encounter an error, at which point this will be set to `failed` and the `error` field will be populated. + */ status: string; /** * Format: unix-time @@ -23163,9 +23277,11 @@ export interface components { setup_attempt: { /** @description The value of [application](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-application) on the SetupIntent at the time of this confirmation. */ application?: (string | components["schemas"]["application"]) | null; - /** @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. + /** + * @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. * - * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. */ + * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. + */ attach_to_self?: boolean; /** * Format: unix-time @@ -23174,9 +23290,11 @@ export interface components { created: number; /** @description The value of [customer](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-customer) on the SetupIntent at the time of this confirmation. */ customer?: (string | components["schemas"]["customer"] | components["schemas"]["deleted_customer"]) | null; - /** @description Indicates the directions of money movement for which this payment method is intended to be used. + /** + * @description Indicates the directions of money movement for which this payment method is intended to be used. * - * Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. */ + * Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. + */ flow_directions?: ("inbound" | "outbound")[] | null; /** @description Unique identifier for the object. */ id: string; @@ -23253,8 +23371,10 @@ export interface components { * @enum {string|null} */ preferred_language?: "de" | "en" | "fr" | "nl" | null; - /** @description Owner's verified full name. Values are verified or provided by Bancontact directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's verified full name. Values are verified or provided by Bancontact directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ verified_name?: string | null; }; /** setup_attempt_payment_method_details_boleto */ @@ -23271,9 +23391,11 @@ export interface components { exp_month?: number | null; /** @description Four-digit number representing the card's expiration year. */ exp_year?: number | null; - /** @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + /** + * @description Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ fingerprint?: string | null; /** @description Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. */ funding?: string | null; @@ -23332,8 +23454,10 @@ export interface components { generated_sepa_debit_mandate?: (string | components["schemas"]["mandate"]) | null; /** @description Last four characters of the IBAN. */ iban_last4?: string | null; - /** @description Owner's verified full name. Values are verified or provided by iDEAL directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's verified full name. Values are verified or provided by iDEAL directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ verified_name?: string | null; }; /** setup_attempt_payment_method_details_kakao_pay */ @@ -23370,8 +23494,10 @@ export interface components { * @enum {string|null} */ preferred_language?: "de" | "en" | "fr" | "nl" | null; - /** @description Owner's verified full name. Values are verified or provided by Sofort directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. */ + /** + * @description Owner's verified full name. Values are verified or provided by Sofort directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ verified_name?: string | null; }; /** setup_attempt_payment_method_details_us_bank_account */ @@ -23403,9 +23529,11 @@ export interface components { setup_intent: { /** @description ID of the Connect application that created the SetupIntent. */ application?: (string | components["schemas"]["application"]) | null; - /** @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. + /** + * @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. * - * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. */ + * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. + */ attach_to_self?: boolean; /** @description Settings for dynamic payment methods compatible with this Setup Intent */ automatic_payment_methods?: components["schemas"]["payment_flows_automatic_payment_methods_setup_intent"] | null; @@ -23414,24 +23542,30 @@ export interface components { * @enum {string|null} */ cancellation_reason?: "abandoned" | "duplicate" | "requested_by_customer" | null; - /** @description The client secret of this SetupIntent. Used for client-side retrieval using a publishable key. + /** + * @description The client secret of this SetupIntent. Used for client-side retrieval using a publishable key. * - * The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret. */ + * The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret. + */ client_secret?: string | null; /** * Format: unix-time * @description Time at which the object was created. Measured in seconds since the Unix epoch. */ created: number; - /** @description ID of the Customer this SetupIntent belongs to, if one exists. + /** + * @description ID of the Customer this SetupIntent belongs to, if one exists. * - * If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent. */ + * If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent. + */ customer?: (string | components["schemas"]["customer"] | components["schemas"]["deleted_customer"]) | null; /** @description An arbitrary string attached to the object. Often useful for displaying to users. */ description?: string | null; - /** @description Indicates the directions of money movement for which this payment method is intended to be used. + /** + * @description Indicates the directions of money movement for which this payment method is intended to be used. * - * Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. */ + * Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. + */ flow_directions?: ("inbound" | "outbound")[] | null; /** @description Unique identifier for the object. */ id: string; @@ -23471,9 +23605,11 @@ export interface components { * @enum {string} */ status: "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method" | "succeeded"; - /** @description Indicates how the payment method is intended to be used in the future. + /** + * @description Indicates how the payment method is intended to be used in the future. * - * Use `on_session` if you intend to only reuse the payment method when the customer is in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow. If not provided, this value defaults to `off_session`. */ + * Use `on_session` if you intend to only reuse the payment method when the customer is in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow. If not provided, this value defaults to `off_session`. + */ usage: string; }; /** SetupIntentNextAction */ @@ -24458,8 +24594,10 @@ export interface components { }; /** SubscriptionDetailsData */ subscription_details_data: { - /** @description Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization. - * *Note: This attribute is populated only for invoices created on or after June 29, 2023.* */ + /** + * @description Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization. + * *Note: This attribute is populated only for invoices created on or after June 29, 2023.* + */ metadata?: { [key: string]: string; } | null; @@ -25628,9 +25766,11 @@ export interface components { description?: string | null; /** @description The display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page. */ display_name: string; - /** @description Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, + /** + * @description Actual/effective tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, * this percentage reflects the rate actually used to calculate tax based on the product's taxability - * and whether the user is registered to collect taxes in the corresponding jurisdiction. */ + * and whether the user is registered to collect taxes in the corresponding jurisdiction. + */ effective_percentage?: number | null; /** @description The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. */ flat_amount?: components["schemas"]["tax_rate_flat_amount"] | null; @@ -26051,8 +26191,10 @@ export interface components { * @enum {string|null} */ result_reason?: "abandoned" | "bypassed" | "canceled" | "card_not_enrolled" | "network_not_supported" | "protocol_error" | "rejected" | null; - /** @description The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID - * (dsTransId) for this payment. */ + /** + * @description The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID + * (dsTransId) for this payment. + */ transaction_id?: string | null; /** * @description The version of 3D Secure that was used. @@ -26079,8 +26221,10 @@ export interface components { * @enum {string|null} */ exemption_indicator?: "low_risk" | "none" | null; - /** @description Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on - * the outcome of Stripe's internal risk assessment. */ + /** + * @description Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on + * the outcome of Stripe's internal risk assessment. + */ exemption_indicator_applied?: boolean; /** * @description Indicates the outcome of 3D Secure authentication. @@ -26093,8 +26237,10 @@ export interface components { * @enum {string|null} */ result_reason?: "abandoned" | "bypassed" | "canceled" | "card_not_enrolled" | "network_not_supported" | "protocol_error" | "rejected" | null; - /** @description The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID - * (dsTransId) for this payment. */ + /** + * @description The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID + * (dsTransId) for this payment. + */ transaction_id?: string | null; /** * @description The version of 3D Secure that was used. @@ -26315,9 +26461,11 @@ export interface components { transfer_data: { /** @description Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). */ amount?: number; - /** @description The account (if any) that the payment is attributed to for tax + /** + * @description The account (if any) that the payment is attributed to for tax * reporting, and where funds from the payment are transferred to after - * payment success. */ + * payment success. + */ destination: string | components["schemas"]["account"]; }; /** @@ -29625,9 +29773,11 @@ export interface operations { "application/x-www-form-urlencoded": { /** @description Specifies which fields in the response should be expanded. */ expand?: string[]; - /** @description To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays. + /** + * @description To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays. * - * If a capability isn't permanent, you can remove it from the account by passing false. Some capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error. */ + * If a capability isn't permanent, you can remove it from the account by passing false. Some capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error. + */ requested?: boolean; }; }; @@ -33733,9 +33883,11 @@ export interface operations { }; /** @description A payment source to be charged. This can be the ID of a [card](https://stripe.com/docs/api#cards) (i.e., credit or debit card), a [bank account](https://stripe.com/docs/api#bank_accounts), a [source](https://stripe.com/docs/api#sources), a [token](https://stripe.com/docs/api#tokens), or a [connected account](https://stripe.com/docs/connect/account-debits#charging-a-connected-account). For certain sources---namely, [cards](https://stripe.com/docs/api#cards), [bank accounts](https://stripe.com/docs/api#bank_accounts), and attached [sources](https://stripe.com/docs/api#sources)---you must also pass the ID of the associated customer. */ source?: string; - /** @description For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). + /** + * @description For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). * - * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix. */ + * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix. + */ statement_descriptor?: string; /** @description Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor. */ statement_descriptor_suffix?: string; @@ -33964,9 +34116,11 @@ export interface operations { expand?: string[]; /** @description The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode. */ receipt_email?: string; - /** @description For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). + /** + * @description For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). * - * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix. */ + * For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix. + */ statement_descriptor?: string; /** @description Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor. */ statement_descriptor_suffix?: string; @@ -34591,9 +34745,11 @@ export interface operations { billing_address_collection?: "auto" | "required"; /** @description If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded`. */ cancel_url?: string; - /** @description A unique string to reference the Checkout Session. This can be a + /** + * @description A unique string to reference the Checkout Session. This can be a * customer ID, a cart ID, or similar, and can be used to reconcile the - * session with your internal systems. */ + * session with your internal systems. + */ client_reference_id?: string; /** * consent_collection_params @@ -34666,7 +34822,8 @@ export interface operations { message: string; } | ""; }; - /** @description ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card + /** + * @description ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card * payment method will be used to prefill the email, name, card details, and billing address * on the Checkout page. In `subscription` mode, the customer’s [default payment method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) * will be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details. @@ -34676,7 +34833,8 @@ export interface operations { * * If blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow. * - * You can set [`payment_intent_data.setup_future_usage`](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse. */ + * You can set [`payment_intent_data.setup_future_usage`](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse. + */ customer?: string; /** * @description Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation. @@ -34691,11 +34849,13 @@ export interface operations { * @enum {string} */ customer_creation?: "always" | "if_required"; - /** @description If provided, this value will be used when the Customer object is created. + /** + * @description If provided, this value will be used when the Customer object is created. * If not provided, customers will be asked to enter their email address. * Use this parameter to prefill customer data if you already have an email * on file. To access information about the customer once a session is - * complete, use the `customer` field. */ + * complete, use the `customer` field. + */ customer_email?: string; /** * customer_update_params @@ -34751,11 +34911,13 @@ export interface operations { } | ""; }; }; - /** @description A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). + /** + * @description A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). * * For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen. * - * For `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only. */ + * For `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only. + */ line_items?: { /** adjustable_quantity_params */ adjustable_quantity?: { @@ -35142,7 +35304,8 @@ export interface operations { setup_future_usage?: "none"; }; }; - /** @description A list of the types of payment methods (e.g., `card`) this Checkout Session can accept. + /** + * @description A list of the types of payment methods (e.g., `card`) this Checkout Session can accept. * * You can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). * See [Dynamic Payment Methods](https://stripe.com/docs/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details. @@ -35152,7 +35315,8 @@ export interface operations { * * If multiple payment methods are passed, Checkout will dynamically reorder them to * prioritize the most relevant payment methods based on the customer's location and - * other characteristics. */ + * other characteristics. + */ payment_method_types?: ("acss_debit" | "affirm" | "afterpay_clearpay" | "alipay" | "alma" | "amazon_pay" | "au_becs_debit" | "bacs_debit" | "bancontact" | "blik" | "boleto" | "card" | "cashapp" | "customer_balance" | "eps" | "fpx" | "giropay" | "grabpay" | "ideal" | "kakao_pay" | "klarna" | "konbini" | "kr_card" | "link" | "mobilepay" | "multibanco" | "naver_pay" | "oxxo" | "p24" | "pay_by_bank" | "payco" | "paynow" | "paypal" | "pix" | "promptpay" | "revolut_pay" | "samsung_pay" | "sepa_debit" | "sofort" | "swish" | "twint" | "us_bank_account" | "wechat_pay" | "zip")[]; /** * phone_number_collection_params @@ -35169,9 +35333,11 @@ export interface operations { * @enum {string} */ redirect_on_completion?: "always" | "if_required" | "never"; - /** @description The URL to redirect your customer back to after they authenticate or cancel their payment on the + /** + * @description The URL to redirect your customer back to after they authenticate or cancel their payment on the * payment method's app or site. This parameter is required if ui_mode is `embedded` - * and redirect-based payment methods are enabled on the session. */ + * and redirect-based payment methods are enabled on the session. + */ return_url?: string; /** * saved_payment_method_options_param @@ -35293,11 +35459,13 @@ export interface operations { }; }; }; - /** @description The URL to which Stripe should send customers when payment or setup + /** + * @description The URL to which Stripe should send customers when payment or setup * is complete. * This parameter is not allowed if ui_mode is `embedded`. If you’d like to use * information from the successful Checkout Session on your page, read the - * guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page). */ + * guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page). + */ success_url?: string; /** * tax_id_collection_params @@ -37269,11 +37437,13 @@ export interface operations { default_bank_account?: string; /** @description ID of card to make the customer's new default for invoice payments. */ default_card?: string; - /** @description If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter. + /** + * @description If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter. * * Provide the ID of a payment source already attached to this customer to make it this customer's default payment source. * - * If you want to add a new payment source and make it the default, see the [source](https://stripe.com/docs/api/customers/update#update_customer-source) property. */ + * If you want to add a new payment source and make it the default, see the [source](https://stripe.com/docs/api/customers/update#update_customer-source) property. + */ default_source?: string; /** @description An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard. */ description?: string; @@ -41468,9 +41638,11 @@ export interface operations { account_subcategories?: ("checking" | "credit_card" | "line_of_credit" | "mortgage" | "savings")[]; countries?: string[]; }; - /** @description List of data features that you would like to request access to. + /** + * @description List of data features that you would like to request access to. * - * Possible values are `balances`, `transactions`, `ownership`, and `payment_method`. */ + * Possible values are `balances`, `transactions`, `ownership`, and `payment_method`. + */ permissions: ("balances" | "ownership" | "payment_method" | "transactions")[]; /** @description List of data features that you would like to retrieve upon account creation. */ prefetch?: ("balances" | "ownership" | "transactions")[]; @@ -44972,9 +45144,11 @@ export interface operations { "application/x-www-form-urlencoded": { /** @description Specifies which fields in the response should be expanded. */ expand?: string[]; - /** @description In cases where the source used to pay the invoice has insufficient funds, passing `forgive=true` controls whether a charge should be attempted for the full amount available on the source, up to the amount to fully pay the invoice. This effectively forgives the difference between the amount available on the source and the amount due. + /** + * @description In cases where the source used to pay the invoice has insufficient funds, passing `forgive=true` controls whether a charge should be attempted for the full amount available on the source, up to the amount to fully pay the invoice. This effectively forgives the difference between the amount available on the source and the amount due. * - * Passing `forgive=false` will fail the charge if the source hasn't been pre-funded with the right amount. An example for this case is with ACH Credit Transfers and wires: if the amount wired is less than the amount due by a small amount, you might want to forgive the difference. Defaults to `false`. */ + * Passing `forgive=false` will fail the charge if the source hasn't been pre-funded with the right amount. An example for this case is with ACH Credit Transfers and wires: if the amount wired is less than the amount due by a small amount, you might want to forgive the difference. Defaults to `false`. + */ forgive?: boolean; /** @description ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the payment_method param or the invoice's default_payment_method or default_source, if set. */ mandate?: string | ""; @@ -45614,8 +45788,10 @@ export interface operations { name: string; /** @description The cardholder's phone number. This will be transformed to [E.164](https://en.wikipedia.org/wiki/E.164) if it is not provided in that format already. This is required for all cardholders who will be creating EU cards. See the [3D Secure documentation](https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied) for more details. */ phone_number?: string; - /** @description The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`. - * This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder. */ + /** + * @description The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`. + * This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder. + */ preferred_locales?: ("de" | "en" | "es" | "fr" | "it")[]; /** * authorization_controls_param_v2 @@ -45782,8 +45958,10 @@ export interface operations { }; /** @description The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the [3D Secure documentation](https://stripe.com/docs/issuing/3d-secure) for more details. */ phone_number?: string; - /** @description The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`. - * This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder. */ + /** + * @description The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`. + * This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder. + */ preferred_locales?: ("de" | "en" | "es" | "fr" | "it")[]; /** * authorization_controls_param_v2 @@ -47275,9 +47453,11 @@ export interface operations { account_subcategories?: ("checking" | "credit_card" | "line_of_credit" | "mortgage" | "savings")[]; countries?: string[]; }; - /** @description List of data features that you would like to request access to. + /** + * @description List of data features that you would like to request access to. * - * Possible values are `balances`, `transactions`, `ownership`, and `payment_method`. */ + * Possible values are `balances`, `transactions`, `ownership`, and `payment_method`. + */ permissions: ("balances" | "ownership" | "payment_method" | "transactions")[]; /** @description List of data features that you would like to retrieve upon account creation. */ prefetch?: ("balances" | "ownership" | "transactions")[]; @@ -47715,20 +47895,24 @@ export interface operations { * @enum {string} */ confirmation_method?: "automatic" | "manual"; - /** @description ID of the ConfirmationToken used to confirm this PaymentIntent. + /** + * @description ID of the ConfirmationToken used to confirm this PaymentIntent. * - * If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence. */ + * If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence. + */ confirmation_token?: string; /** * Format: currency * @description Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ currency: string; - /** @description ID of the Customer this PaymentIntent belongs to, if one exists. + /** + * @description ID of the Customer this PaymentIntent belongs to, if one exists. * * Payment methods attached to other Customers cannot be used with this PaymentIntent. * - * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. */ + * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. + */ customer?: string; /** @description An arbitrary string attached to the object. Often useful for displaying to users. */ description?: string; @@ -47763,9 +47947,11 @@ export interface operations { off_session?: boolean | ("one_off" | "recurring"); /** @description The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). */ on_behalf_of?: string; - /** @description ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. + /** + * @description ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. * - * If you omit this parameter with `confirm=true`, `customer.default_source` attaches as this PaymentIntent's payment instrument to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward. */ + * If you omit this parameter with `confirm=true`, `customer.default_source` attaches as this PaymentIntent's payment instrument to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward. + */ payment_method?: string; /** @description The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent. */ payment_method_configuration?: string; @@ -48341,9 +48527,11 @@ export interface operations { phone?: string; tracking_number?: string; }; - /** @description Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). + /** + * @description Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). * - * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. */ + * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. + */ statement_descriptor?: string; /** @description Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. */ statement_descriptor_suffix?: string; @@ -48504,11 +48692,13 @@ export interface operations { * @description Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ currency?: string; - /** @description ID of the Customer this PaymentIntent belongs to, if one exists. + /** + * @description ID of the Customer this PaymentIntent belongs to, if one exists. * * Payment methods attached to other Customers cannot be used with this PaymentIntent. * - * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. */ + * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. + */ customer?: string; /** @description An arbitrary string attached to the object. Often useful for displaying to users. */ description?: string; @@ -49084,9 +49274,11 @@ export interface operations { phone?: string; tracking_number?: string; } | ""; - /** @description Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). + /** + * @description Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). * - * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. */ + * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. + */ statement_descriptor?: string; /** @description Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. */ statement_descriptor_suffix?: string; @@ -49135,11 +49327,13 @@ export interface operations { requestBody?: { content: { "application/x-www-form-urlencoded": { - /** @description Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter. + /** + * @description Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter. * * A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent. * - * When you omit the amount, it defaults to the remaining amount requested on the PaymentIntent. */ + * When you omit the amount, it defaults to the remaining amount requested on the PaymentIntent. + */ amount?: number; /** * Format: currency @@ -49239,9 +49433,11 @@ export interface operations { metadata?: { [key: string]: string; } | ""; - /** @description Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). + /** + * @description Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). * - * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. */ + * Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. + */ statement_descriptor?: string; /** @description Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. */ statement_descriptor_suffix?: string; @@ -49296,9 +49492,11 @@ export interface operations { capture_method?: "automatic" | "automatic_async" | "manual"; /** @description The client secret of the PaymentIntent. */ client_secret?: string; - /** @description ID of the ConfirmationToken used to confirm this PaymentIntent. + /** + * @description ID of the ConfirmationToken used to confirm this PaymentIntent. * - * If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence. */ + * If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence. + */ confirmation_token?: string; /** @description Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). */ error_on_requires_action?: boolean; @@ -49877,9 +50075,11 @@ export interface operations { }; /** @description Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails). */ receipt_email?: string | ""; - /** @description The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. + /** + * @description The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. * If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. - * This parameter is only used for cards and other redirect-based payment methods. */ + * This parameter is only used for cards and other redirect-based payment methods. + */ return_url?: string; /** * @description Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -53902,10 +54102,12 @@ export interface operations { }; /** @description Whether this product is shipped (i.e., physical goods). */ shippable?: boolean; - /** @description An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. + /** + * @description An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. * * This may be up to 22 characters. The statement description may not include `<`, `>`, `\`, `"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. - * It must contain at least one letter. Only used for subscription payments. */ + * It must contain at least one letter. Only used for subscription payments. + */ statement_descriptor?: string; /** @description A [tax code](https://stripe.com/docs/tax/tax-categories) ID. */ tax_code?: string; @@ -54070,10 +54272,12 @@ export interface operations { } | ""; /** @description Whether this product is shipped (i.e., physical goods). */ shippable?: boolean; - /** @description An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. + /** + * @description An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all. * * This may be up to 22 characters. The statement description may not include `<`, `>`, `\`, `"`, `'` characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. - * It must contain at least one letter. May only be set if `type=service`. Only used for subscription payments. */ + * It must contain at least one letter. May only be set if `type=service`. Only used for subscription payments. + */ statement_descriptor?: string; /** @description A [tax code](https://stripe.com/docs/tax/tax-categories) ID. */ tax_code?: string | ""; @@ -54392,9 +54596,11 @@ export interface operations { "application/x-www-form-urlencoded": { /** @description Whether the promotion code is currently active. */ active?: boolean; - /** @description The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). + /** + * @description The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). * - * If left blank, we will generate one automatically. */ + * If left blank, we will generate one automatically. + */ code?: string; /** @description The coupon for this promotion code. */ coupon: string; @@ -56352,9 +56558,11 @@ export interface operations { GetSetupAttempts: { parameters: { query: { - /** @description A filter on the list, based on the object `created` field. The value + /** + * @description A filter on the list, based on the object `created` field. The value * can be a string with an integer Unix timestamp or a - * dictionary with a number of different query options. */ + * dictionary with a number of different query options. + */ created?: { gt?: number; gte?: number; @@ -56367,8 +56575,10 @@ export interface operations { expand?: string[]; /** @description A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. */ limit?: number; - /** @description Only return SetupAttempts created by the SetupIntent specified by - * this ID. */ + /** + * @description Only return SetupAttempts created by the SetupIntent specified by + * this ID. + */ setup_intent: string; /** @description A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. */ starting_after?: string; @@ -56417,9 +56627,11 @@ export interface operations { GetSetupIntents: { parameters: { query?: { - /** @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. + /** + * @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. * - * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. */ + * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. + */ attach_to_self?: boolean; /** @description A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options. */ created?: { @@ -56492,9 +56704,11 @@ export interface operations { requestBody?: { content: { "application/x-www-form-urlencoded": { - /** @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. + /** + * @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. * - * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. */ + * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. + */ attach_to_self?: boolean; /** * automatic_payment_methods_param @@ -56507,21 +56721,27 @@ export interface operations { }; /** @description Set to `true` to attempt to confirm this SetupIntent immediately. This parameter defaults to `false`. If a card is the attached payment method, you can provide a `return_url` in case further authentication is necessary. */ confirm?: boolean; - /** @description ID of the ConfirmationToken used to confirm this SetupIntent. + /** + * @description ID of the ConfirmationToken used to confirm this SetupIntent. * - * If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence. */ + * If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence. + */ confirmation_token?: string; - /** @description ID of the Customer this SetupIntent belongs to, if one exists. + /** + * @description ID of the Customer this SetupIntent belongs to, if one exists. * - * If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent. */ + * If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent. + */ customer?: string; /** @description An arbitrary string attached to the object. Often useful for displaying to users. */ description?: string; /** @description Specifies which fields in the response should be expanded. */ expand?: string[]; - /** @description Indicates the directions of money movement for which this payment method is intended to be used. + /** + * @description Indicates the directions of money movement for which this payment method is intended to be used. * - * Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. */ + * Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. + */ flow_directions?: ("inbound" | "outbound")[]; /** @description This hash contains details about the mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm). */ mandate_data?: { @@ -56931,21 +57151,27 @@ export interface operations { requestBody?: { content: { "application/x-www-form-urlencoded": { - /** @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. + /** + * @description If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. * - * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. */ + * It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer. + */ attach_to_self?: boolean; - /** @description ID of the Customer this SetupIntent belongs to, if one exists. + /** + * @description ID of the Customer this SetupIntent belongs to, if one exists. * - * If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent. */ + * If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent. + */ customer?: string; /** @description An arbitrary string attached to the object. Often useful for displaying to users. */ description?: string; /** @description Specifies which fields in the response should be expanded. */ expand?: string[]; - /** @description Indicates the directions of money movement for which this payment method is intended to be used. + /** + * @description Indicates the directions of money movement for which this payment method is intended to be used. * - * Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. */ + * Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. + */ flow_directions?: ("inbound" | "outbound")[]; /** @description Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ metadata?: { @@ -57323,9 +57549,11 @@ export interface operations { "application/x-www-form-urlencoded": { /** @description The client secret of the SetupIntent. */ client_secret?: string; - /** @description ID of the ConfirmationToken used to confirm this SetupIntent. + /** + * @description ID of the ConfirmationToken used to confirm this SetupIntent. * - * If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence. */ + * If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence. + */ confirmation_token?: string; /** @description Specifies which fields in the response should be expanded. */ expand?: string[]; @@ -57643,9 +57871,11 @@ export interface operations { verification_method?: "automatic" | "instant" | "microdeposits"; }; }; - /** @description The URL to redirect your customer back to after they authenticate on the payment method's app or site. + /** + * @description The URL to redirect your customer back to after they authenticate on the payment method's app or site. * If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. - * This parameter is only used for cards and other redirect-based payment methods. */ + * This parameter is only used for cards and other redirect-based payment methods. + */ return_url?: string; /** @description Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions. */ use_stripe_sdk?: boolean; diff --git a/packages/openapi-typescript/src/lib/ts.ts b/packages/openapi-typescript/src/lib/ts.ts index a113c8ccb..534c0f84a 100644 --- a/packages/openapi-typescript/src/lib/ts.ts +++ b/packages/openapi-typescript/src/lib/ts.ts @@ -53,10 +53,10 @@ export function addJSDocComment(schemaObject: AnnotatedSchemaObject, node: ts.Pr // Not JSDoc tags: [title, format] if (schemaObject.title) { - output.push(schemaObject.title.replace(LB_RE, "\n * ")); + output.push(schemaObject.title.trim().replace(LB_RE, "\n * ")); } if (schemaObject.summary) { - output.push(schemaObject.summary.replace(LB_RE, "\n * ")); + output.push(schemaObject.summary.trim().replace(LB_RE, "\n * ")); } if (schemaObject.format) { output.push(`Format: ${schemaObject.format}`); @@ -80,13 +80,13 @@ export function addJSDocComment(schemaObject: AnnotatedSchemaObject, node: ts.Pr } const serialized = typeof schemaObject[field] === "object" ? JSON.stringify(schemaObject[field], null, 2) : schemaObject[field]; - output.push(`@${field} ${String(serialized).replace(LB_RE, "\n * ")}`); + output.push(`@${field} ${String(serialized).trim().replace(LB_RE, "\n * ")}`); } if (Array.isArray(schemaObject.examples)) { for (const example of schemaObject.examples) { const serialized = typeof example === "object" ? JSON.stringify(example, null, 2) : example; - output.push(`@example ${String(serialized).replace(LB_RE, "\n * ")}`); + output.push(`@example ${String(serialized).trim().replace(LB_RE, "\n * ")}`); } } @@ -109,11 +109,11 @@ export function addJSDocComment(schemaObject: AnnotatedSchemaObject, node: ts.Pr // attach comment if it has content if (output.length) { + // Check if any output item contains multi-line content (has internal line breaks) + const hasMultiLineContent = output.some((item) => item.includes("\n")); + let text = - output.length === 1 - ? `* ${output.join("\n")} ` - : `* - * ${output.join("\n * ")}\n `; + output.length === 1 && !hasMultiLineContent ? `* ${output.join("\n")} ` : `*\n * ${output.join("\n * ")}\n `; text = text.replace(COMMENT_RE, "*\\/"); // prevent inner comments from leaking ts.addSyntheticLeadingComment( diff --git a/packages/openapi-typescript/test/fixtures/multi-line-descriptions.yaml b/packages/openapi-typescript/test/fixtures/multi-line-descriptions.yaml new file mode 100644 index 000000000..91450ec2c --- /dev/null +++ b/packages/openapi-typescript/test/fixtures/multi-line-descriptions.yaml @@ -0,0 +1,43 @@ +openapi: 3.0.3 +info: + title: Multi-line Descriptions API + version: 1.0.0 +paths: + /users: + get: + summary: Get all users + description: > + This endpoint returns all users. + It supports pagination. + Use the limit parameter to control results. + responses: + '200': + description: > + Success response. + Returns an array of users. + Each user has an id and name. + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/User' +components: + schemas: + User: + type: object + description: | + User object + Contains basic user information + Including personal details + properties: + id: + type: string + description: | + Unique identifier + Generated by the system + Immutable after creation + name: + type: string + description: User's full name + diff --git a/packages/openapi-typescript/test/index.test.ts b/packages/openapi-typescript/test/index.test.ts index f3fffc6e7..ea8f55426 100644 --- a/packages/openapi-typescript/test/index.test.ts +++ b/packages/openapi-typescript/test/index.test.ts @@ -1034,6 +1034,80 @@ export interface components { pathItems: never; } export type $defs = Record; +export type operations = Record;`, + }, + ], + [ + "descriptions > multi-line descriptions", + { + given: new URL("./fixtures/multi-line-descriptions.yaml", import.meta.url), + want: `export interface paths { + "/users": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Get all users + * @description This endpoint returns all users. It supports pagination. Use the limit parameter to control results. + */ + get: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Success response. Returns an array of users. Each user has an id and name. */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["User"][]; + }; + }; + }; + }; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; +} +export type webhooks = Record; +export interface components { + schemas: { + /** + * @description User object + * Contains basic user information + * Including personal details + */ + User: { + /** + * @description Unique identifier + * Generated by the system + * Immutable after creation + */ + id?: string; + /** @description User's full name */ + name?: string; + }; + }; + responses: never; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; export type operations = Record;`, }, ],