@powerlines/plugin-prisma 0.2.244 → 0.2.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/client/client.gen.d.cts +7 -0
- package/dist/api/client/client.gen.d.cts.map +1 -0
- package/dist/api/client/client.gen.d.mts +7 -0
- package/dist/api/client/client.gen.d.mts.map +1 -0
- package/dist/api/client/client.gen.mjs +2 -1
- package/dist/api/client/client.gen.mjs.map +1 -0
- package/dist/api/client/index.d.cts +8 -0
- package/dist/api/client/index.d.mts +8 -0
- package/dist/api/client/types.gen.d.cts +131 -0
- package/dist/api/client/types.gen.d.cts.map +1 -0
- package/dist/api/client/types.gen.d.mts +131 -0
- package/dist/api/client/types.gen.d.mts.map +1 -0
- package/dist/api/client/utils.gen.d.cts +44 -0
- package/dist/api/client/utils.gen.d.cts.map +1 -0
- package/dist/api/client/utils.gen.d.mts +44 -0
- package/dist/api/client/utils.gen.d.mts.map +1 -0
- package/dist/api/client/utils.gen.mjs +2 -1
- package/dist/api/client/utils.gen.mjs.map +1 -0
- package/dist/api/client.gen.d.cts +19 -0
- package/dist/api/client.gen.d.cts.map +1 -0
- package/dist/api/client.gen.d.mts +19 -0
- package/dist/api/client.gen.d.mts.map +1 -0
- package/dist/api/client.gen.mjs +2 -1
- package/dist/api/client.gen.mjs.map +1 -0
- package/dist/api/core/auth.gen.d.cts +24 -0
- package/dist/api/core/auth.gen.d.cts.map +1 -0
- package/dist/api/core/auth.gen.d.mts +24 -0
- package/dist/api/core/auth.gen.d.mts.map +1 -0
- package/dist/api/core/auth.gen.mjs +2 -1
- package/dist/api/core/auth.gen.mjs.map +1 -0
- package/dist/api/core/bodySerializer.gen.d.cts +32 -0
- package/dist/api/core/bodySerializer.gen.d.cts.map +1 -0
- package/dist/api/core/bodySerializer.gen.d.mts +32 -0
- package/dist/api/core/bodySerializer.gen.d.mts.map +1 -0
- package/dist/api/core/bodySerializer.gen.mjs +2 -1
- package/dist/api/core/bodySerializer.gen.mjs.map +1 -0
- package/dist/api/core/params.gen.d.cts +49 -0
- package/dist/api/core/params.gen.d.cts.map +1 -0
- package/dist/api/core/params.gen.d.mts +49 -0
- package/dist/api/core/params.gen.d.mts.map +1 -0
- package/dist/api/core/params.gen.mjs +2 -1
- package/dist/api/core/params.gen.mjs.map +1 -0
- package/dist/api/core/pathSerializer.gen.d.cts +56 -0
- package/dist/api/core/pathSerializer.gen.d.cts.map +1 -0
- package/dist/api/core/pathSerializer.gen.d.mts +56 -0
- package/dist/api/core/pathSerializer.gen.d.mts.map +1 -0
- package/dist/api/core/pathSerializer.gen.mjs +2 -1
- package/dist/api/core/pathSerializer.gen.mjs.map +1 -0
- package/dist/api/core/queryKeySerializer.gen.d.cts +23 -0
- package/dist/api/core/queryKeySerializer.gen.d.cts.map +1 -0
- package/dist/api/core/queryKeySerializer.gen.d.mts +23 -0
- package/dist/api/core/queryKeySerializer.gen.d.mts.map +1 -0
- package/dist/api/core/queryKeySerializer.gen.mjs +2 -1
- package/dist/api/core/queryKeySerializer.gen.mjs.map +1 -0
- package/dist/api/core/serverSentEvents.gen.d.cts +91 -0
- package/dist/api/core/serverSentEvents.gen.d.cts.map +1 -0
- package/dist/api/core/serverSentEvents.gen.d.mts +91 -0
- package/dist/api/core/serverSentEvents.gen.d.mts.map +1 -0
- package/dist/api/core/serverSentEvents.gen.mjs +2 -1
- package/dist/api/core/serverSentEvents.gen.mjs.map +1 -0
- package/dist/api/core/types.gen.d.cts +80 -0
- package/dist/api/core/types.gen.d.cts.map +1 -0
- package/dist/api/core/types.gen.d.mts +80 -0
- package/dist/api/core/types.gen.d.mts.map +1 -0
- package/dist/api/core/utils.gen.d.cts +34 -0
- package/dist/api/core/utils.gen.d.cts.map +1 -0
- package/dist/api/core/utils.gen.d.mts +34 -0
- package/dist/api/core/utils.gen.d.mts.map +1 -0
- package/dist/api/core/utils.gen.mjs +2 -1
- package/dist/api/core/utils.gen.mjs.map +1 -0
- package/dist/api/sdk.gen.d.cts +226 -0
- package/dist/api/sdk.gen.d.cts.map +1 -0
- package/dist/api/sdk.gen.d.mts +226 -0
- package/dist/api/sdk.gen.d.mts.map +1 -0
- package/dist/api/sdk.gen.mjs +2 -1
- package/dist/api/sdk.gen.mjs.map +1 -0
- package/dist/api/types.gen.d.cts +2365 -0
- package/dist/api/types.gen.d.cts.map +1 -0
- package/dist/api/types.gen.d.mts +2365 -0
- package/dist/api/types.gen.d.mts.map +1 -0
- package/dist/helpers/get-schema.d.cts +14 -0
- package/dist/helpers/get-schema.d.cts.map +1 -0
- package/dist/helpers/get-schema.d.mts +14 -0
- package/dist/helpers/get-schema.d.mts.map +1 -0
- package/dist/helpers/get-schema.mjs +2 -1
- package/dist/helpers/get-schema.mjs.map +1 -0
- package/dist/helpers/index.d.cts +4 -0
- package/dist/helpers/index.d.mts +4 -0
- package/dist/helpers/prisma-postgres.d.cts +65 -0
- package/dist/helpers/prisma-postgres.d.cts.map +1 -0
- package/dist/helpers/prisma-postgres.d.mts +65 -0
- package/dist/helpers/prisma-postgres.d.mts.map +1 -0
- package/dist/helpers/prisma-postgres.mjs +2 -1
- package/dist/helpers/prisma-postgres.mjs.map +1 -0
- package/dist/helpers/schema-creator.d.cts +21 -0
- package/dist/helpers/schema-creator.d.cts.map +1 -0
- package/dist/helpers/schema-creator.d.mts +21 -0
- package/dist/helpers/schema-creator.d.mts.map +1 -0
- package/dist/helpers/schema-creator.mjs +2 -1
- package/dist/helpers/schema-creator.mjs.map +1 -0
- package/dist/index.cjs +18 -24
- package/dist/index.d.cts +24 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +16 -21
- package/dist/index.mjs.map +1 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/plugin.d.cts +91 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +91 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/prisma.d.cts +85 -0
- package/dist/types/prisma.d.cts.map +1 -0
- package/dist/types/prisma.d.mts +85 -0
- package/dist/types/prisma.d.mts.map +1 -0
- package/package.json +8 -7
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { Client, Options as Options$1, RequestResult, TDataShape } from "./client/types.gen.mjs";
|
|
2
|
+
import { CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, CreateDatabase2Data, CreateDatabase2Errors, CreateDatabase2Responses, CreateDatabaseConnectionStringData, CreateDatabaseConnectionStringErrors, CreateDatabaseConnectionStringResponses, CreateDatabaseData, CreateDatabaseErrors, CreateDatabaseResponses, CreateProjectWithPostgresDatabaseData, CreateProjectWithPostgresDatabaseErrors, CreateProjectWithPostgresDatabaseResponses, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteDatabaseData, DeleteDatabaseErrors, DeleteDatabaseResponses, DeleteIntegrationData, DeleteIntegrationErrors, DeleteIntegrationResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, GetAllRegionsData, GetAllRegionsErrors, GetAllRegionsResponses, GetConnectionData, GetConnectionErrors, GetConnectionResponses, GetDatabaseData, GetDatabaseErrors, GetDatabaseResponses, GetDatabaseUsageMetricsData, GetDatabaseUsageMetricsErrors, GetDatabaseUsageMetricsResponses, GetIntegrationByIdData, GetIntegrationByIdErrors, GetIntegrationByIdResponses, GetPrismaAccelerateRegionsData, GetPrismaAccelerateRegionsErrors, GetPrismaAccelerateRegionsResponses, GetPrismaPostgresRegionsData, GetPrismaPostgresRegionsErrors, GetPrismaPostgresRegionsResponses, GetProjectData, GetProjectErrors, GetProjectResponses, GetWorkspaceData, GetWorkspaceErrors, GetWorkspaceResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListDatabaseConnectionsData, ListDatabaseConnectionsErrors, ListDatabaseConnectionsResponses, ListDatabases2Data, ListDatabases2Errors, ListDatabases2Responses, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListIntegrations2Data, ListIntegrations2Errors, ListIntegrations2Responses, ListIntegrationsData, ListIntegrationsErrors, ListIntegrationsResponses, ListProjectsData, ListProjectsErrors, ListProjectsResponses, ListWorkspacesData, ListWorkspacesErrors, ListWorkspacesResponses, RevokeIntegrationTokensData, RevokeIntegrationTokensErrors, RevokeIntegrationTokensResponses, TransferProjectData, TransferProjectErrors, TransferProjectResponses, UpdateDatabaseData, UpdateDatabaseErrors, UpdateDatabaseResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses } from "./types.gen.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/api/sdk.gen.d.ts
|
|
5
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
6
|
+
/**
|
|
7
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
8
|
+
* individual options. This might be also useful if you want to implement a
|
|
9
|
+
* custom client.
|
|
10
|
+
*/
|
|
11
|
+
client?: Client;
|
|
12
|
+
/**
|
|
13
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
14
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
15
|
+
*/
|
|
16
|
+
meta?: Record<string, unknown>;
|
|
17
|
+
};
|
|
18
|
+
declare class HeyApiClient {
|
|
19
|
+
protected client: Client;
|
|
20
|
+
constructor(args?: {
|
|
21
|
+
client?: Client;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
declare class HeyApiRegistry<T> {
|
|
25
|
+
private readonly defaultKey;
|
|
26
|
+
private readonly instances;
|
|
27
|
+
get(key?: string): T;
|
|
28
|
+
set(value: T, key?: string): void;
|
|
29
|
+
}
|
|
30
|
+
declare class PrismaClient extends HeyApiClient {
|
|
31
|
+
static readonly __registry: HeyApiRegistry<PrismaClient>;
|
|
32
|
+
constructor(args?: {
|
|
33
|
+
client?: Client;
|
|
34
|
+
key?: string;
|
|
35
|
+
});
|
|
36
|
+
/**
|
|
37
|
+
* List connections
|
|
38
|
+
*
|
|
39
|
+
* Returns all connections the actor has access to, with optional database filter.
|
|
40
|
+
*/
|
|
41
|
+
listConnections<ThrowOnError extends boolean = true>(options?: Options<ListConnectionsData, ThrowOnError>): RequestResult<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError, "fields">;
|
|
42
|
+
/**
|
|
43
|
+
* Create connection
|
|
44
|
+
*
|
|
45
|
+
* Creates a new connection for the specified database.
|
|
46
|
+
*/
|
|
47
|
+
createConnection<ThrowOnError extends boolean = true>(options?: Options<CreateConnectionData, ThrowOnError>): RequestResult<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError, "fields">;
|
|
48
|
+
/**
|
|
49
|
+
* Delete connection
|
|
50
|
+
*
|
|
51
|
+
* Deletes the connection with the given ID.
|
|
52
|
+
*/
|
|
53
|
+
deleteConnection<ThrowOnError extends boolean = true>(options: Options<DeleteConnectionData, ThrowOnError>): RequestResult<DeleteConnectionResponses, DeleteConnectionErrors, ThrowOnError, "fields">;
|
|
54
|
+
/**
|
|
55
|
+
* Get connection
|
|
56
|
+
*
|
|
57
|
+
* Returns the connection with the given ID.
|
|
58
|
+
*/
|
|
59
|
+
getConnection<ThrowOnError extends boolean = true>(options: Options<GetConnectionData, ThrowOnError>): RequestResult<GetConnectionResponses, GetConnectionErrors, ThrowOnError, "fields">;
|
|
60
|
+
/**
|
|
61
|
+
* List databases
|
|
62
|
+
*
|
|
63
|
+
* Returns all databases the token has access to. Optionally filter by project ID.
|
|
64
|
+
*/
|
|
65
|
+
listDatabases<ThrowOnError extends boolean = true>(options?: Options<ListDatabasesData, ThrowOnError>): RequestResult<ListDatabasesResponses, ListDatabasesErrors, ThrowOnError, "fields">;
|
|
66
|
+
/**
|
|
67
|
+
* Create database
|
|
68
|
+
*
|
|
69
|
+
* Creates a new database in the specified project.
|
|
70
|
+
*/
|
|
71
|
+
createDatabase<ThrowOnError extends boolean = true>(options?: Options<CreateDatabaseData, ThrowOnError>): RequestResult<CreateDatabaseResponses, CreateDatabaseErrors, ThrowOnError, "fields">;
|
|
72
|
+
/**
|
|
73
|
+
* Delete database
|
|
74
|
+
*
|
|
75
|
+
* Deletes the database with the given ID.
|
|
76
|
+
*/
|
|
77
|
+
deleteDatabase<ThrowOnError extends boolean = true>(options: Options<DeleteDatabaseData, ThrowOnError>): RequestResult<DeleteDatabaseResponses, DeleteDatabaseErrors, ThrowOnError, "fields">;
|
|
78
|
+
/**
|
|
79
|
+
* Get database
|
|
80
|
+
*
|
|
81
|
+
* Returns the database with the given ID.
|
|
82
|
+
*/
|
|
83
|
+
getDatabase<ThrowOnError extends boolean = true>(options: Options<GetDatabaseData, ThrowOnError>): RequestResult<GetDatabaseResponses, GetDatabaseErrors, ThrowOnError, "fields">;
|
|
84
|
+
/**
|
|
85
|
+
* Update database
|
|
86
|
+
*
|
|
87
|
+
* Updates the database with the given ID.
|
|
88
|
+
*/
|
|
89
|
+
updateDatabase<ThrowOnError extends boolean = true>(options: Options<UpdateDatabaseData, ThrowOnError>): RequestResult<UpdateDatabaseResponses, UpdateDatabaseErrors, ThrowOnError, "fields">;
|
|
90
|
+
/**
|
|
91
|
+
* Get list of database connections
|
|
92
|
+
*
|
|
93
|
+
* Returns all connections for the given database.
|
|
94
|
+
*/
|
|
95
|
+
listDatabaseConnections<ThrowOnError extends boolean = true>(options: Options<ListDatabaseConnectionsData, ThrowOnError>): RequestResult<ListDatabaseConnectionsResponses, ListDatabaseConnectionsErrors, ThrowOnError, "fields">;
|
|
96
|
+
/**
|
|
97
|
+
* Create database connection string
|
|
98
|
+
*
|
|
99
|
+
* Creates a new connection string for the given database.
|
|
100
|
+
*/
|
|
101
|
+
createDatabaseConnectionString<ThrowOnError extends boolean = true>(options: Options<CreateDatabaseConnectionStringData, ThrowOnError>): RequestResult<CreateDatabaseConnectionStringResponses, CreateDatabaseConnectionStringErrors, ThrowOnError, "fields">;
|
|
102
|
+
/**
|
|
103
|
+
* Get list of backups
|
|
104
|
+
*
|
|
105
|
+
* Returns backups for the specified database.
|
|
106
|
+
*/
|
|
107
|
+
listBackups<ThrowOnError extends boolean = true>(options: Options<ListBackupsData, ThrowOnError>): RequestResult<ListBackupsResponses, ListBackupsErrors, ThrowOnError, "fields">;
|
|
108
|
+
/**
|
|
109
|
+
* Get database usage metrics
|
|
110
|
+
*
|
|
111
|
+
* Returns usage metrics for the specified database.
|
|
112
|
+
*/
|
|
113
|
+
getDatabaseUsageMetrics<ThrowOnError extends boolean = true>(options: Options<GetDatabaseUsageMetricsData, ThrowOnError>): RequestResult<GetDatabaseUsageMetricsResponses, GetDatabaseUsageMetricsErrors, ThrowOnError, "fields">;
|
|
114
|
+
/**
|
|
115
|
+
* Get list of projects
|
|
116
|
+
*
|
|
117
|
+
* Returns the list of projects the token has access to.
|
|
118
|
+
*/
|
|
119
|
+
listProjects<ThrowOnError extends boolean = true>(options?: Options<ListProjectsData, ThrowOnError>): RequestResult<ListProjectsResponses, ListProjectsErrors, ThrowOnError, "fields">;
|
|
120
|
+
/**
|
|
121
|
+
* Create project with a postgres database
|
|
122
|
+
*
|
|
123
|
+
* Creates a new project with a postgres database.
|
|
124
|
+
*/
|
|
125
|
+
createProjectWithPostgresDatabase<ThrowOnError extends boolean = true>(options?: Options<CreateProjectWithPostgresDatabaseData, ThrowOnError>): RequestResult<CreateProjectWithPostgresDatabaseResponses, CreateProjectWithPostgresDatabaseErrors, ThrowOnError, "fields">;
|
|
126
|
+
/**
|
|
127
|
+
* Delete project
|
|
128
|
+
*
|
|
129
|
+
* Deletes the project with the given ID.
|
|
130
|
+
*/
|
|
131
|
+
deleteProject<ThrowOnError extends boolean = true>(options: Options<DeleteProjectData, ThrowOnError>): RequestResult<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError, "fields">;
|
|
132
|
+
/**
|
|
133
|
+
* Get project
|
|
134
|
+
*
|
|
135
|
+
* Returns the project with the given ID.
|
|
136
|
+
*/
|
|
137
|
+
getProject<ThrowOnError extends boolean = true>(options: Options<GetProjectData, ThrowOnError>): RequestResult<GetProjectResponses, GetProjectErrors, ThrowOnError, "fields">;
|
|
138
|
+
/**
|
|
139
|
+
* Update project
|
|
140
|
+
*
|
|
141
|
+
* Updates the project with the given ID.
|
|
142
|
+
*/
|
|
143
|
+
updateProject<ThrowOnError extends boolean = true>(options: Options<UpdateProjectData, ThrowOnError>): RequestResult<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError, "fields">;
|
|
144
|
+
/**
|
|
145
|
+
* Transfer project
|
|
146
|
+
*
|
|
147
|
+
* Transfer the project with the given ID to the new owner's workspace
|
|
148
|
+
*/
|
|
149
|
+
transferProject<ThrowOnError extends boolean = true>(options: Options<TransferProjectData, ThrowOnError>): RequestResult<TransferProjectResponses, TransferProjectErrors, ThrowOnError, "fields">;
|
|
150
|
+
/**
|
|
151
|
+
* Get list of databases
|
|
152
|
+
*
|
|
153
|
+
* Returns databases for the given project.
|
|
154
|
+
*/
|
|
155
|
+
listDatabases2<ThrowOnError extends boolean = true>(options: Options<ListDatabases2Data, ThrowOnError>): RequestResult<ListDatabases2Responses, ListDatabases2Errors, ThrowOnError, "fields">;
|
|
156
|
+
/**
|
|
157
|
+
* Create database
|
|
158
|
+
*
|
|
159
|
+
* Creates a new database for the given project.
|
|
160
|
+
*/
|
|
161
|
+
createDatabase2<ThrowOnError extends boolean = true>(options: Options<CreateDatabase2Data, ThrowOnError>): RequestResult<CreateDatabase2Responses, CreateDatabase2Errors, ThrowOnError, "fields">;
|
|
162
|
+
/**
|
|
163
|
+
* Get list of integrations
|
|
164
|
+
*
|
|
165
|
+
* Returns integrations filtered by workspace ID.
|
|
166
|
+
*/
|
|
167
|
+
listIntegrations<ThrowOnError extends boolean = true>(options: Options<ListIntegrationsData, ThrowOnError>): RequestResult<ListIntegrationsResponses, ListIntegrationsErrors, ThrowOnError, "fields">;
|
|
168
|
+
/**
|
|
169
|
+
* Delete integration
|
|
170
|
+
*
|
|
171
|
+
* Revokes the integration tokens by integration ID.
|
|
172
|
+
*/
|
|
173
|
+
deleteIntegration<ThrowOnError extends boolean = true>(options: Options<DeleteIntegrationData, ThrowOnError>): RequestResult<DeleteIntegrationResponses, DeleteIntegrationErrors, ThrowOnError, "fields">;
|
|
174
|
+
/**
|
|
175
|
+
* Get integration by ID
|
|
176
|
+
*
|
|
177
|
+
* Returns a single integration by its ID.
|
|
178
|
+
*/
|
|
179
|
+
getIntegrationById<ThrowOnError extends boolean = true>(options: Options<GetIntegrationByIdData, ThrowOnError>): RequestResult<GetIntegrationByIdResponses, GetIntegrationByIdErrors, ThrowOnError, "fields">;
|
|
180
|
+
/**
|
|
181
|
+
* Get list of integrations
|
|
182
|
+
*
|
|
183
|
+
* Returns integrations for the given workspace.
|
|
184
|
+
*/
|
|
185
|
+
listIntegrations2<ThrowOnError extends boolean = true>(options: Options<ListIntegrations2Data, ThrowOnError>): RequestResult<ListIntegrations2Responses, ListIntegrations2Errors, ThrowOnError, "fields">;
|
|
186
|
+
/**
|
|
187
|
+
* Revoke integration tokens
|
|
188
|
+
*
|
|
189
|
+
* Revokes the integration tokens with the given client ID.
|
|
190
|
+
*/
|
|
191
|
+
revokeIntegrationTokens<ThrowOnError extends boolean = true>(options: Options<RevokeIntegrationTokensData, ThrowOnError>): RequestResult<RevokeIntegrationTokensResponses, RevokeIntegrationTokensErrors, ThrowOnError, "fields">;
|
|
192
|
+
/**
|
|
193
|
+
* Get all regions
|
|
194
|
+
*
|
|
195
|
+
* Returns all available regions across products. Optionally filter by product.
|
|
196
|
+
*/
|
|
197
|
+
getAllRegions<ThrowOnError extends boolean = true>(options?: Options<GetAllRegionsData, ThrowOnError>): RequestResult<GetAllRegionsResponses, GetAllRegionsErrors, ThrowOnError, "fields">;
|
|
198
|
+
/**
|
|
199
|
+
* Get Prisma Postgres regions
|
|
200
|
+
*
|
|
201
|
+
* Returns all available regions for Prisma Postgres.
|
|
202
|
+
*/
|
|
203
|
+
getPrismaPostgresRegions<ThrowOnError extends boolean = true>(options?: Options<GetPrismaPostgresRegionsData, ThrowOnError>): RequestResult<GetPrismaPostgresRegionsResponses, GetPrismaPostgresRegionsErrors, ThrowOnError, "fields">;
|
|
204
|
+
/**
|
|
205
|
+
* Get Prisma Accelerate regions
|
|
206
|
+
*
|
|
207
|
+
* Returns all available regions for Prisma Accelerate.
|
|
208
|
+
*/
|
|
209
|
+
getPrismaAccelerateRegions<ThrowOnError extends boolean = true>(options?: Options<GetPrismaAccelerateRegionsData, ThrowOnError>): RequestResult<GetPrismaAccelerateRegionsResponses, GetPrismaAccelerateRegionsErrors, ThrowOnError, "fields">;
|
|
210
|
+
/**
|
|
211
|
+
* Get list of workspaces
|
|
212
|
+
*
|
|
213
|
+
* Returns the list of workspaces the current token can access.
|
|
214
|
+
*/
|
|
215
|
+
listWorkspaces<ThrowOnError extends boolean = true>(options?: Options<ListWorkspacesData, ThrowOnError>): RequestResult<ListWorkspacesResponses, ListWorkspacesErrors, ThrowOnError, "fields">;
|
|
216
|
+
/**
|
|
217
|
+
* Get workspace
|
|
218
|
+
*
|
|
219
|
+
* Returns the workspace with the given ID.
|
|
220
|
+
*/
|
|
221
|
+
getWorkspace<ThrowOnError extends boolean = true>(options: Options<GetWorkspaceData, ThrowOnError>): RequestResult<GetWorkspaceResponses, GetWorkspaceErrors, ThrowOnError, "fields">;
|
|
222
|
+
}
|
|
223
|
+
declare type __ΩOptions = any[];
|
|
224
|
+
//#endregion
|
|
225
|
+
export { Options, PrismaClient, __ΩOptions };
|
|
226
|
+
//# sourceMappingURL=sdk.gen.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.mts","names":[],"sources":["../../src/api/sdk.gen.ts"],"sourcesContent":[],"mappings":";;;;KAMY,sBAAsB,aAAa,sDAAsD,UAAS,OAAO;;AAArH;;;;EAAqH,MAAA,CAAA,EAMxG,MANwG;EAAhB;;;;EAc/F,IAAA,CAAA,EAHK,MAGL,CAAA,MAAY,EAAA,OACI,CAAA;AAGC,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,CAAA,EAkBG,aAlBH,CAkBG,iCAlBH,EAkBG,8BAlBH,EAkBG,YAlBH,EAAA,QAAA,CAAA;EASnD;;;;;EAAgC,0BAAA,CAAA,qBAAA,OAAA,GAAA,IAAA,CAAA,CAAA,OAAA,CAAA,EAkB3B,OAlB2B,CAkBnB,8BAlBmB,EAkBa,YAlBb,CAAA,CAAA,EAkB0B,aAlB1B,CAkB0B,mCAlB1B,EAkB0B,gCAlB1B,EAkB0B,YAlB1B,EAAA,QAAA,CAAA;EAAA;;;;;EASsB,cAAA,CAAA,qBAAA,OAAA,GAAA,IAAA,CAAA,CAAA,OAAA,CAAA,EAkB7D,OAlB6D,CAkBrD,kBAlBqD,EAkBjC,YAlBiC,CAAA,CAAA,EAkBpB,aAlBoB,CAkBpB,uBAlBoB,EAkBpB,oBAlBoB,EAkBpB,YAlBoB,EAAA,QAAA,CAAA;EAAA;;;;;EASI,YAAA,CAAA,qBAAA,OAAA,GAAA,IAAA,CAAA,CAAA,OAAA,EAkBpE,OAlBoE,CAkB5D,gBAlB4D,EAkB1C,YAlB0C,CAAA,CAAA,EAkB7B,aAlB6B,CAkB7B,qBAlB6B,EAkB7B,kBAlB6B,EAkB7B,YAlB6B,EAAA,QAAA,CAAA;;AAAA,0BAAA,GAAA,EAAA"}
|
package/dist/api/sdk.gen.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../src/api/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from './client';\nimport { client } from './client.gen';\nimport type { CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, CreateDatabase2Data, CreateDatabase2Errors, CreateDatabase2Responses, CreateDatabaseConnectionStringData, CreateDatabaseConnectionStringErrors, CreateDatabaseConnectionStringResponses, CreateDatabaseData, CreateDatabaseErrors, CreateDatabaseResponses, CreateProjectWithPostgresDatabaseData, CreateProjectWithPostgresDatabaseErrors, CreateProjectWithPostgresDatabaseResponses, DeleteConnectionData, DeleteConnectionErrors, DeleteConnectionResponses, DeleteDatabaseData, DeleteDatabaseErrors, DeleteDatabaseResponses, DeleteIntegrationData, DeleteIntegrationErrors, DeleteIntegrationResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, GetAllRegionsData, GetAllRegionsErrors, GetAllRegionsResponses, GetConnectionData, GetConnectionErrors, GetConnectionResponses, GetDatabaseData, GetDatabaseErrors, GetDatabaseResponses, GetDatabaseUsageMetricsData, GetDatabaseUsageMetricsErrors, GetDatabaseUsageMetricsResponses, GetIntegrationByIdData, GetIntegrationByIdErrors, GetIntegrationByIdResponses, GetPrismaAccelerateRegionsData, GetPrismaAccelerateRegionsErrors, GetPrismaAccelerateRegionsResponses, GetPrismaPostgresRegionsData, GetPrismaPostgresRegionsErrors, GetPrismaPostgresRegionsResponses, GetProjectData, GetProjectErrors, GetProjectResponses, GetWorkspaceData, GetWorkspaceErrors, GetWorkspaceResponses, ListBackupsData, ListBackupsErrors, ListBackupsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListDatabaseConnectionsData, ListDatabaseConnectionsErrors, ListDatabaseConnectionsResponses, ListDatabases2Data, ListDatabases2Errors, ListDatabases2Responses, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListIntegrations2Data, ListIntegrations2Errors, ListIntegrations2Responses, ListIntegrationsData, ListIntegrationsErrors, ListIntegrationsResponses, ListProjectsData, ListProjectsErrors, ListProjectsResponses, ListWorkspacesData, ListWorkspacesErrors, ListWorkspacesResponses, RevokeIntegrationTokensData, RevokeIntegrationTokensErrors, RevokeIntegrationTokensResponses, TransferProjectData, TransferProjectErrors, TransferProjectResponses, UpdateDatabaseData, UpdateDatabaseErrors, UpdateDatabaseResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\nclass HeyApiClient {\n protected client: Client;\n \n constructor(args?: {\n client?: Client;\n }) {\n this.client = args?.client ?? client;\n }\n}\n\nclass HeyApiRegistry<T> {\n private readonly defaultKey = 'default';\n \n private readonly instances: Map<string, T> = new Map();\n \n get(key?: string): T {\n const instance = this.instances.get(key ?? this.defaultKey);\n if (!instance) {\n throw new Error(`No SDK client found. Create one with \"new PrismaClient()\" to fix this error.`);\n }\n return instance;\n }\n \n set(value: T, key?: string): void {\n this.instances.set(key ?? this.defaultKey, value);\n }\n}\n\nexport class PrismaClient extends HeyApiClient {\n public static readonly __registry = new HeyApiRegistry<PrismaClient>();\n \n constructor(args?: {\n client?: Client;\n key?: string;\n }) {\n super(args);\n PrismaClient.__registry.set(this, args?.key);\n }\n \n /**\n * List connections\n *\n * Returns all connections the actor has access to, with optional database filter.\n */\n public listConnections<ThrowOnError extends boolean = true>(options?: Options<ListConnectionsData, ThrowOnError>) {\n return (options?.client ?? this.client).get<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>({ url: '/v1/connections', ...options });\n }\n \n /**\n * Create connection\n *\n * Creates a new connection for the specified database.\n */\n public createConnection<ThrowOnError extends boolean = true>(options?: Options<CreateConnectionData, ThrowOnError>) {\n return (options?.client ?? this.client).post<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>({\n url: '/v1/connections',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n });\n }\n \n /**\n * Delete connection\n *\n * Deletes the connection with the given ID.\n */\n public deleteConnection<ThrowOnError extends boolean = true>(options: Options<DeleteConnectionData, ThrowOnError>) {\n return (options.client ?? this.client).delete<DeleteConnectionResponses, DeleteConnectionErrors, ThrowOnError>({ url: '/v1/connections/{id}', ...options });\n }\n \n /**\n * Get connection\n *\n * Returns the connection with the given ID.\n */\n public getConnection<ThrowOnError extends boolean = true>(options: Options<GetConnectionData, ThrowOnError>) {\n return (options.client ?? this.client).get<GetConnectionResponses, GetConnectionErrors, ThrowOnError>({ url: '/v1/connections/{id}', ...options });\n }\n \n /**\n * List databases\n *\n * Returns all databases the token has access to. Optionally filter by project ID.\n */\n public listDatabases<ThrowOnError extends boolean = true>(options?: Options<ListDatabasesData, ThrowOnError>) {\n return (options?.client ?? this.client).get<ListDatabasesResponses, ListDatabasesErrors, ThrowOnError>({ url: '/v1/databases', ...options });\n }\n \n /**\n * Create database\n *\n * Creates a new database in the specified project.\n */\n public createDatabase<ThrowOnError extends boolean = true>(options?: Options<CreateDatabaseData, ThrowOnError>) {\n return (options?.client ?? this.client).post<CreateDatabaseResponses, CreateDatabaseErrors, ThrowOnError>({\n url: '/v1/databases',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n });\n }\n \n /**\n * Delete database\n *\n * Deletes the database with the given ID.\n */\n public deleteDatabase<ThrowOnError extends boolean = true>(options: Options<DeleteDatabaseData, ThrowOnError>) {\n return (options.client ?? this.client).delete<DeleteDatabaseResponses, DeleteDatabaseErrors, ThrowOnError>({ url: '/v1/databases/{databaseId}', ...options });\n }\n \n /**\n * Get database\n *\n * Returns the database with the given ID.\n */\n public getDatabase<ThrowOnError extends boolean = true>(options: Options<GetDatabaseData, ThrowOnError>) {\n return (options.client ?? this.client).get<GetDatabaseResponses, GetDatabaseErrors, ThrowOnError>({ url: '/v1/databases/{databaseId}', ...options });\n }\n \n /**\n * Update database\n *\n * Updates the database with the given ID.\n */\n public updateDatabase<ThrowOnError extends boolean = true>(options: Options<UpdateDatabaseData, ThrowOnError>) {\n return (options.client ?? this.client).patch<UpdateDatabaseResponses, UpdateDatabaseErrors, ThrowOnError>({\n url: '/v1/databases/{databaseId}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n });\n }\n \n /**\n * Get list of database connections\n *\n * Returns all connections for the given database.\n */\n public listDatabaseConnections<ThrowOnError extends boolean = true>(options: Options<ListDatabaseConnectionsData, ThrowOnError>) {\n return (options.client ?? this.client).get<ListDatabaseConnectionsResponses, ListDatabaseConnectionsErrors, ThrowOnError>({ url: '/v1/databases/{databaseId}/connections', ...options });\n }\n \n /**\n * Create database connection string\n *\n * Creates a new connection string for the given database.\n */\n public createDatabaseConnectionString<ThrowOnError extends boolean = true>(options: Options<CreateDatabaseConnectionStringData, ThrowOnError>) {\n return (options.client ?? this.client).post<CreateDatabaseConnectionStringResponses, CreateDatabaseConnectionStringErrors, ThrowOnError>({\n url: '/v1/databases/{databaseId}/connections',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n });\n }\n \n /**\n * Get list of backups\n *\n * Returns backups for the specified database.\n */\n public listBackups<ThrowOnError extends boolean = true>(options: Options<ListBackupsData, ThrowOnError>) {\n return (options.client ?? this.client).get<ListBackupsResponses, ListBackupsErrors, ThrowOnError>({ url: '/v1/databases/{databaseId}/backups', ...options });\n }\n \n /**\n * Get database usage metrics\n *\n * Returns usage metrics for the specified database.\n */\n public getDatabaseUsageMetrics<ThrowOnError extends boolean = true>(options: Options<GetDatabaseUsageMetricsData, ThrowOnError>) {\n return (options.client ?? this.client).get<GetDatabaseUsageMetricsResponses, GetDatabaseUsageMetricsErrors, ThrowOnError>({ url: '/v1/databases/{databaseId}/usage', ...options });\n }\n \n /**\n * Get list of projects\n *\n * Returns the list of projects the token has access to.\n */\n public listProjects<ThrowOnError extends boolean = true>(options?: Options<ListProjectsData, ThrowOnError>) {\n return (options?.client ?? this.client).get<ListProjectsResponses, ListProjectsErrors, ThrowOnError>({ url: '/v1/projects', ...options });\n }\n \n /**\n * Create project with a postgres database\n *\n * Creates a new project with a postgres database.\n */\n public createProjectWithPostgresDatabase<ThrowOnError extends boolean = true>(options?: Options<CreateProjectWithPostgresDatabaseData, ThrowOnError>) {\n return (options?.client ?? this.client).post<CreateProjectWithPostgresDatabaseResponses, CreateProjectWithPostgresDatabaseErrors, ThrowOnError>({\n url: '/v1/projects',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options?.headers\n }\n });\n }\n \n /**\n * Delete project\n *\n * Deletes the project with the given ID.\n */\n public deleteProject<ThrowOnError extends boolean = true>(options: Options<DeleteProjectData, ThrowOnError>) {\n return (options.client ?? this.client).delete<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError>({ url: '/v1/projects/{id}', ...options });\n }\n \n /**\n * Get project\n *\n * Returns the project with the given ID.\n */\n public getProject<ThrowOnError extends boolean = true>(options: Options<GetProjectData, ThrowOnError>) {\n return (options.client ?? this.client).get<GetProjectResponses, GetProjectErrors, ThrowOnError>({ url: '/v1/projects/{id}', ...options });\n }\n \n /**\n * Update project\n *\n * Updates the project with the given ID.\n */\n public updateProject<ThrowOnError extends boolean = true>(options: Options<UpdateProjectData, ThrowOnError>) {\n return (options.client ?? this.client).patch<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError>({\n url: '/v1/projects/{id}',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n });\n }\n \n /**\n * Transfer project\n *\n * Transfer the project with the given ID to the new owner's workspace\n */\n public transferProject<ThrowOnError extends boolean = true>(options: Options<TransferProjectData, ThrowOnError>) {\n return (options.client ?? this.client).post<TransferProjectResponses, TransferProjectErrors, ThrowOnError>({\n url: '/v1/projects/{id}/transfer',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n });\n }\n \n /**\n * Get list of databases\n *\n * Returns databases for the given project.\n */\n public listDatabases2<ThrowOnError extends boolean = true>(options: Options<ListDatabases2Data, ThrowOnError>) {\n return (options.client ?? this.client).get<ListDatabases2Responses, ListDatabases2Errors, ThrowOnError>({ url: '/v1/projects/{projectId}/databases', ...options });\n }\n \n /**\n * Create database\n *\n * Creates a new database for the given project.\n */\n public createDatabase2<ThrowOnError extends boolean = true>(options: Options<CreateDatabase2Data, ThrowOnError>) {\n return (options.client ?? this.client).post<CreateDatabase2Responses, CreateDatabase2Errors, ThrowOnError>({\n url: '/v1/projects/{projectId}/databases',\n ...options,\n headers: {\n 'Content-Type': 'application/json',\n ...options.headers\n }\n });\n }\n \n /**\n * Get list of integrations\n *\n * Returns integrations filtered by workspace ID.\n */\n public listIntegrations<ThrowOnError extends boolean = true>(options: Options<ListIntegrationsData, ThrowOnError>) {\n return (options.client ?? this.client).get<ListIntegrationsResponses, ListIntegrationsErrors, ThrowOnError>({ url: '/v1/integrations', ...options });\n }\n \n /**\n * Delete integration\n *\n * Revokes the integration tokens by integration ID.\n */\n public deleteIntegration<ThrowOnError extends boolean = true>(options: Options<DeleteIntegrationData, ThrowOnError>) {\n return (options.client ?? this.client).delete<DeleteIntegrationResponses, DeleteIntegrationErrors, ThrowOnError>({ url: '/v1/integrations/{id}', ...options });\n }\n \n /**\n * Get integration by ID\n *\n * Returns a single integration by its ID.\n */\n public getIntegrationById<ThrowOnError extends boolean = true>(options: Options<GetIntegrationByIdData, ThrowOnError>) {\n return (options.client ?? this.client).get<GetIntegrationByIdResponses, GetIntegrationByIdErrors, ThrowOnError>({ url: '/v1/integrations/{id}', ...options });\n }\n \n /**\n * Get list of integrations\n *\n * Returns integrations for the given workspace.\n */\n public listIntegrations2<ThrowOnError extends boolean = true>(options: Options<ListIntegrations2Data, ThrowOnError>) {\n return (options.client ?? this.client).get<ListIntegrations2Responses, ListIntegrations2Errors, ThrowOnError>({ url: '/v1/workspaces/{workspaceId}/integrations', ...options });\n }\n \n /**\n * Revoke integration tokens\n *\n * Revokes the integration tokens with the given client ID.\n */\n public revokeIntegrationTokens<ThrowOnError extends boolean = true>(options: Options<RevokeIntegrationTokensData, ThrowOnError>) {\n return (options.client ?? this.client).delete<RevokeIntegrationTokensResponses, RevokeIntegrationTokensErrors, ThrowOnError>({ url: '/v1/workspaces/{workspaceId}/integrations/{clientId}', ...options });\n }\n \n /**\n * Get all regions\n *\n * Returns all available regions across products. Optionally filter by product.\n */\n public getAllRegions<ThrowOnError extends boolean = true>(options?: Options<GetAllRegionsData, ThrowOnError>) {\n return (options?.client ?? this.client).get<GetAllRegionsResponses, GetAllRegionsErrors, ThrowOnError>({ url: '/v1/regions', ...options });\n }\n \n /**\n * Get Prisma Postgres regions\n *\n * Returns all available regions for Prisma Postgres.\n */\n public getPrismaPostgresRegions<ThrowOnError extends boolean = true>(options?: Options<GetPrismaPostgresRegionsData, ThrowOnError>) {\n return (options?.client ?? this.client).get<GetPrismaPostgresRegionsResponses, GetPrismaPostgresRegionsErrors, ThrowOnError>({ url: '/v1/regions/postgres', ...options });\n }\n \n /**\n * Get Prisma Accelerate regions\n *\n * Returns all available regions for Prisma Accelerate.\n */\n public getPrismaAccelerateRegions<ThrowOnError extends boolean = true>(options?: Options<GetPrismaAccelerateRegionsData, ThrowOnError>) {\n return (options?.client ?? this.client).get<GetPrismaAccelerateRegionsResponses, GetPrismaAccelerateRegionsErrors, ThrowOnError>({ url: '/v1/regions/accelerate', ...options });\n }\n \n /**\n * Get list of workspaces\n *\n * Returns the list of workspaces the current token can access.\n */\n public listWorkspaces<ThrowOnError extends boolean = true>(options?: Options<ListWorkspacesData, ThrowOnError>) {\n return (options?.client ?? this.client).get<ListWorkspacesResponses, ListWorkspacesErrors, ThrowOnError>({ url: '/v1/workspaces', ...options });\n }\n \n /**\n * Get workspace\n *\n * Returns the workspace with the given ID.\n */\n public getWorkspace<ThrowOnError extends boolean = true>(options: Options<GetWorkspaceData, ThrowOnError>) {\n return (options.client ?? this.client).get<GetWorkspaceResponses, GetWorkspaceErrors, ThrowOnError>({ url: '/v1/workspaces/{id}', ...options });\n }\n}\n"],"mappings":";;;AAoBA,IAAM,eAAN,MAAmB;CACf,AAAU;CAEV,YAAY,MAET;AACC,OAAK,SAAS,MAAM,UAAU;;;AAItC,IAAM,iBAAN,MAAwB;CACpB,AAAiB,aAAa;CAE9B,AAAiB,4BAA4B,IAAI,KAAK;CAEtD,I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