@powerlines/plugin-prisma 0.2.243 → 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.
Files changed (119) hide show
  1. package/dist/api/client/client.gen.d.cts +7 -0
  2. package/dist/api/client/client.gen.d.cts.map +1 -0
  3. package/dist/api/client/client.gen.d.mts +7 -0
  4. package/dist/api/client/client.gen.d.mts.map +1 -0
  5. package/dist/api/client/client.gen.mjs +2 -1
  6. package/dist/api/client/client.gen.mjs.map +1 -0
  7. package/dist/api/client/index.d.cts +8 -0
  8. package/dist/api/client/index.d.mts +8 -0
  9. package/dist/api/client/types.gen.d.cts +131 -0
  10. package/dist/api/client/types.gen.d.cts.map +1 -0
  11. package/dist/api/client/types.gen.d.mts +131 -0
  12. package/dist/api/client/types.gen.d.mts.map +1 -0
  13. package/dist/api/client/utils.gen.d.cts +44 -0
  14. package/dist/api/client/utils.gen.d.cts.map +1 -0
  15. package/dist/api/client/utils.gen.d.mts +44 -0
  16. package/dist/api/client/utils.gen.d.mts.map +1 -0
  17. package/dist/api/client/utils.gen.mjs +2 -1
  18. package/dist/api/client/utils.gen.mjs.map +1 -0
  19. package/dist/api/client.gen.d.cts +19 -0
  20. package/dist/api/client.gen.d.cts.map +1 -0
  21. package/dist/api/client.gen.d.mts +19 -0
  22. package/dist/api/client.gen.d.mts.map +1 -0
  23. package/dist/api/client.gen.mjs +2 -1
  24. package/dist/api/client.gen.mjs.map +1 -0
  25. package/dist/api/core/auth.gen.d.cts +24 -0
  26. package/dist/api/core/auth.gen.d.cts.map +1 -0
  27. package/dist/api/core/auth.gen.d.mts +24 -0
  28. package/dist/api/core/auth.gen.d.mts.map +1 -0
  29. package/dist/api/core/auth.gen.mjs +2 -1
  30. package/dist/api/core/auth.gen.mjs.map +1 -0
  31. package/dist/api/core/bodySerializer.gen.d.cts +32 -0
  32. package/dist/api/core/bodySerializer.gen.d.cts.map +1 -0
  33. package/dist/api/core/bodySerializer.gen.d.mts +32 -0
  34. package/dist/api/core/bodySerializer.gen.d.mts.map +1 -0
  35. package/dist/api/core/bodySerializer.gen.mjs +2 -1
  36. package/dist/api/core/bodySerializer.gen.mjs.map +1 -0
  37. package/dist/api/core/params.gen.d.cts +49 -0
  38. package/dist/api/core/params.gen.d.cts.map +1 -0
  39. package/dist/api/core/params.gen.d.mts +49 -0
  40. package/dist/api/core/params.gen.d.mts.map +1 -0
  41. package/dist/api/core/params.gen.mjs +2 -1
  42. package/dist/api/core/params.gen.mjs.map +1 -0
  43. package/dist/api/core/pathSerializer.gen.d.cts +56 -0
  44. package/dist/api/core/pathSerializer.gen.d.cts.map +1 -0
  45. package/dist/api/core/pathSerializer.gen.d.mts +56 -0
  46. package/dist/api/core/pathSerializer.gen.d.mts.map +1 -0
  47. package/dist/api/core/pathSerializer.gen.mjs +2 -1
  48. package/dist/api/core/pathSerializer.gen.mjs.map +1 -0
  49. package/dist/api/core/queryKeySerializer.gen.d.cts +23 -0
  50. package/dist/api/core/queryKeySerializer.gen.d.cts.map +1 -0
  51. package/dist/api/core/queryKeySerializer.gen.d.mts +23 -0
  52. package/dist/api/core/queryKeySerializer.gen.d.mts.map +1 -0
  53. package/dist/api/core/queryKeySerializer.gen.mjs +2 -1
  54. package/dist/api/core/queryKeySerializer.gen.mjs.map +1 -0
  55. package/dist/api/core/serverSentEvents.gen.d.cts +91 -0
  56. package/dist/api/core/serverSentEvents.gen.d.cts.map +1 -0
  57. package/dist/api/core/serverSentEvents.gen.d.mts +91 -0
  58. package/dist/api/core/serverSentEvents.gen.d.mts.map +1 -0
  59. package/dist/api/core/serverSentEvents.gen.mjs +2 -1
  60. package/dist/api/core/serverSentEvents.gen.mjs.map +1 -0
  61. package/dist/api/core/types.gen.d.cts +80 -0
  62. package/dist/api/core/types.gen.d.cts.map +1 -0
  63. package/dist/api/core/types.gen.d.mts +80 -0
  64. package/dist/api/core/types.gen.d.mts.map +1 -0
  65. package/dist/api/core/utils.gen.d.cts +34 -0
  66. package/dist/api/core/utils.gen.d.cts.map +1 -0
  67. package/dist/api/core/utils.gen.d.mts +34 -0
  68. package/dist/api/core/utils.gen.d.mts.map +1 -0
  69. package/dist/api/core/utils.gen.mjs +2 -1
  70. package/dist/api/core/utils.gen.mjs.map +1 -0
  71. package/dist/api/sdk.gen.cjs +154 -6
  72. package/dist/api/sdk.gen.d.cts +226 -0
  73. package/dist/api/sdk.gen.d.cts.map +1 -0
  74. package/dist/api/sdk.gen.d.mts +226 -0
  75. package/dist/api/sdk.gen.d.mts.map +1 -0
  76. package/dist/api/sdk.gen.mjs +156 -7
  77. package/dist/api/sdk.gen.mjs.map +1 -0
  78. package/dist/api/types.gen.d.cts +2365 -0
  79. package/dist/api/types.gen.d.cts.map +1 -0
  80. package/dist/api/types.gen.d.mts +2365 -0
  81. package/dist/api/types.gen.d.mts.map +1 -0
  82. package/dist/helpers/get-schema.d.cts +14 -0
  83. package/dist/helpers/get-schema.d.cts.map +1 -0
  84. package/dist/helpers/get-schema.d.mts +14 -0
  85. package/dist/helpers/get-schema.d.mts.map +1 -0
  86. package/dist/helpers/get-schema.mjs +2 -1
  87. package/dist/helpers/get-schema.mjs.map +1 -0
  88. package/dist/helpers/index.d.cts +4 -0
  89. package/dist/helpers/index.d.mts +4 -0
  90. package/dist/helpers/prisma-postgres.d.cts +65 -0
  91. package/dist/helpers/prisma-postgres.d.cts.map +1 -0
  92. package/dist/helpers/prisma-postgres.d.mts +65 -0
  93. package/dist/helpers/prisma-postgres.d.mts.map +1 -0
  94. package/dist/helpers/prisma-postgres.mjs +2 -1
  95. package/dist/helpers/prisma-postgres.mjs.map +1 -0
  96. package/dist/helpers/schema-creator.d.cts +21 -0
  97. package/dist/helpers/schema-creator.d.cts.map +1 -0
  98. package/dist/helpers/schema-creator.d.mts +21 -0
  99. package/dist/helpers/schema-creator.d.mts.map +1 -0
  100. package/dist/helpers/schema-creator.mjs +2 -1
  101. package/dist/helpers/schema-creator.mjs.map +1 -0
  102. package/dist/index.cjs +18 -24
  103. package/dist/index.d.cts +24 -0
  104. package/dist/index.d.cts.map +1 -0
  105. package/dist/index.d.mts +24 -0
  106. package/dist/index.d.mts.map +1 -0
  107. package/dist/index.mjs +16 -21
  108. package/dist/index.mjs.map +1 -0
  109. package/dist/types/index.d.cts +3 -0
  110. package/dist/types/index.d.mts +3 -0
  111. package/dist/types/plugin.d.cts +91 -0
  112. package/dist/types/plugin.d.cts.map +1 -0
  113. package/dist/types/plugin.d.mts +91 -0
  114. package/dist/types/plugin.d.mts.map +1 -0
  115. package/dist/types/prisma.d.cts +85 -0
  116. package/dist/types/prisma.d.cts.map +1 -0
  117. package/dist/types/prisma.d.mts +85 -0
  118. package/dist/types/prisma.d.mts.map +1 -0
  119. package/package.json +8 -7
@@ -0,0 +1,226 @@
1
+ import { Client, Options as Options$1, RequestResult, TDataShape } from "./client/types.gen.cjs";
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.cjs";
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.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.gen.d.cts","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,CAAA;AAwBvB,cA5BM,YAAA,CA4BoB;EACW,UAAA,MAAA,EA5Bf,MA4Be;EAAA,WAAA,CAAA,IAe6C,CAf7C,EAAA;IAGpB,MAAA,CAAA,EA5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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"}
@@ -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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