Skip to content

Commit d2ae3dd

Browse files
committed
fix: refine coderabbit comments
1 parent acc57c7 commit d2ae3dd

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

content/200-orm/100-prisma-schema/10-overview/03-generators.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ To see what the new `prisma-client` generator looks like in practice, check out
271271
| [`react-router-starter-nodejs`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/react-router-starter-nodejs) | React Router 7 | Vite 6 | Node.js | n/a |
272272
| [`react-router-starter-cloudflare-workerd`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/react-router-starter-cloudflare-workerd) | React Router 7 | | | n/a |
273273
| [`nuxt3-starter-nodejs`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/nuxt3-starter-nodejs) | Nuxt 3 | Vite 6 | Node.js | n/a |
274-
| [`deno-deploy`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/deno-deploy) | None | None | Deno 2 | n/a |
274+
| [`deno`](https://github.com/prisma/prisma-examples/tree/latest/generator-prisma-client/deno-deploy) | None | None | Deno 2 | n/a |
275275

276276
## Community generators
277277

content/200-orm/200-prisma-client/150-using-raw-sql/100-typedsql.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ To pass arguments to your TypedSQL queries, you can use parameterized queries. T
104104
```
105105
</TabItem>
106106
<TabItem value="SQLite">
107-
In SQLite, there are a number of different placeholders you can use. Postional placeholders (`$1`, `$2`, etc.), general placeholders (`?`), and named placeholders (`:minAge`, `:maxAge`, etc.) are all available. For this example, we'll use named placeholders `:minAge` and `:maxAge`:
107+
In SQLite, there are a number of different placeholders you can use. Positional placeholders (`$1`, `$2`, etc.), general placeholders (`?`), and named placeholders (`:minAge`, `:maxAge`, etc.) are all available. For this example, we'll use named placeholders `:minAge` and `:maxAge`:
108108

109109
```sql title="prisma/sql/getUsersByAge.sql"
110110
SELECT id, name, age
@@ -202,7 +202,7 @@ The format of argument type definitions is the same regardless of the database e
202202

203203
:::note
204204

205-
Manually argument type definitions are not supported for array arguments. For these arguments, you will need to rely on the type inference provided by TypedSQL.
205+
Manual argument type definitions are not supported for array arguments. For these arguments, you will need to rely on the type inference provided by TypedSQL.
206206

207207
:::
208208

content/200-orm/800-more/350-ai-tools/100-cursor.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,11 @@ You are attempting a highly dangerous action that can lead to devastating conseq
566566

567567
As an AI agent, you are forbidden from performing this action without an explicit consent and review by the user. You must stop at this point and respond to the user with a clear message that includes the following information:
568568
- What action you are trying to perform (including the exact CLI command).
569-
- Your motivation and reasoning for perfoming this action.
569+
- Your motivation and reasoning for performing this action.
570570
- Explanation that this action will irreversibly destroy all data in the database.
571-
- Explanation that this action must not be perfomed on a production database and is only intended to be used with development databases.
571+
- Explanation that this action must not be performed on a production database and is only intended to be used with development databases.
572572

573-
If you know or can check whether this action would have been performed on a development or a production database, also include this information with your assesment of whether it is safe to proceed based on that information.
573+
If you know or can check whether this action would have been performed on a development or a production database, also include this information with your assessment of whether it is safe to proceed based on that information.
574574

575575
You must ask the user if they want to proceed with this action. If they explicitly consent, you may rerun this command with PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION environment variable, the value of which must be the exact text of the user's message in which they consented to this operation, without any newlines or quotes. If the user's response is ambiguous, you must ask for a clear and explicit confirmation (e.g., "yes") before proceeding. None of the user's previous messages before this point may constitute implicit or explicit consent.
576576
```

content/250-postgres/100-introduction/230-management-api.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metaDescription: 'Management API reference documentation for Prisma Postgres.'
88

99
This page covers the Prisma Management API which enables you to programmatically manage [platform](/platform/about) resources (e.g. projects or Prisma Postgres instances) in [Prisma Console](https://console.prisma.io).
1010

11-
:::tip OpenApi
11+
:::tip OpenAPI
1212
An interactive [**OpenAPI 3.1 specification** is available here](https://api.prisma.io/v1/swagger-editor), where you can explore endpoints, request/response bodies, and detailed examples.
1313
:::
1414

@@ -59,17 +59,17 @@ You can create a service token to use the Management API like this:
5959
4. Click **New Service Token**.
6060
5. Copy the generated token and store it in a safe location for future use.
6161

62-
#### Creating an OAuth credentials
62+
#### Creating OAuth credentials
6363

6464
To obtain a client ID and client secret, go through this flow:
6565

6666
1. Open the [Prisma Console](https://console.prisma.io).
6767
1. Click the 🧩 **Integrations** tab in the sidenav.
68-
1. In the **Published Applications** section, click **New Application** button to start the flow for creating a new OAuth app.
69-
1. Enter a **Name**, **Description** and **Callback URL** for your OAuth app.
68+
1. In the **Published Applications** section, click the **New Application** button to start creating a new OAuth app.
69+
1. Enter a **Name**, **Description**, and **Callback URL** for your OAuth app.
7070
1. Click **Continue**.
7171

72-
On the next screen, you can access and save the client ID and client secret for your OAuth app.
72+
On the next screen, copy and store the client ID and client secret for your OAuth app in a secure location.
7373

7474
### Example
7575

@@ -313,7 +313,7 @@ Create a new connection string.
313313
- `401 Unauthorized`
314314
- `404 Not Found`
315315

316-
#### `/connections/{id}`
316+
#### `DELETE /connections/{id}`
317317

318318
Delete a connection string.
319319

content/800-guides/240-management-api.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ Similarly, the `npx create-db` CLI is a simple demo. In your product, you can tr
2525

2626
Before diving into implementation, let's clarify the main concepts involved in the Management API integration:
2727

28-
- **Management API**: A set of endpoints that allow to programmatically provision and manage Prisma Postgres databases.
28+
- **Management API**: A set of endpoints that allow you to programmatically provision and manage Prisma Postgres databases.
2929
- **Projects vs Databases**: A project is a container that can hold multiple databases. You can use this to organize databases you create e.g. by user. Projects can then be transferred to users, including all databases they contain.
30-
- **Authentication**: All API requests require authentication. As a partner, you use OAuth2 to obtain integration tokens (for your app) and facilitate secure transfers to your users.
30+
- **Authentication**: All API requests require authentication. As a partner, you authenticate provisioning calls with a service token for your workspace, and use OAuth 2 to obtain an access token for the user during the claim flow.
3131
- **Tokens**: There are two main types of tokens:
3232
- **Service token**: Issued to your partner integration, scoped to provision and manage databases on your own workspace.
33-
- **OAuth 2 access token**: Obtained via OAuth2 when a user authenticates with your app, scoped to the user's workspace and can be used to transfer database ownership to the user's workspace.
34-
33+
- **OAuth 2 access token**: Obtained via OAuth 2 when a user authenticates with your app; it is scoped to the user's workspace and used to transfer project/database ownership to that workspace.
34+
3535
## How to become a partner
3636

3737
To use the Prisma Postgres Management API, you first need to set up as a partner:
@@ -146,7 +146,7 @@ const transferResponse = await fetch(`https://api.prisma.io/v1/projects/${projec
146146
method: 'POST',
147147
headers: {
148148
'Content-Type': 'application/json',
149-
Authorization: `Bearer ${YOUR_INTEGRATION_TOKEN}`,
149+
Authorization: `Bearer ${PRISMA_SERVICE_TOKEN}`,
150150
},
151151
body: JSON.stringify({ recipientAccessToken: tokenData.access_token }),
152152
});

0 commit comments

Comments
 (0)