@allbluecn/database 0.10.1 → 0.12.0

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/generated/internal/class.ts +4 -4
  2. package/generated/internal/prismaNamespace.ts +4 -1
  3. package/generated/internal/prismaNamespaceBrowser.ts +4 -1
  4. package/generated/models/Label.ts +199 -3
  5. package/generated/models/Plan.ts +77 -1
  6. package/generated/models/Project.ts +264 -0
  7. package/index.ts +14 -17
  8. package/migrations/20261029000000_plan_install_blob_quota/migration.sql +3 -0
  9. package/migrations/20261029000001_label_project_ownership/migration.sql +16 -0
  10. package/package.json +29 -21
  11. package/pglite-init.ts +75 -0
  12. package/schema.prisma +12 -1
  13. package/LICENSE +0 -661
  14. package/desktop-init.ts +0 -162
  15. package/generated-sqlite/browser.ts +0 -499
  16. package/generated-sqlite/client.ts +0 -523
  17. package/generated-sqlite/commonInputTypes.ts +0 -722
  18. package/generated-sqlite/enums.ts +0 -15
  19. package/generated-sqlite/internal/class.ts +0 -1154
  20. package/generated-sqlite/internal/prismaNamespace.ts +0 -9574
  21. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -1759
  22. package/generated-sqlite/models/AgentConversation.ts +0 -1647
  23. package/generated-sqlite/models/AgentMessage.ts +0 -1406
  24. package/generated-sqlite/models/AiProvider.ts +0 -1605
  25. package/generated-sqlite/models/AiProviderConfig.ts +0 -1610
  26. package/generated-sqlite/models/AiStreamChunk.ts +0 -1157
  27. package/generated-sqlite/models/AiUsageLog.ts +0 -1905
  28. package/generated-sqlite/models/AnyHubApp.ts +0 -1908
  29. package/generated-sqlite/models/AnyHubMarketApp.ts +0 -1997
  30. package/generated-sqlite/models/AnyHubPermission.ts +0 -1419
  31. package/generated-sqlite/models/AnyHubRecommendation.ts +0 -1867
  32. package/generated-sqlite/models/AnyHubRecommender.ts +0 -1467
  33. package/generated-sqlite/models/ArticleFavorite.ts +0 -1349
  34. package/generated-sqlite/models/AuditLog.ts +0 -1287
  35. package/generated-sqlite/models/Blob.ts +0 -1425
  36. package/generated-sqlite/models/Block.ts +0 -1648
  37. package/generated-sqlite/models/BlockComponent.ts +0 -1730
  38. package/generated-sqlite/models/BlockInstance.ts +0 -2039
  39. package/generated-sqlite/models/BookmarkCategory.ts +0 -1667
  40. package/generated-sqlite/models/BusinessAgentBinding.ts +0 -1549
  41. package/generated-sqlite/models/ChatInterrupt.ts +0 -1736
  42. package/generated-sqlite/models/ChatMessage.ts +0 -1464
  43. package/generated-sqlite/models/ChatPersistenceMeta.ts +0 -1119
  44. package/generated-sqlite/models/ChatRun.ts +0 -1802
  45. package/generated-sqlite/models/ChatThread.ts +0 -2417
  46. package/generated-sqlite/models/CodeSnippet.ts +0 -1552
  47. package/generated-sqlite/models/Comment.ts +0 -2201
  48. package/generated-sqlite/models/CommentIgnore.ts +0 -1426
  49. package/generated-sqlite/models/ComplianceExport.ts +0 -1343
  50. package/generated-sqlite/models/Component.ts +0 -2132
  51. package/generated-sqlite/models/ComponentInstance.ts +0 -2097
  52. package/generated-sqlite/models/CustomRole.ts +0 -1209
  53. package/generated-sqlite/models/Design.ts +0 -2497
  54. package/generated-sqlite/models/DesignPage.ts +0 -2398
  55. package/generated-sqlite/models/DesignVersion.ts +0 -2117
  56. package/generated-sqlite/models/DesktopSetting.ts +0 -1057
  57. package/generated-sqlite/models/DeveloperLog.ts +0 -1281
  58. package/generated-sqlite/models/DictionaryTerm.ts +0 -1639
  59. package/generated-sqlite/models/EmailLog.ts +0 -1343
  60. package/generated-sqlite/models/EmailPreference.ts +0 -1255
  61. package/generated-sqlite/models/EmailSubscriber.ts +0 -1231
  62. package/generated-sqlite/models/EmailVerificationToken.ts +0 -1377
  63. package/generated-sqlite/models/GenerationRun.ts +0 -1732
  64. package/generated-sqlite/models/HarnessPlugin.ts +0 -1666
  65. package/generated-sqlite/models/HarnessWorkspace.ts +0 -1647
  66. package/generated-sqlite/models/IndustryCompliance.ts +0 -1794
  67. package/generated-sqlite/models/InvitationCode.ts +0 -1471
  68. package/generated-sqlite/models/InvitationUse.ts +0 -1420
  69. package/generated-sqlite/models/Invoice.ts +0 -1707
  70. package/generated-sqlite/models/Iteration.ts +0 -1874
  71. package/generated-sqlite/models/IterationAutoSchedule.ts +0 -1483
  72. package/generated-sqlite/models/KnowledgeBase.ts +0 -2238
  73. package/generated-sqlite/models/KnowledgeDocument.ts +0 -2450
  74. package/generated-sqlite/models/KnowledgeShareRecord.ts +0 -1349
  75. package/generated-sqlite/models/LegalRegulation.ts +0 -1905
  76. package/generated-sqlite/models/LicenseActivation.ts +0 -1203
  77. package/generated-sqlite/models/LicenseKey.ts +0 -1443
  78. package/generated-sqlite/models/LoginLog.ts +0 -1447
  79. package/generated-sqlite/models/NotificationPreference.ts +0 -1313
  80. package/generated-sqlite/models/OAuthProviderConfig.ts +0 -1225
  81. package/generated-sqlite/models/PageVersion.ts +0 -1520
  82. package/generated-sqlite/models/PasswordResetToken.ts +0 -1377
  83. package/generated-sqlite/models/Plan.ts +0 -2174
  84. package/generated-sqlite/models/Project.ts +0 -2628
  85. package/generated-sqlite/models/ProjectActivity.ts +0 -1578
  86. package/generated-sqlite/models/ProjectKnowledgeBase.ts +0 -1426
  87. package/generated-sqlite/models/ProjectMember.ts +0 -1508
  88. package/generated-sqlite/models/ProviderEvent.ts +0 -1225
  89. package/generated-sqlite/models/Reference.ts +0 -1175
  90. package/generated-sqlite/models/Review.ts +0 -1903
  91. package/generated-sqlite/models/ReviewComment.ts +0 -1899
  92. package/generated-sqlite/models/RoleAssignment.ts +0 -1125
  93. package/generated-sqlite/models/SandboxInstance.ts +0 -1283
  94. package/generated-sqlite/models/Share.ts +0 -1674
  95. package/generated-sqlite/models/ShareVersion.ts +0 -1385
  96. package/generated-sqlite/models/SsoMapping.ts +0 -1181
  97. package/generated-sqlite/models/SsoProvider.ts +0 -1266
  98. package/generated-sqlite/models/Story.ts +0 -3263
  99. package/generated-sqlite/models/Subscription.ts +0 -2137
  100. package/generated-sqlite/models/SystemPromptTemplate.ts +0 -1581
  101. package/generated-sqlite/models/SystemPromptVersion.ts +0 -1456
  102. package/generated-sqlite/models/SystemSetting.ts +0 -1215
  103. package/generated-sqlite/models/TeamInvitation.ts +0 -1758
  104. package/generated-sqlite/models/TeamJoinRequest.ts +0 -1793
  105. package/generated-sqlite/models/TeamMembership.ts +0 -1433
  106. package/generated-sqlite/models/Template.ts +0 -1389
  107. package/generated-sqlite/models/TemplateBlock.ts +0 -1660
  108. package/generated-sqlite/models/ThirdPartyDependency.ts +0 -1471
  109. package/generated-sqlite/models/UsageRecord.ts +0 -1498
  110. package/generated-sqlite/models/User.ts +0 -21247
  111. package/generated-sqlite/models/UserAgent.ts +0 -2146
  112. package/generated-sqlite/models/UserSkill.ts +0 -1453
  113. package/generated-sqlite/models/WebsiteBookmark.ts +0 -2215
  114. package/generated-sqlite/models/Workspace.ts +0 -2341
  115. package/generated-sqlite/models/WorkspaceFile.ts +0 -1532
  116. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +0 -1426
  117. package/generated-sqlite/models/WorkspaceQuickDoc.ts +0 -2025
  118. package/generated-sqlite/models.ts +0 -107
  119. package/schema.sqlite.prisma +0 -2043
@@ -1,2174 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
- /* eslint-disable */
4
- // biome-ignore-all lint: generated file
5
- // @ts-nocheck
6
- /*
7
- * This file exports the `Plan` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model Plan
17
- * 订阅计划定义(seed 数据)
18
- */
19
- export type PlanModel = runtime.Types.Result.DefaultSelection<Prisma.$PlanPayload>
20
-
21
- export type AggregatePlan = {
22
- _count: PlanCountAggregateOutputType | null
23
- _avg: PlanAvgAggregateOutputType | null
24
- _sum: PlanSumAggregateOutputType | null
25
- _min: PlanMinAggregateOutputType | null
26
- _max: PlanMaxAggregateOutputType | null
27
- }
28
-
29
- export type PlanAvgAggregateOutputType = {
30
- priceMonthly: number | null
31
- priceYearly: number | null
32
- maxSeats: number | null
33
- maxGuestSeats: number | null
34
- maxWorkspaces: number | null
35
- aiQuotaMonthly: number | null
36
- sortOrder: number | null
37
- seatPriceMonthly: number | null
38
- agentQuota: number | null
39
- skillQuota: number | null
40
- sandboxMinutesMonthly: number | null
41
- mediaGenerationsMonthly: number | null
42
- galleryStorageMb: number | null
43
- }
44
-
45
- export type PlanSumAggregateOutputType = {
46
- priceMonthly: number | null
47
- priceYearly: number | null
48
- maxSeats: number | null
49
- maxGuestSeats: number | null
50
- maxWorkspaces: number | null
51
- aiQuotaMonthly: number | null
52
- sortOrder: number | null
53
- seatPriceMonthly: number | null
54
- agentQuota: number | null
55
- skillQuota: number | null
56
- sandboxMinutesMonthly: number | null
57
- mediaGenerationsMonthly: number | null
58
- galleryStorageMb: number | null
59
- }
60
-
61
- export type PlanMinAggregateOutputType = {
62
- id: string | null
63
- name: string | null
64
- displayName: string | null
65
- description: string | null
66
- priceMonthly: number | null
67
- priceYearly: number | null
68
- currency: string | null
69
- maxSeats: number | null
70
- maxGuestSeats: number | null
71
- maxWorkspaces: number | null
72
- aiQuotaMonthly: number | null
73
- isPublic: boolean | null
74
- sortOrder: number | null
75
- createdAt: Date | null
76
- updatedAt: Date | null
77
- providerPriceIdUsd: string | null
78
- providerPriceIdCny: string | null
79
- providerPriceIdUsdYearly: string | null
80
- providerPriceIdCnyYearly: string | null
81
- seatPriceMonthly: number | null
82
- providerSeatPriceIdUsd: string | null
83
- providerSeatPriceIdCny: string | null
84
- agentQuota: number | null
85
- skillQuota: number | null
86
- sandboxMinutesMonthly: number | null
87
- mediaGenerationsMonthly: number | null
88
- galleryStorageMb: number | null
89
- }
90
-
91
- export type PlanMaxAggregateOutputType = {
92
- id: string | null
93
- name: string | null
94
- displayName: string | null
95
- description: string | null
96
- priceMonthly: number | null
97
- priceYearly: number | null
98
- currency: string | null
99
- maxSeats: number | null
100
- maxGuestSeats: number | null
101
- maxWorkspaces: number | null
102
- aiQuotaMonthly: number | null
103
- isPublic: boolean | null
104
- sortOrder: number | null
105
- createdAt: Date | null
106
- updatedAt: Date | null
107
- providerPriceIdUsd: string | null
108
- providerPriceIdCny: string | null
109
- providerPriceIdUsdYearly: string | null
110
- providerPriceIdCnyYearly: string | null
111
- seatPriceMonthly: number | null
112
- providerSeatPriceIdUsd: string | null
113
- providerSeatPriceIdCny: string | null
114
- agentQuota: number | null
115
- skillQuota: number | null
116
- sandboxMinutesMonthly: number | null
117
- mediaGenerationsMonthly: number | null
118
- galleryStorageMb: number | null
119
- }
120
-
121
- export type PlanCountAggregateOutputType = {
122
- id: number
123
- name: number
124
- displayName: number
125
- description: number
126
- priceMonthly: number
127
- priceYearly: number
128
- currency: number
129
- maxSeats: number
130
- maxGuestSeats: number
131
- maxWorkspaces: number
132
- aiQuotaMonthly: number
133
- features: number
134
- isPublic: number
135
- sortOrder: number
136
- createdAt: number
137
- updatedAt: number
138
- providerPriceIdUsd: number
139
- providerPriceIdCny: number
140
- providerPriceIdUsdYearly: number
141
- providerPriceIdCnyYearly: number
142
- seatPriceMonthly: number
143
- providerSeatPriceIdUsd: number
144
- providerSeatPriceIdCny: number
145
- agentQuota: number
146
- skillQuota: number
147
- sandboxMinutesMonthly: number
148
- mediaGenerationsMonthly: number
149
- galleryStorageMb: number
150
- _all: number
151
- }
152
-
153
-
154
- export type PlanAvgAggregateInputType = {
155
- priceMonthly?: true
156
- priceYearly?: true
157
- maxSeats?: true
158
- maxGuestSeats?: true
159
- maxWorkspaces?: true
160
- aiQuotaMonthly?: true
161
- sortOrder?: true
162
- seatPriceMonthly?: true
163
- agentQuota?: true
164
- skillQuota?: true
165
- sandboxMinutesMonthly?: true
166
- mediaGenerationsMonthly?: true
167
- galleryStorageMb?: true
168
- }
169
-
170
- export type PlanSumAggregateInputType = {
171
- priceMonthly?: true
172
- priceYearly?: true
173
- maxSeats?: true
174
- maxGuestSeats?: true
175
- maxWorkspaces?: true
176
- aiQuotaMonthly?: true
177
- sortOrder?: true
178
- seatPriceMonthly?: true
179
- agentQuota?: true
180
- skillQuota?: true
181
- sandboxMinutesMonthly?: true
182
- mediaGenerationsMonthly?: true
183
- galleryStorageMb?: true
184
- }
185
-
186
- export type PlanMinAggregateInputType = {
187
- id?: true
188
- name?: true
189
- displayName?: true
190
- description?: true
191
- priceMonthly?: true
192
- priceYearly?: true
193
- currency?: true
194
- maxSeats?: true
195
- maxGuestSeats?: true
196
- maxWorkspaces?: true
197
- aiQuotaMonthly?: true
198
- isPublic?: true
199
- sortOrder?: true
200
- createdAt?: true
201
- updatedAt?: true
202
- providerPriceIdUsd?: true
203
- providerPriceIdCny?: true
204
- providerPriceIdUsdYearly?: true
205
- providerPriceIdCnyYearly?: true
206
- seatPriceMonthly?: true
207
- providerSeatPriceIdUsd?: true
208
- providerSeatPriceIdCny?: true
209
- agentQuota?: true
210
- skillQuota?: true
211
- sandboxMinutesMonthly?: true
212
- mediaGenerationsMonthly?: true
213
- galleryStorageMb?: true
214
- }
215
-
216
- export type PlanMaxAggregateInputType = {
217
- id?: true
218
- name?: true
219
- displayName?: true
220
- description?: true
221
- priceMonthly?: true
222
- priceYearly?: true
223
- currency?: true
224
- maxSeats?: true
225
- maxGuestSeats?: true
226
- maxWorkspaces?: true
227
- aiQuotaMonthly?: true
228
- isPublic?: true
229
- sortOrder?: true
230
- createdAt?: true
231
- updatedAt?: true
232
- providerPriceIdUsd?: true
233
- providerPriceIdCny?: true
234
- providerPriceIdUsdYearly?: true
235
- providerPriceIdCnyYearly?: true
236
- seatPriceMonthly?: true
237
- providerSeatPriceIdUsd?: true
238
- providerSeatPriceIdCny?: true
239
- agentQuota?: true
240
- skillQuota?: true
241
- sandboxMinutesMonthly?: true
242
- mediaGenerationsMonthly?: true
243
- galleryStorageMb?: true
244
- }
245
-
246
- export type PlanCountAggregateInputType = {
247
- id?: true
248
- name?: true
249
- displayName?: true
250
- description?: true
251
- priceMonthly?: true
252
- priceYearly?: true
253
- currency?: true
254
- maxSeats?: true
255
- maxGuestSeats?: true
256
- maxWorkspaces?: true
257
- aiQuotaMonthly?: true
258
- features?: true
259
- isPublic?: true
260
- sortOrder?: true
261
- createdAt?: true
262
- updatedAt?: true
263
- providerPriceIdUsd?: true
264
- providerPriceIdCny?: true
265
- providerPriceIdUsdYearly?: true
266
- providerPriceIdCnyYearly?: true
267
- seatPriceMonthly?: true
268
- providerSeatPriceIdUsd?: true
269
- providerSeatPriceIdCny?: true
270
- agentQuota?: true
271
- skillQuota?: true
272
- sandboxMinutesMonthly?: true
273
- mediaGenerationsMonthly?: true
274
- galleryStorageMb?: true
275
- _all?: true
276
- }
277
-
278
- export type PlanAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
279
- /**
280
- * Filter which Plan to aggregate.
281
- */
282
- where?: Prisma.PlanWhereInput
283
- /**
284
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
285
- *
286
- * Determine the order of Plans to fetch.
287
- */
288
- orderBy?: Prisma.PlanOrderByWithRelationInput | Prisma.PlanOrderByWithRelationInput[]
289
- /**
290
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
291
- *
292
- * Sets the start position
293
- */
294
- cursor?: Prisma.PlanWhereUniqueInput
295
- /**
296
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
297
- *
298
- * Take `±n` Plans from the position of the cursor.
299
- */
300
- take?: number
301
- /**
302
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
303
- *
304
- * Skip the first `n` Plans.
305
- */
306
- skip?: number
307
- /**
308
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
309
- *
310
- * Count returned Plans
311
- **/
312
- _count?: true | PlanCountAggregateInputType
313
- /**
314
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
315
- *
316
- * Select which fields to average
317
- **/
318
- _avg?: PlanAvgAggregateInputType
319
- /**
320
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
321
- *
322
- * Select which fields to sum
323
- **/
324
- _sum?: PlanSumAggregateInputType
325
- /**
326
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
327
- *
328
- * Select which fields to find the minimum value
329
- **/
330
- _min?: PlanMinAggregateInputType
331
- /**
332
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
333
- *
334
- * Select which fields to find the maximum value
335
- **/
336
- _max?: PlanMaxAggregateInputType
337
- }
338
-
339
- export type GetPlanAggregateType<T extends PlanAggregateArgs> = {
340
- [P in keyof T & keyof AggregatePlan]: P extends '_count' | 'count'
341
- ? T[P] extends true
342
- ? number
343
- : Prisma.GetScalarType<T[P], AggregatePlan[P]>
344
- : Prisma.GetScalarType<T[P], AggregatePlan[P]>
345
- }
346
-
347
-
348
-
349
-
350
- export type PlanGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
351
- where?: Prisma.PlanWhereInput
352
- orderBy?: Prisma.PlanOrderByWithAggregationInput | Prisma.PlanOrderByWithAggregationInput[]
353
- by: Prisma.PlanScalarFieldEnum[] | Prisma.PlanScalarFieldEnum
354
- having?: Prisma.PlanScalarWhereWithAggregatesInput
355
- take?: number
356
- skip?: number
357
- _count?: PlanCountAggregateInputType | true
358
- _avg?: PlanAvgAggregateInputType
359
- _sum?: PlanSumAggregateInputType
360
- _min?: PlanMinAggregateInputType
361
- _max?: PlanMaxAggregateInputType
362
- }
363
-
364
- export type PlanGroupByOutputType = {
365
- id: string
366
- name: string
367
- displayName: string
368
- description: string | null
369
- priceMonthly: number
370
- priceYearly: number | null
371
- currency: string
372
- maxSeats: number | null
373
- maxGuestSeats: number | null
374
- maxWorkspaces: number | null
375
- aiQuotaMonthly: number | null
376
- features: runtime.JsonValue
377
- isPublic: boolean
378
- sortOrder: number
379
- createdAt: Date
380
- updatedAt: Date
381
- providerPriceIdUsd: string | null
382
- providerPriceIdCny: string | null
383
- providerPriceIdUsdYearly: string | null
384
- providerPriceIdCnyYearly: string | null
385
- seatPriceMonthly: number | null
386
- providerSeatPriceIdUsd: string | null
387
- providerSeatPriceIdCny: string | null
388
- agentQuota: number | null
389
- skillQuota: number | null
390
- sandboxMinutesMonthly: number | null
391
- mediaGenerationsMonthly: number | null
392
- galleryStorageMb: number | null
393
- _count: PlanCountAggregateOutputType | null
394
- _avg: PlanAvgAggregateOutputType | null
395
- _sum: PlanSumAggregateOutputType | null
396
- _min: PlanMinAggregateOutputType | null
397
- _max: PlanMaxAggregateOutputType | null
398
- }
399
-
400
- export type GetPlanGroupByPayload<T extends PlanGroupByArgs> = Prisma.PrismaPromise<
401
- Array<
402
- Prisma.PickEnumerable<PlanGroupByOutputType, T['by']> &
403
- {
404
- [P in ((keyof T) & (keyof PlanGroupByOutputType))]: P extends '_count'
405
- ? T[P] extends boolean
406
- ? number
407
- : Prisma.GetScalarType<T[P], PlanGroupByOutputType[P]>
408
- : Prisma.GetScalarType<T[P], PlanGroupByOutputType[P]>
409
- }
410
- >
411
- >
412
-
413
-
414
-
415
- export type PlanWhereInput = {
416
- AND?: Prisma.PlanWhereInput | Prisma.PlanWhereInput[]
417
- OR?: Prisma.PlanWhereInput[]
418
- NOT?: Prisma.PlanWhereInput | Prisma.PlanWhereInput[]
419
- id?: Prisma.StringFilter<"Plan"> | string
420
- name?: Prisma.StringFilter<"Plan"> | string
421
- displayName?: Prisma.StringFilter<"Plan"> | string
422
- description?: Prisma.StringNullableFilter<"Plan"> | string | null
423
- priceMonthly?: Prisma.IntFilter<"Plan"> | number
424
- priceYearly?: Prisma.IntNullableFilter<"Plan"> | number | null
425
- currency?: Prisma.StringFilter<"Plan"> | string
426
- maxSeats?: Prisma.IntNullableFilter<"Plan"> | number | null
427
- maxGuestSeats?: Prisma.IntNullableFilter<"Plan"> | number | null
428
- maxWorkspaces?: Prisma.IntNullableFilter<"Plan"> | number | null
429
- aiQuotaMonthly?: Prisma.IntNullableFilter<"Plan"> | number | null
430
- features?: Prisma.JsonFilter<"Plan">
431
- isPublic?: Prisma.BoolFilter<"Plan"> | boolean
432
- sortOrder?: Prisma.IntFilter<"Plan"> | number
433
- createdAt?: Prisma.DateTimeFilter<"Plan"> | Date | string
434
- updatedAt?: Prisma.DateTimeFilter<"Plan"> | Date | string
435
- providerPriceIdUsd?: Prisma.StringNullableFilter<"Plan"> | string | null
436
- providerPriceIdCny?: Prisma.StringNullableFilter<"Plan"> | string | null
437
- providerPriceIdUsdYearly?: Prisma.StringNullableFilter<"Plan"> | string | null
438
- providerPriceIdCnyYearly?: Prisma.StringNullableFilter<"Plan"> | string | null
439
- seatPriceMonthly?: Prisma.IntNullableFilter<"Plan"> | number | null
440
- providerSeatPriceIdUsd?: Prisma.StringNullableFilter<"Plan"> | string | null
441
- providerSeatPriceIdCny?: Prisma.StringNullableFilter<"Plan"> | string | null
442
- agentQuota?: Prisma.IntNullableFilter<"Plan"> | number | null
443
- skillQuota?: Prisma.IntNullableFilter<"Plan"> | number | null
444
- sandboxMinutesMonthly?: Prisma.IntNullableFilter<"Plan"> | number | null
445
- mediaGenerationsMonthly?: Prisma.IntNullableFilter<"Plan"> | number | null
446
- galleryStorageMb?: Prisma.IntNullableFilter<"Plan"> | number | null
447
- subscriptions?: Prisma.SubscriptionListRelationFilter
448
- }
449
-
450
- export type PlanOrderByWithRelationInput = {
451
- id?: Prisma.SortOrder
452
- name?: Prisma.SortOrder
453
- displayName?: Prisma.SortOrder
454
- description?: Prisma.SortOrderInput | Prisma.SortOrder
455
- priceMonthly?: Prisma.SortOrder
456
- priceYearly?: Prisma.SortOrderInput | Prisma.SortOrder
457
- currency?: Prisma.SortOrder
458
- maxSeats?: Prisma.SortOrderInput | Prisma.SortOrder
459
- maxGuestSeats?: Prisma.SortOrderInput | Prisma.SortOrder
460
- maxWorkspaces?: Prisma.SortOrderInput | Prisma.SortOrder
461
- aiQuotaMonthly?: Prisma.SortOrderInput | Prisma.SortOrder
462
- features?: Prisma.SortOrder
463
- isPublic?: Prisma.SortOrder
464
- sortOrder?: Prisma.SortOrder
465
- createdAt?: Prisma.SortOrder
466
- updatedAt?: Prisma.SortOrder
467
- providerPriceIdUsd?: Prisma.SortOrderInput | Prisma.SortOrder
468
- providerPriceIdCny?: Prisma.SortOrderInput | Prisma.SortOrder
469
- providerPriceIdUsdYearly?: Prisma.SortOrderInput | Prisma.SortOrder
470
- providerPriceIdCnyYearly?: Prisma.SortOrderInput | Prisma.SortOrder
471
- seatPriceMonthly?: Prisma.SortOrderInput | Prisma.SortOrder
472
- providerSeatPriceIdUsd?: Prisma.SortOrderInput | Prisma.SortOrder
473
- providerSeatPriceIdCny?: Prisma.SortOrderInput | Prisma.SortOrder
474
- agentQuota?: Prisma.SortOrderInput | Prisma.SortOrder
475
- skillQuota?: Prisma.SortOrderInput | Prisma.SortOrder
476
- sandboxMinutesMonthly?: Prisma.SortOrderInput | Prisma.SortOrder
477
- mediaGenerationsMonthly?: Prisma.SortOrderInput | Prisma.SortOrder
478
- galleryStorageMb?: Prisma.SortOrderInput | Prisma.SortOrder
479
- subscriptions?: Prisma.SubscriptionOrderByRelationAggregateInput
480
- }
481
-
482
- export type PlanWhereUniqueInput = Prisma.AtLeast<{
483
- id?: string
484
- name?: string
485
- AND?: Prisma.PlanWhereInput | Prisma.PlanWhereInput[]
486
- OR?: Prisma.PlanWhereInput[]
487
- NOT?: Prisma.PlanWhereInput | Prisma.PlanWhereInput[]
488
- displayName?: Prisma.StringFilter<"Plan"> | string
489
- description?: Prisma.StringNullableFilter<"Plan"> | string | null
490
- priceMonthly?: Prisma.IntFilter<"Plan"> | number
491
- priceYearly?: Prisma.IntNullableFilter<"Plan"> | number | null
492
- currency?: Prisma.StringFilter<"Plan"> | string
493
- maxSeats?: Prisma.IntNullableFilter<"Plan"> | number | null
494
- maxGuestSeats?: Prisma.IntNullableFilter<"Plan"> | number | null
495
- maxWorkspaces?: Prisma.IntNullableFilter<"Plan"> | number | null
496
- aiQuotaMonthly?: Prisma.IntNullableFilter<"Plan"> | number | null
497
- features?: Prisma.JsonFilter<"Plan">
498
- isPublic?: Prisma.BoolFilter<"Plan"> | boolean
499
- sortOrder?: Prisma.IntFilter<"Plan"> | number
500
- createdAt?: Prisma.DateTimeFilter<"Plan"> | Date | string
501
- updatedAt?: Prisma.DateTimeFilter<"Plan"> | Date | string
502
- providerPriceIdUsd?: Prisma.StringNullableFilter<"Plan"> | string | null
503
- providerPriceIdCny?: Prisma.StringNullableFilter<"Plan"> | string | null
504
- providerPriceIdUsdYearly?: Prisma.StringNullableFilter<"Plan"> | string | null
505
- providerPriceIdCnyYearly?: Prisma.StringNullableFilter<"Plan"> | string | null
506
- seatPriceMonthly?: Prisma.IntNullableFilter<"Plan"> | number | null
507
- providerSeatPriceIdUsd?: Prisma.StringNullableFilter<"Plan"> | string | null
508
- providerSeatPriceIdCny?: Prisma.StringNullableFilter<"Plan"> | string | null
509
- agentQuota?: Prisma.IntNullableFilter<"Plan"> | number | null
510
- skillQuota?: Prisma.IntNullableFilter<"Plan"> | number | null
511
- sandboxMinutesMonthly?: Prisma.IntNullableFilter<"Plan"> | number | null
512
- mediaGenerationsMonthly?: Prisma.IntNullableFilter<"Plan"> | number | null
513
- galleryStorageMb?: Prisma.IntNullableFilter<"Plan"> | number | null
514
- subscriptions?: Prisma.SubscriptionListRelationFilter
515
- }, "id" | "name">
516
-
517
- export type PlanOrderByWithAggregationInput = {
518
- id?: Prisma.SortOrder
519
- name?: Prisma.SortOrder
520
- displayName?: Prisma.SortOrder
521
- description?: Prisma.SortOrderInput | Prisma.SortOrder
522
- priceMonthly?: Prisma.SortOrder
523
- priceYearly?: Prisma.SortOrderInput | Prisma.SortOrder
524
- currency?: Prisma.SortOrder
525
- maxSeats?: Prisma.SortOrderInput | Prisma.SortOrder
526
- maxGuestSeats?: Prisma.SortOrderInput | Prisma.SortOrder
527
- maxWorkspaces?: Prisma.SortOrderInput | Prisma.SortOrder
528
- aiQuotaMonthly?: Prisma.SortOrderInput | Prisma.SortOrder
529
- features?: Prisma.SortOrder
530
- isPublic?: Prisma.SortOrder
531
- sortOrder?: Prisma.SortOrder
532
- createdAt?: Prisma.SortOrder
533
- updatedAt?: Prisma.SortOrder
534
- providerPriceIdUsd?: Prisma.SortOrderInput | Prisma.SortOrder
535
- providerPriceIdCny?: Prisma.SortOrderInput | Prisma.SortOrder
536
- providerPriceIdUsdYearly?: Prisma.SortOrderInput | Prisma.SortOrder
537
- providerPriceIdCnyYearly?: Prisma.SortOrderInput | Prisma.SortOrder
538
- seatPriceMonthly?: Prisma.SortOrderInput | Prisma.SortOrder
539
- providerSeatPriceIdUsd?: Prisma.SortOrderInput | Prisma.SortOrder
540
- providerSeatPriceIdCny?: Prisma.SortOrderInput | Prisma.SortOrder
541
- agentQuota?: Prisma.SortOrderInput | Prisma.SortOrder
542
- skillQuota?: Prisma.SortOrderInput | Prisma.SortOrder
543
- sandboxMinutesMonthly?: Prisma.SortOrderInput | Prisma.SortOrder
544
- mediaGenerationsMonthly?: Prisma.SortOrderInput | Prisma.SortOrder
545
- galleryStorageMb?: Prisma.SortOrderInput | Prisma.SortOrder
546
- _count?: Prisma.PlanCountOrderByAggregateInput
547
- _avg?: Prisma.PlanAvgOrderByAggregateInput
548
- _max?: Prisma.PlanMaxOrderByAggregateInput
549
- _min?: Prisma.PlanMinOrderByAggregateInput
550
- _sum?: Prisma.PlanSumOrderByAggregateInput
551
- }
552
-
553
- export type PlanScalarWhereWithAggregatesInput = {
554
- AND?: Prisma.PlanScalarWhereWithAggregatesInput | Prisma.PlanScalarWhereWithAggregatesInput[]
555
- OR?: Prisma.PlanScalarWhereWithAggregatesInput[]
556
- NOT?: Prisma.PlanScalarWhereWithAggregatesInput | Prisma.PlanScalarWhereWithAggregatesInput[]
557
- id?: Prisma.StringWithAggregatesFilter<"Plan"> | string
558
- name?: Prisma.StringWithAggregatesFilter<"Plan"> | string
559
- displayName?: Prisma.StringWithAggregatesFilter<"Plan"> | string
560
- description?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null
561
- priceMonthly?: Prisma.IntWithAggregatesFilter<"Plan"> | number
562
- priceYearly?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
563
- currency?: Prisma.StringWithAggregatesFilter<"Plan"> | string
564
- maxSeats?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
565
- maxGuestSeats?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
566
- maxWorkspaces?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
567
- aiQuotaMonthly?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
568
- features?: Prisma.JsonWithAggregatesFilter<"Plan">
569
- isPublic?: Prisma.BoolWithAggregatesFilter<"Plan"> | boolean
570
- sortOrder?: Prisma.IntWithAggregatesFilter<"Plan"> | number
571
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"Plan"> | Date | string
572
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Plan"> | Date | string
573
- providerPriceIdUsd?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null
574
- providerPriceIdCny?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null
575
- providerPriceIdUsdYearly?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null
576
- providerPriceIdCnyYearly?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null
577
- seatPriceMonthly?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
578
- providerSeatPriceIdUsd?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null
579
- providerSeatPriceIdCny?: Prisma.StringNullableWithAggregatesFilter<"Plan"> | string | null
580
- agentQuota?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
581
- skillQuota?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
582
- sandboxMinutesMonthly?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
583
- mediaGenerationsMonthly?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
584
- galleryStorageMb?: Prisma.IntNullableWithAggregatesFilter<"Plan"> | number | null
585
- }
586
-
587
- export type PlanCreateInput = {
588
- id?: string
589
- name: string
590
- displayName: string
591
- description?: string | null
592
- priceMonthly?: number
593
- priceYearly?: number | null
594
- currency?: string
595
- maxSeats?: number | null
596
- maxGuestSeats?: number | null
597
- maxWorkspaces?: number | null
598
- aiQuotaMonthly?: number | null
599
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
600
- isPublic?: boolean
601
- sortOrder?: number
602
- createdAt?: Date | string
603
- updatedAt?: Date | string
604
- providerPriceIdUsd?: string | null
605
- providerPriceIdCny?: string | null
606
- providerPriceIdUsdYearly?: string | null
607
- providerPriceIdCnyYearly?: string | null
608
- seatPriceMonthly?: number | null
609
- providerSeatPriceIdUsd?: string | null
610
- providerSeatPriceIdCny?: string | null
611
- agentQuota?: number | null
612
- skillQuota?: number | null
613
- sandboxMinutesMonthly?: number | null
614
- mediaGenerationsMonthly?: number | null
615
- galleryStorageMb?: number | null
616
- subscriptions?: Prisma.SubscriptionCreateNestedManyWithoutPlanInput
617
- }
618
-
619
- export type PlanUncheckedCreateInput = {
620
- id?: string
621
- name: string
622
- displayName: string
623
- description?: string | null
624
- priceMonthly?: number
625
- priceYearly?: number | null
626
- currency?: string
627
- maxSeats?: number | null
628
- maxGuestSeats?: number | null
629
- maxWorkspaces?: number | null
630
- aiQuotaMonthly?: number | null
631
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
632
- isPublic?: boolean
633
- sortOrder?: number
634
- createdAt?: Date | string
635
- updatedAt?: Date | string
636
- providerPriceIdUsd?: string | null
637
- providerPriceIdCny?: string | null
638
- providerPriceIdUsdYearly?: string | null
639
- providerPriceIdCnyYearly?: string | null
640
- seatPriceMonthly?: number | null
641
- providerSeatPriceIdUsd?: string | null
642
- providerSeatPriceIdCny?: string | null
643
- agentQuota?: number | null
644
- skillQuota?: number | null
645
- sandboxMinutesMonthly?: number | null
646
- mediaGenerationsMonthly?: number | null
647
- galleryStorageMb?: number | null
648
- subscriptions?: Prisma.SubscriptionUncheckedCreateNestedManyWithoutPlanInput
649
- }
650
-
651
- export type PlanUpdateInput = {
652
- id?: Prisma.StringFieldUpdateOperationsInput | string
653
- name?: Prisma.StringFieldUpdateOperationsInput | string
654
- displayName?: Prisma.StringFieldUpdateOperationsInput | string
655
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
656
- priceMonthly?: Prisma.IntFieldUpdateOperationsInput | number
657
- priceYearly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
658
- currency?: Prisma.StringFieldUpdateOperationsInput | string
659
- maxSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
660
- maxGuestSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
661
- maxWorkspaces?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
662
- aiQuotaMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
663
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
664
- isPublic?: Prisma.BoolFieldUpdateOperationsInput | boolean
665
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
666
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
667
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
668
- providerPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
669
- providerPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
670
- providerPriceIdUsdYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
671
- providerPriceIdCnyYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
672
- seatPriceMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
673
- providerSeatPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
674
- providerSeatPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
675
- agentQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
676
- skillQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
677
- sandboxMinutesMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
678
- mediaGenerationsMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
679
- galleryStorageMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
680
- subscriptions?: Prisma.SubscriptionUpdateManyWithoutPlanNestedInput
681
- }
682
-
683
- export type PlanUncheckedUpdateInput = {
684
- id?: Prisma.StringFieldUpdateOperationsInput | string
685
- name?: Prisma.StringFieldUpdateOperationsInput | string
686
- displayName?: Prisma.StringFieldUpdateOperationsInput | string
687
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
688
- priceMonthly?: Prisma.IntFieldUpdateOperationsInput | number
689
- priceYearly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
690
- currency?: Prisma.StringFieldUpdateOperationsInput | string
691
- maxSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
692
- maxGuestSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
693
- maxWorkspaces?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
694
- aiQuotaMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
695
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
696
- isPublic?: Prisma.BoolFieldUpdateOperationsInput | boolean
697
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
698
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
699
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
700
- providerPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
701
- providerPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
702
- providerPriceIdUsdYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
703
- providerPriceIdCnyYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
704
- seatPriceMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
705
- providerSeatPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
706
- providerSeatPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
707
- agentQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
708
- skillQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
709
- sandboxMinutesMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
710
- mediaGenerationsMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
711
- galleryStorageMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
712
- subscriptions?: Prisma.SubscriptionUncheckedUpdateManyWithoutPlanNestedInput
713
- }
714
-
715
- export type PlanCreateManyInput = {
716
- id?: string
717
- name: string
718
- displayName: string
719
- description?: string | null
720
- priceMonthly?: number
721
- priceYearly?: number | null
722
- currency?: string
723
- maxSeats?: number | null
724
- maxGuestSeats?: number | null
725
- maxWorkspaces?: number | null
726
- aiQuotaMonthly?: number | null
727
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
728
- isPublic?: boolean
729
- sortOrder?: number
730
- createdAt?: Date | string
731
- updatedAt?: Date | string
732
- providerPriceIdUsd?: string | null
733
- providerPriceIdCny?: string | null
734
- providerPriceIdUsdYearly?: string | null
735
- providerPriceIdCnyYearly?: string | null
736
- seatPriceMonthly?: number | null
737
- providerSeatPriceIdUsd?: string | null
738
- providerSeatPriceIdCny?: string | null
739
- agentQuota?: number | null
740
- skillQuota?: number | null
741
- sandboxMinutesMonthly?: number | null
742
- mediaGenerationsMonthly?: number | null
743
- galleryStorageMb?: number | null
744
- }
745
-
746
- export type PlanUpdateManyMutationInput = {
747
- id?: Prisma.StringFieldUpdateOperationsInput | string
748
- name?: Prisma.StringFieldUpdateOperationsInput | string
749
- displayName?: Prisma.StringFieldUpdateOperationsInput | string
750
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
751
- priceMonthly?: Prisma.IntFieldUpdateOperationsInput | number
752
- priceYearly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
753
- currency?: Prisma.StringFieldUpdateOperationsInput | string
754
- maxSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
755
- maxGuestSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
756
- maxWorkspaces?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
757
- aiQuotaMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
758
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
759
- isPublic?: Prisma.BoolFieldUpdateOperationsInput | boolean
760
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
761
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
762
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
763
- providerPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
764
- providerPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
765
- providerPriceIdUsdYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
766
- providerPriceIdCnyYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
767
- seatPriceMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
768
- providerSeatPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
769
- providerSeatPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
770
- agentQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
771
- skillQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
772
- sandboxMinutesMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
773
- mediaGenerationsMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
774
- galleryStorageMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
775
- }
776
-
777
- export type PlanUncheckedUpdateManyInput = {
778
- id?: Prisma.StringFieldUpdateOperationsInput | string
779
- name?: Prisma.StringFieldUpdateOperationsInput | string
780
- displayName?: Prisma.StringFieldUpdateOperationsInput | string
781
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
782
- priceMonthly?: Prisma.IntFieldUpdateOperationsInput | number
783
- priceYearly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
784
- currency?: Prisma.StringFieldUpdateOperationsInput | string
785
- maxSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
786
- maxGuestSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
787
- maxWorkspaces?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
788
- aiQuotaMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
789
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
790
- isPublic?: Prisma.BoolFieldUpdateOperationsInput | boolean
791
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
792
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
793
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
794
- providerPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
795
- providerPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
796
- providerPriceIdUsdYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
797
- providerPriceIdCnyYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
798
- seatPriceMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
799
- providerSeatPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
800
- providerSeatPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
801
- agentQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
802
- skillQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
803
- sandboxMinutesMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
804
- mediaGenerationsMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
805
- galleryStorageMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
806
- }
807
-
808
- export type PlanCountOrderByAggregateInput = {
809
- id?: Prisma.SortOrder
810
- name?: Prisma.SortOrder
811
- displayName?: Prisma.SortOrder
812
- description?: Prisma.SortOrder
813
- priceMonthly?: Prisma.SortOrder
814
- priceYearly?: Prisma.SortOrder
815
- currency?: Prisma.SortOrder
816
- maxSeats?: Prisma.SortOrder
817
- maxGuestSeats?: Prisma.SortOrder
818
- maxWorkspaces?: Prisma.SortOrder
819
- aiQuotaMonthly?: Prisma.SortOrder
820
- features?: Prisma.SortOrder
821
- isPublic?: Prisma.SortOrder
822
- sortOrder?: Prisma.SortOrder
823
- createdAt?: Prisma.SortOrder
824
- updatedAt?: Prisma.SortOrder
825
- providerPriceIdUsd?: Prisma.SortOrder
826
- providerPriceIdCny?: Prisma.SortOrder
827
- providerPriceIdUsdYearly?: Prisma.SortOrder
828
- providerPriceIdCnyYearly?: Prisma.SortOrder
829
- seatPriceMonthly?: Prisma.SortOrder
830
- providerSeatPriceIdUsd?: Prisma.SortOrder
831
- providerSeatPriceIdCny?: Prisma.SortOrder
832
- agentQuota?: Prisma.SortOrder
833
- skillQuota?: Prisma.SortOrder
834
- sandboxMinutesMonthly?: Prisma.SortOrder
835
- mediaGenerationsMonthly?: Prisma.SortOrder
836
- galleryStorageMb?: Prisma.SortOrder
837
- }
838
-
839
- export type PlanAvgOrderByAggregateInput = {
840
- priceMonthly?: Prisma.SortOrder
841
- priceYearly?: Prisma.SortOrder
842
- maxSeats?: Prisma.SortOrder
843
- maxGuestSeats?: Prisma.SortOrder
844
- maxWorkspaces?: Prisma.SortOrder
845
- aiQuotaMonthly?: Prisma.SortOrder
846
- sortOrder?: Prisma.SortOrder
847
- seatPriceMonthly?: Prisma.SortOrder
848
- agentQuota?: Prisma.SortOrder
849
- skillQuota?: Prisma.SortOrder
850
- sandboxMinutesMonthly?: Prisma.SortOrder
851
- mediaGenerationsMonthly?: Prisma.SortOrder
852
- galleryStorageMb?: Prisma.SortOrder
853
- }
854
-
855
- export type PlanMaxOrderByAggregateInput = {
856
- id?: Prisma.SortOrder
857
- name?: Prisma.SortOrder
858
- displayName?: Prisma.SortOrder
859
- description?: Prisma.SortOrder
860
- priceMonthly?: Prisma.SortOrder
861
- priceYearly?: Prisma.SortOrder
862
- currency?: Prisma.SortOrder
863
- maxSeats?: Prisma.SortOrder
864
- maxGuestSeats?: Prisma.SortOrder
865
- maxWorkspaces?: Prisma.SortOrder
866
- aiQuotaMonthly?: Prisma.SortOrder
867
- isPublic?: Prisma.SortOrder
868
- sortOrder?: Prisma.SortOrder
869
- createdAt?: Prisma.SortOrder
870
- updatedAt?: Prisma.SortOrder
871
- providerPriceIdUsd?: Prisma.SortOrder
872
- providerPriceIdCny?: Prisma.SortOrder
873
- providerPriceIdUsdYearly?: Prisma.SortOrder
874
- providerPriceIdCnyYearly?: Prisma.SortOrder
875
- seatPriceMonthly?: Prisma.SortOrder
876
- providerSeatPriceIdUsd?: Prisma.SortOrder
877
- providerSeatPriceIdCny?: Prisma.SortOrder
878
- agentQuota?: Prisma.SortOrder
879
- skillQuota?: Prisma.SortOrder
880
- sandboxMinutesMonthly?: Prisma.SortOrder
881
- mediaGenerationsMonthly?: Prisma.SortOrder
882
- galleryStorageMb?: Prisma.SortOrder
883
- }
884
-
885
- export type PlanMinOrderByAggregateInput = {
886
- id?: Prisma.SortOrder
887
- name?: Prisma.SortOrder
888
- displayName?: Prisma.SortOrder
889
- description?: Prisma.SortOrder
890
- priceMonthly?: Prisma.SortOrder
891
- priceYearly?: Prisma.SortOrder
892
- currency?: Prisma.SortOrder
893
- maxSeats?: Prisma.SortOrder
894
- maxGuestSeats?: Prisma.SortOrder
895
- maxWorkspaces?: Prisma.SortOrder
896
- aiQuotaMonthly?: Prisma.SortOrder
897
- isPublic?: Prisma.SortOrder
898
- sortOrder?: Prisma.SortOrder
899
- createdAt?: Prisma.SortOrder
900
- updatedAt?: Prisma.SortOrder
901
- providerPriceIdUsd?: Prisma.SortOrder
902
- providerPriceIdCny?: Prisma.SortOrder
903
- providerPriceIdUsdYearly?: Prisma.SortOrder
904
- providerPriceIdCnyYearly?: Prisma.SortOrder
905
- seatPriceMonthly?: Prisma.SortOrder
906
- providerSeatPriceIdUsd?: Prisma.SortOrder
907
- providerSeatPriceIdCny?: Prisma.SortOrder
908
- agentQuota?: Prisma.SortOrder
909
- skillQuota?: Prisma.SortOrder
910
- sandboxMinutesMonthly?: Prisma.SortOrder
911
- mediaGenerationsMonthly?: Prisma.SortOrder
912
- galleryStorageMb?: Prisma.SortOrder
913
- }
914
-
915
- export type PlanSumOrderByAggregateInput = {
916
- priceMonthly?: Prisma.SortOrder
917
- priceYearly?: Prisma.SortOrder
918
- maxSeats?: Prisma.SortOrder
919
- maxGuestSeats?: Prisma.SortOrder
920
- maxWorkspaces?: Prisma.SortOrder
921
- aiQuotaMonthly?: Prisma.SortOrder
922
- sortOrder?: Prisma.SortOrder
923
- seatPriceMonthly?: Prisma.SortOrder
924
- agentQuota?: Prisma.SortOrder
925
- skillQuota?: Prisma.SortOrder
926
- sandboxMinutesMonthly?: Prisma.SortOrder
927
- mediaGenerationsMonthly?: Prisma.SortOrder
928
- galleryStorageMb?: Prisma.SortOrder
929
- }
930
-
931
- export type PlanScalarRelationFilter = {
932
- is?: Prisma.PlanWhereInput
933
- isNot?: Prisma.PlanWhereInput
934
- }
935
-
936
- export type PlanCreateNestedOneWithoutSubscriptionsInput = {
937
- create?: Prisma.XOR<Prisma.PlanCreateWithoutSubscriptionsInput, Prisma.PlanUncheckedCreateWithoutSubscriptionsInput>
938
- connectOrCreate?: Prisma.PlanCreateOrConnectWithoutSubscriptionsInput
939
- connect?: Prisma.PlanWhereUniqueInput
940
- }
941
-
942
- export type PlanUpdateOneRequiredWithoutSubscriptionsNestedInput = {
943
- create?: Prisma.XOR<Prisma.PlanCreateWithoutSubscriptionsInput, Prisma.PlanUncheckedCreateWithoutSubscriptionsInput>
944
- connectOrCreate?: Prisma.PlanCreateOrConnectWithoutSubscriptionsInput
945
- upsert?: Prisma.PlanUpsertWithoutSubscriptionsInput
946
- connect?: Prisma.PlanWhereUniqueInput
947
- update?: Prisma.XOR<Prisma.XOR<Prisma.PlanUpdateToOneWithWhereWithoutSubscriptionsInput, Prisma.PlanUpdateWithoutSubscriptionsInput>, Prisma.PlanUncheckedUpdateWithoutSubscriptionsInput>
948
- }
949
-
950
- export type PlanCreateWithoutSubscriptionsInput = {
951
- id?: string
952
- name: string
953
- displayName: string
954
- description?: string | null
955
- priceMonthly?: number
956
- priceYearly?: number | null
957
- currency?: string
958
- maxSeats?: number | null
959
- maxGuestSeats?: number | null
960
- maxWorkspaces?: number | null
961
- aiQuotaMonthly?: number | null
962
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
963
- isPublic?: boolean
964
- sortOrder?: number
965
- createdAt?: Date | string
966
- updatedAt?: Date | string
967
- providerPriceIdUsd?: string | null
968
- providerPriceIdCny?: string | null
969
- providerPriceIdUsdYearly?: string | null
970
- providerPriceIdCnyYearly?: string | null
971
- seatPriceMonthly?: number | null
972
- providerSeatPriceIdUsd?: string | null
973
- providerSeatPriceIdCny?: string | null
974
- agentQuota?: number | null
975
- skillQuota?: number | null
976
- sandboxMinutesMonthly?: number | null
977
- mediaGenerationsMonthly?: number | null
978
- galleryStorageMb?: number | null
979
- }
980
-
981
- export type PlanUncheckedCreateWithoutSubscriptionsInput = {
982
- id?: string
983
- name: string
984
- displayName: string
985
- description?: string | null
986
- priceMonthly?: number
987
- priceYearly?: number | null
988
- currency?: string
989
- maxSeats?: number | null
990
- maxGuestSeats?: number | null
991
- maxWorkspaces?: number | null
992
- aiQuotaMonthly?: number | null
993
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
994
- isPublic?: boolean
995
- sortOrder?: number
996
- createdAt?: Date | string
997
- updatedAt?: Date | string
998
- providerPriceIdUsd?: string | null
999
- providerPriceIdCny?: string | null
1000
- providerPriceIdUsdYearly?: string | null
1001
- providerPriceIdCnyYearly?: string | null
1002
- seatPriceMonthly?: number | null
1003
- providerSeatPriceIdUsd?: string | null
1004
- providerSeatPriceIdCny?: string | null
1005
- agentQuota?: number | null
1006
- skillQuota?: number | null
1007
- sandboxMinutesMonthly?: number | null
1008
- mediaGenerationsMonthly?: number | null
1009
- galleryStorageMb?: number | null
1010
- }
1011
-
1012
- export type PlanCreateOrConnectWithoutSubscriptionsInput = {
1013
- where: Prisma.PlanWhereUniqueInput
1014
- create: Prisma.XOR<Prisma.PlanCreateWithoutSubscriptionsInput, Prisma.PlanUncheckedCreateWithoutSubscriptionsInput>
1015
- }
1016
-
1017
- export type PlanUpsertWithoutSubscriptionsInput = {
1018
- update: Prisma.XOR<Prisma.PlanUpdateWithoutSubscriptionsInput, Prisma.PlanUncheckedUpdateWithoutSubscriptionsInput>
1019
- create: Prisma.XOR<Prisma.PlanCreateWithoutSubscriptionsInput, Prisma.PlanUncheckedCreateWithoutSubscriptionsInput>
1020
- where?: Prisma.PlanWhereInput
1021
- }
1022
-
1023
- export type PlanUpdateToOneWithWhereWithoutSubscriptionsInput = {
1024
- where?: Prisma.PlanWhereInput
1025
- data: Prisma.XOR<Prisma.PlanUpdateWithoutSubscriptionsInput, Prisma.PlanUncheckedUpdateWithoutSubscriptionsInput>
1026
- }
1027
-
1028
- export type PlanUpdateWithoutSubscriptionsInput = {
1029
- id?: Prisma.StringFieldUpdateOperationsInput | string
1030
- name?: Prisma.StringFieldUpdateOperationsInput | string
1031
- displayName?: Prisma.StringFieldUpdateOperationsInput | string
1032
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1033
- priceMonthly?: Prisma.IntFieldUpdateOperationsInput | number
1034
- priceYearly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1035
- currency?: Prisma.StringFieldUpdateOperationsInput | string
1036
- maxSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1037
- maxGuestSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1038
- maxWorkspaces?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1039
- aiQuotaMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1040
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1041
- isPublic?: Prisma.BoolFieldUpdateOperationsInput | boolean
1042
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1043
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1044
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1045
- providerPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1046
- providerPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1047
- providerPriceIdUsdYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1048
- providerPriceIdCnyYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1049
- seatPriceMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1050
- providerSeatPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1051
- providerSeatPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1052
- agentQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1053
- skillQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1054
- sandboxMinutesMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1055
- mediaGenerationsMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1056
- galleryStorageMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1057
- }
1058
-
1059
- export type PlanUncheckedUpdateWithoutSubscriptionsInput = {
1060
- id?: Prisma.StringFieldUpdateOperationsInput | string
1061
- name?: Prisma.StringFieldUpdateOperationsInput | string
1062
- displayName?: Prisma.StringFieldUpdateOperationsInput | string
1063
- description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1064
- priceMonthly?: Prisma.IntFieldUpdateOperationsInput | number
1065
- priceYearly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1066
- currency?: Prisma.StringFieldUpdateOperationsInput | string
1067
- maxSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1068
- maxGuestSeats?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1069
- maxWorkspaces?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1070
- aiQuotaMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1071
- features?: Prisma.JsonNullValueInput | runtime.InputJsonValue
1072
- isPublic?: Prisma.BoolFieldUpdateOperationsInput | boolean
1073
- sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
1074
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1075
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1076
- providerPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1077
- providerPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1078
- providerPriceIdUsdYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1079
- providerPriceIdCnyYearly?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1080
- seatPriceMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1081
- providerSeatPriceIdUsd?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1082
- providerSeatPriceIdCny?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1083
- agentQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1084
- skillQuota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1085
- sandboxMinutesMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1086
- mediaGenerationsMonthly?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1087
- galleryStorageMb?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1088
- }
1089
-
1090
-
1091
- /**
1092
- * Count Type PlanCountOutputType
1093
- */
1094
-
1095
- export type PlanCountOutputType = {
1096
- subscriptions: number
1097
- }
1098
-
1099
- export type PlanCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1100
- subscriptions?: boolean | PlanCountOutputTypeCountSubscriptionsArgs
1101
- }
1102
-
1103
- /**
1104
- * PlanCountOutputType without action
1105
- */
1106
- export type PlanCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1107
- /**
1108
- * Select specific fields to fetch from the PlanCountOutputType
1109
- */
1110
- select?: Prisma.PlanCountOutputTypeSelect<ExtArgs> | null
1111
- }
1112
-
1113
- /**
1114
- * PlanCountOutputType without action
1115
- */
1116
- export type PlanCountOutputTypeCountSubscriptionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1117
- where?: Prisma.SubscriptionWhereInput
1118
- }
1119
-
1120
-
1121
- export type PlanSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1122
- id?: boolean
1123
- name?: boolean
1124
- displayName?: boolean
1125
- description?: boolean
1126
- priceMonthly?: boolean
1127
- priceYearly?: boolean
1128
- currency?: boolean
1129
- maxSeats?: boolean
1130
- maxGuestSeats?: boolean
1131
- maxWorkspaces?: boolean
1132
- aiQuotaMonthly?: boolean
1133
- features?: boolean
1134
- isPublic?: boolean
1135
- sortOrder?: boolean
1136
- createdAt?: boolean
1137
- updatedAt?: boolean
1138
- providerPriceIdUsd?: boolean
1139
- providerPriceIdCny?: boolean
1140
- providerPriceIdUsdYearly?: boolean
1141
- providerPriceIdCnyYearly?: boolean
1142
- seatPriceMonthly?: boolean
1143
- providerSeatPriceIdUsd?: boolean
1144
- providerSeatPriceIdCny?: boolean
1145
- agentQuota?: boolean
1146
- skillQuota?: boolean
1147
- sandboxMinutesMonthly?: boolean
1148
- mediaGenerationsMonthly?: boolean
1149
- galleryStorageMb?: boolean
1150
- subscriptions?: boolean | Prisma.Plan$subscriptionsArgs<ExtArgs>
1151
- _count?: boolean | Prisma.PlanCountOutputTypeDefaultArgs<ExtArgs>
1152
- }, ExtArgs["result"]["plan"]>
1153
-
1154
- export type PlanSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1155
- id?: boolean
1156
- name?: boolean
1157
- displayName?: boolean
1158
- description?: boolean
1159
- priceMonthly?: boolean
1160
- priceYearly?: boolean
1161
- currency?: boolean
1162
- maxSeats?: boolean
1163
- maxGuestSeats?: boolean
1164
- maxWorkspaces?: boolean
1165
- aiQuotaMonthly?: boolean
1166
- features?: boolean
1167
- isPublic?: boolean
1168
- sortOrder?: boolean
1169
- createdAt?: boolean
1170
- updatedAt?: boolean
1171
- providerPriceIdUsd?: boolean
1172
- providerPriceIdCny?: boolean
1173
- providerPriceIdUsdYearly?: boolean
1174
- providerPriceIdCnyYearly?: boolean
1175
- seatPriceMonthly?: boolean
1176
- providerSeatPriceIdUsd?: boolean
1177
- providerSeatPriceIdCny?: boolean
1178
- agentQuota?: boolean
1179
- skillQuota?: boolean
1180
- sandboxMinutesMonthly?: boolean
1181
- mediaGenerationsMonthly?: boolean
1182
- galleryStorageMb?: boolean
1183
- }, ExtArgs["result"]["plan"]>
1184
-
1185
- export type PlanSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1186
- id?: boolean
1187
- name?: boolean
1188
- displayName?: boolean
1189
- description?: boolean
1190
- priceMonthly?: boolean
1191
- priceYearly?: boolean
1192
- currency?: boolean
1193
- maxSeats?: boolean
1194
- maxGuestSeats?: boolean
1195
- maxWorkspaces?: boolean
1196
- aiQuotaMonthly?: boolean
1197
- features?: boolean
1198
- isPublic?: boolean
1199
- sortOrder?: boolean
1200
- createdAt?: boolean
1201
- updatedAt?: boolean
1202
- providerPriceIdUsd?: boolean
1203
- providerPriceIdCny?: boolean
1204
- providerPriceIdUsdYearly?: boolean
1205
- providerPriceIdCnyYearly?: boolean
1206
- seatPriceMonthly?: boolean
1207
- providerSeatPriceIdUsd?: boolean
1208
- providerSeatPriceIdCny?: boolean
1209
- agentQuota?: boolean
1210
- skillQuota?: boolean
1211
- sandboxMinutesMonthly?: boolean
1212
- mediaGenerationsMonthly?: boolean
1213
- galleryStorageMb?: boolean
1214
- }, ExtArgs["result"]["plan"]>
1215
-
1216
- export type PlanSelectScalar = {
1217
- id?: boolean
1218
- name?: boolean
1219
- displayName?: boolean
1220
- description?: boolean
1221
- priceMonthly?: boolean
1222
- priceYearly?: boolean
1223
- currency?: boolean
1224
- maxSeats?: boolean
1225
- maxGuestSeats?: boolean
1226
- maxWorkspaces?: boolean
1227
- aiQuotaMonthly?: boolean
1228
- features?: boolean
1229
- isPublic?: boolean
1230
- sortOrder?: boolean
1231
- createdAt?: boolean
1232
- updatedAt?: boolean
1233
- providerPriceIdUsd?: boolean
1234
- providerPriceIdCny?: boolean
1235
- providerPriceIdUsdYearly?: boolean
1236
- providerPriceIdCnyYearly?: boolean
1237
- seatPriceMonthly?: boolean
1238
- providerSeatPriceIdUsd?: boolean
1239
- providerSeatPriceIdCny?: boolean
1240
- agentQuota?: boolean
1241
- skillQuota?: boolean
1242
- sandboxMinutesMonthly?: boolean
1243
- mediaGenerationsMonthly?: boolean
1244
- galleryStorageMb?: boolean
1245
- }
1246
-
1247
- export type PlanOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "displayName" | "description" | "priceMonthly" | "priceYearly" | "currency" | "maxSeats" | "maxGuestSeats" | "maxWorkspaces" | "aiQuotaMonthly" | "features" | "isPublic" | "sortOrder" | "createdAt" | "updatedAt" | "providerPriceIdUsd" | "providerPriceIdCny" | "providerPriceIdUsdYearly" | "providerPriceIdCnyYearly" | "seatPriceMonthly" | "providerSeatPriceIdUsd" | "providerSeatPriceIdCny" | "agentQuota" | "skillQuota" | "sandboxMinutesMonthly" | "mediaGenerationsMonthly" | "galleryStorageMb", ExtArgs["result"]["plan"]>
1248
- export type PlanInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1249
- subscriptions?: boolean | Prisma.Plan$subscriptionsArgs<ExtArgs>
1250
- _count?: boolean | Prisma.PlanCountOutputTypeDefaultArgs<ExtArgs>
1251
- }
1252
- export type PlanIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1253
- export type PlanIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1254
-
1255
- export type $PlanPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1256
- name: "Plan"
1257
- objects: {
1258
- subscriptions: Prisma.$SubscriptionPayload<ExtArgs>[]
1259
- }
1260
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1261
- id: string
1262
- name: string
1263
- displayName: string
1264
- description: string | null
1265
- priceMonthly: number
1266
- priceYearly: number | null
1267
- currency: string
1268
- maxSeats: number | null
1269
- maxGuestSeats: number | null
1270
- maxWorkspaces: number | null
1271
- aiQuotaMonthly: number | null
1272
- features: runtime.JsonValue
1273
- isPublic: boolean
1274
- sortOrder: number
1275
- createdAt: Date
1276
- updatedAt: Date
1277
- /**
1278
- * Provider 产品与价格同步(子项目 3 新增)
1279
- */
1280
- providerPriceIdUsd: string | null
1281
- providerPriceIdCny: string | null
1282
- providerPriceIdUsdYearly: string | null
1283
- providerPriceIdCnyYearly: string | null
1284
- seatPriceMonthly: number | null
1285
- providerSeatPriceIdUsd: string | null
1286
- providerSeatPriceIdCny: string | null
1287
- agentQuota: number | null
1288
- skillQuota: number | null
1289
- sandboxMinutesMonthly: number | null
1290
- mediaGenerationsMonthly: number | null
1291
- galleryStorageMb: number | null
1292
- }, ExtArgs["result"]["plan"]>
1293
- composites: {}
1294
- }
1295
-
1296
- export type PlanGetPayload<S extends boolean | null | undefined | PlanDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PlanPayload, S>
1297
-
1298
- export type PlanCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1299
- Omit<PlanFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1300
- select?: PlanCountAggregateInputType | true
1301
- }
1302
-
1303
- export interface PlanDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1304
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Plan'], meta: { name: 'Plan' } }
1305
- /**
1306
- * Find zero or one Plan that matches the filter.
1307
- * @param {PlanFindUniqueArgs} args - Arguments to find a Plan
1308
- * @example
1309
- * // Get one Plan
1310
- * const plan = await prisma.plan.findUnique({
1311
- * where: {
1312
- * // ... provide filter here
1313
- * }
1314
- * })
1315
- */
1316
- findUnique<T extends PlanFindUniqueArgs>(args: Prisma.SelectSubset<T, PlanFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1317
-
1318
- /**
1319
- * Find one Plan that matches the filter or throw an error with `error.code='P2025'`
1320
- * if no matches were found.
1321
- * @param {PlanFindUniqueOrThrowArgs} args - Arguments to find a Plan
1322
- * @example
1323
- * // Get one Plan
1324
- * const plan = await prisma.plan.findUniqueOrThrow({
1325
- * where: {
1326
- * // ... provide filter here
1327
- * }
1328
- * })
1329
- */
1330
- findUniqueOrThrow<T extends PlanFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PlanFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1331
-
1332
- /**
1333
- * Find the first Plan that matches the filter.
1334
- * Note, that providing `undefined` is treated as the value not being there.
1335
- * Read more here: https://pris.ly/d/null-undefined
1336
- * @param {PlanFindFirstArgs} args - Arguments to find a Plan
1337
- * @example
1338
- * // Get one Plan
1339
- * const plan = await prisma.plan.findFirst({
1340
- * where: {
1341
- * // ... provide filter here
1342
- * }
1343
- * })
1344
- */
1345
- findFirst<T extends PlanFindFirstArgs>(args?: Prisma.SelectSubset<T, PlanFindFirstArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1346
-
1347
- /**
1348
- * Find the first Plan that matches the filter or
1349
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1350
- * Note, that providing `undefined` is treated as the value not being there.
1351
- * Read more here: https://pris.ly/d/null-undefined
1352
- * @param {PlanFindFirstOrThrowArgs} args - Arguments to find a Plan
1353
- * @example
1354
- * // Get one Plan
1355
- * const plan = await prisma.plan.findFirstOrThrow({
1356
- * where: {
1357
- * // ... provide filter here
1358
- * }
1359
- * })
1360
- */
1361
- findFirstOrThrow<T extends PlanFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PlanFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1362
-
1363
- /**
1364
- * Find zero or more Plans that matches the filter.
1365
- * Note, that providing `undefined` is treated as the value not being there.
1366
- * Read more here: https://pris.ly/d/null-undefined
1367
- * @param {PlanFindManyArgs} args - Arguments to filter and select certain fields only.
1368
- * @example
1369
- * // Get all Plans
1370
- * const plans = await prisma.plan.findMany()
1371
- *
1372
- * // Get first 10 Plans
1373
- * const plans = await prisma.plan.findMany({ take: 10 })
1374
- *
1375
- * // Only select the `id`
1376
- * const planWithIdOnly = await prisma.plan.findMany({ select: { id: true } })
1377
- *
1378
- */
1379
- findMany<T extends PlanFindManyArgs>(args?: Prisma.SelectSubset<T, PlanFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1380
-
1381
- /**
1382
- * Create a Plan.
1383
- * @param {PlanCreateArgs} args - Arguments to create a Plan.
1384
- * @example
1385
- * // Create one Plan
1386
- * const Plan = await prisma.plan.create({
1387
- * data: {
1388
- * // ... data to create a Plan
1389
- * }
1390
- * })
1391
- *
1392
- */
1393
- create<T extends PlanCreateArgs>(args: Prisma.SelectSubset<T, PlanCreateArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1394
-
1395
- /**
1396
- * Create many Plans.
1397
- * @param {PlanCreateManyArgs} args - Arguments to create many Plans.
1398
- * @example
1399
- * // Create many Plans
1400
- * const plan = await prisma.plan.createMany({
1401
- * data: [
1402
- * // ... provide data here
1403
- * ]
1404
- * })
1405
- *
1406
- */
1407
- createMany<T extends PlanCreateManyArgs>(args?: Prisma.SelectSubset<T, PlanCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1408
-
1409
- /**
1410
- * Create many Plans and returns the data saved in the database.
1411
- * @param {PlanCreateManyAndReturnArgs} args - Arguments to create many Plans.
1412
- * @example
1413
- * // Create many Plans
1414
- * const plan = await prisma.plan.createManyAndReturn({
1415
- * data: [
1416
- * // ... provide data here
1417
- * ]
1418
- * })
1419
- *
1420
- * // Create many Plans and only return the `id`
1421
- * const planWithIdOnly = await prisma.plan.createManyAndReturn({
1422
- * select: { id: true },
1423
- * data: [
1424
- * // ... provide data here
1425
- * ]
1426
- * })
1427
- * Note, that providing `undefined` is treated as the value not being there.
1428
- * Read more here: https://pris.ly/d/null-undefined
1429
- *
1430
- */
1431
- createManyAndReturn<T extends PlanCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PlanCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1432
-
1433
- /**
1434
- * Delete a Plan.
1435
- * @param {PlanDeleteArgs} args - Arguments to delete one Plan.
1436
- * @example
1437
- * // Delete one Plan
1438
- * const Plan = await prisma.plan.delete({
1439
- * where: {
1440
- * // ... filter to delete one Plan
1441
- * }
1442
- * })
1443
- *
1444
- */
1445
- delete<T extends PlanDeleteArgs>(args: Prisma.SelectSubset<T, PlanDeleteArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1446
-
1447
- /**
1448
- * Update one Plan.
1449
- * @param {PlanUpdateArgs} args - Arguments to update one Plan.
1450
- * @example
1451
- * // Update one Plan
1452
- * const plan = await prisma.plan.update({
1453
- * where: {
1454
- * // ... provide filter here
1455
- * },
1456
- * data: {
1457
- * // ... provide data here
1458
- * }
1459
- * })
1460
- *
1461
- */
1462
- update<T extends PlanUpdateArgs>(args: Prisma.SelectSubset<T, PlanUpdateArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1463
-
1464
- /**
1465
- * Delete zero or more Plans.
1466
- * @param {PlanDeleteManyArgs} args - Arguments to filter Plans to delete.
1467
- * @example
1468
- * // Delete a few Plans
1469
- * const { count } = await prisma.plan.deleteMany({
1470
- * where: {
1471
- * // ... provide filter here
1472
- * }
1473
- * })
1474
- *
1475
- */
1476
- deleteMany<T extends PlanDeleteManyArgs>(args?: Prisma.SelectSubset<T, PlanDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1477
-
1478
- /**
1479
- * Update zero or more Plans.
1480
- * Note, that providing `undefined` is treated as the value not being there.
1481
- * Read more here: https://pris.ly/d/null-undefined
1482
- * @param {PlanUpdateManyArgs} args - Arguments to update one or more rows.
1483
- * @example
1484
- * // Update many Plans
1485
- * const plan = await prisma.plan.updateMany({
1486
- * where: {
1487
- * // ... provide filter here
1488
- * },
1489
- * data: {
1490
- * // ... provide data here
1491
- * }
1492
- * })
1493
- *
1494
- */
1495
- updateMany<T extends PlanUpdateManyArgs>(args: Prisma.SelectSubset<T, PlanUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1496
-
1497
- /**
1498
- * Update zero or more Plans and returns the data updated in the database.
1499
- * @param {PlanUpdateManyAndReturnArgs} args - Arguments to update many Plans.
1500
- * @example
1501
- * // Update many Plans
1502
- * const plan = await prisma.plan.updateManyAndReturn({
1503
- * where: {
1504
- * // ... provide filter here
1505
- * },
1506
- * data: [
1507
- * // ... provide data here
1508
- * ]
1509
- * })
1510
- *
1511
- * // Update zero or more Plans and only return the `id`
1512
- * const planWithIdOnly = await prisma.plan.updateManyAndReturn({
1513
- * select: { id: true },
1514
- * where: {
1515
- * // ... provide filter here
1516
- * },
1517
- * data: [
1518
- * // ... provide data here
1519
- * ]
1520
- * })
1521
- * Note, that providing `undefined` is treated as the value not being there.
1522
- * Read more here: https://pris.ly/d/null-undefined
1523
- *
1524
- */
1525
- updateManyAndReturn<T extends PlanUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PlanUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1526
-
1527
- /**
1528
- * Create or update one Plan.
1529
- * @param {PlanUpsertArgs} args - Arguments to update or create a Plan.
1530
- * @example
1531
- * // Update or create a Plan
1532
- * const plan = await prisma.plan.upsert({
1533
- * create: {
1534
- * // ... data to create a Plan
1535
- * },
1536
- * update: {
1537
- * // ... in case it already exists, update
1538
- * },
1539
- * where: {
1540
- * // ... the filter for the Plan we want to update
1541
- * }
1542
- * })
1543
- */
1544
- upsert<T extends PlanUpsertArgs>(args: Prisma.SelectSubset<T, PlanUpsertArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1545
-
1546
-
1547
- /**
1548
- * Count the number of Plans.
1549
- * Note, that providing `undefined` is treated as the value not being there.
1550
- * Read more here: https://pris.ly/d/null-undefined
1551
- * @param {PlanCountArgs} args - Arguments to filter Plans to count.
1552
- * @example
1553
- * // Count the number of Plans
1554
- * const count = await prisma.plan.count({
1555
- * where: {
1556
- * // ... the filter for the Plans we want to count
1557
- * }
1558
- * })
1559
- **/
1560
- count<T extends PlanCountArgs>(
1561
- args?: Prisma.Subset<T, PlanCountArgs>,
1562
- ): Prisma.PrismaPromise<
1563
- T extends runtime.Types.Utils.Record<'select', any>
1564
- ? T['select'] extends true
1565
- ? number
1566
- : Prisma.GetScalarType<T['select'], PlanCountAggregateOutputType>
1567
- : number
1568
- >
1569
-
1570
- /**
1571
- * Allows you to perform aggregations operations on a Plan.
1572
- * Note, that providing `undefined` is treated as the value not being there.
1573
- * Read more here: https://pris.ly/d/null-undefined
1574
- * @param {PlanAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1575
- * @example
1576
- * // Ordered by age ascending
1577
- * // Where email contains prisma.io
1578
- * // Limited to the 10 users
1579
- * const aggregations = await prisma.user.aggregate({
1580
- * _avg: {
1581
- * age: true,
1582
- * },
1583
- * where: {
1584
- * email: {
1585
- * contains: "prisma.io",
1586
- * },
1587
- * },
1588
- * orderBy: {
1589
- * age: "asc",
1590
- * },
1591
- * take: 10,
1592
- * })
1593
- **/
1594
- aggregate<T extends PlanAggregateArgs>(args: Prisma.Subset<T, PlanAggregateArgs>): Prisma.PrismaPromise<GetPlanAggregateType<T>>
1595
-
1596
- /**
1597
- * Group by Plan.
1598
- * Note, that providing `undefined` is treated as the value not being there.
1599
- * Read more here: https://pris.ly/d/null-undefined
1600
- * @param {PlanGroupByArgs} args - Group by arguments.
1601
- * @example
1602
- * // Group by city, order by createdAt, get count
1603
- * const result = await prisma.user.groupBy({
1604
- * by: ['city', 'createdAt'],
1605
- * orderBy: {
1606
- * createdAt: true
1607
- * },
1608
- * _count: {
1609
- * _all: true
1610
- * },
1611
- * })
1612
- *
1613
- **/
1614
- groupBy<
1615
- T extends PlanGroupByArgs,
1616
- HasSelectOrTake extends Prisma.Or<
1617
- Prisma.Extends<'skip', Prisma.Keys<T>>,
1618
- Prisma.Extends<'take', Prisma.Keys<T>>
1619
- >,
1620
- OrderByArg extends Prisma.True extends HasSelectOrTake
1621
- ? { orderBy: PlanGroupByArgs['orderBy'] }
1622
- : { orderBy?: PlanGroupByArgs['orderBy'] },
1623
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1624
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1625
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1626
- HavingFields extends Prisma.GetHavingFields<T['having']>,
1627
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1628
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1629
- InputErrors extends ByEmpty extends Prisma.True
1630
- ? `Error: "by" must not be empty.`
1631
- : HavingValid extends Prisma.False
1632
- ? {
1633
- [P in HavingFields]: P extends ByFields
1634
- ? never
1635
- : P extends string
1636
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1637
- : [
1638
- Error,
1639
- 'Field ',
1640
- P,
1641
- ` in "having" needs to be provided in "by"`,
1642
- ]
1643
- }[HavingFields]
1644
- : 'take' extends Prisma.Keys<T>
1645
- ? 'orderBy' extends Prisma.Keys<T>
1646
- ? ByValid extends Prisma.True
1647
- ? {}
1648
- : {
1649
- [P in OrderFields]: P extends ByFields
1650
- ? never
1651
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1652
- }[OrderFields]
1653
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1654
- : 'skip' extends Prisma.Keys<T>
1655
- ? 'orderBy' extends Prisma.Keys<T>
1656
- ? ByValid extends Prisma.True
1657
- ? {}
1658
- : {
1659
- [P in OrderFields]: P extends ByFields
1660
- ? never
1661
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1662
- }[OrderFields]
1663
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1664
- : ByValid extends Prisma.True
1665
- ? {}
1666
- : {
1667
- [P in OrderFields]: P extends ByFields
1668
- ? never
1669
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1670
- }[OrderFields]
1671
- >(args: Prisma.SubsetIntersection<T, PlanGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPlanGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1672
- /**
1673
- * Fields of the Plan model
1674
- */
1675
- readonly fields: PlanFieldRefs;
1676
- }
1677
-
1678
- /**
1679
- * The delegate class that acts as a "Promise-like" for Plan.
1680
- * Why is this prefixed with `Prisma__`?
1681
- * Because we want to prevent naming conflicts as mentioned in
1682
- * https://github.com/prisma/prisma-client-js/issues/707
1683
- */
1684
- export interface Prisma__PlanClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1685
- readonly [Symbol.toStringTag]: "PrismaPromise"
1686
- subscriptions<T extends Prisma.Plan$subscriptionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Plan$subscriptionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1687
- /**
1688
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1689
- * @param onfulfilled The callback to execute when the Promise is resolved.
1690
- * @param onrejected The callback to execute when the Promise is rejected.
1691
- * @returns A Promise for the completion of which ever callback is executed.
1692
- */
1693
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
1694
- /**
1695
- * Attaches a callback for only the rejection of the Promise.
1696
- * @param onrejected The callback to execute when the Promise is rejected.
1697
- * @returns A Promise for the completion of the callback.
1698
- */
1699
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1700
- /**
1701
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1702
- * resolved value cannot be modified from the callback.
1703
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1704
- * @returns A Promise for the completion of the callback.
1705
- */
1706
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1707
- }
1708
-
1709
-
1710
-
1711
-
1712
- /**
1713
- * Fields of the Plan model
1714
- */
1715
- export interface PlanFieldRefs {
1716
- readonly id: Prisma.FieldRef<"Plan", 'String'>
1717
- readonly name: Prisma.FieldRef<"Plan", 'String'>
1718
- readonly displayName: Prisma.FieldRef<"Plan", 'String'>
1719
- readonly description: Prisma.FieldRef<"Plan", 'String'>
1720
- readonly priceMonthly: Prisma.FieldRef<"Plan", 'Int'>
1721
- readonly priceYearly: Prisma.FieldRef<"Plan", 'Int'>
1722
- readonly currency: Prisma.FieldRef<"Plan", 'String'>
1723
- readonly maxSeats: Prisma.FieldRef<"Plan", 'Int'>
1724
- readonly maxGuestSeats: Prisma.FieldRef<"Plan", 'Int'>
1725
- readonly maxWorkspaces: Prisma.FieldRef<"Plan", 'Int'>
1726
- readonly aiQuotaMonthly: Prisma.FieldRef<"Plan", 'Int'>
1727
- readonly features: Prisma.FieldRef<"Plan", 'Json'>
1728
- readonly isPublic: Prisma.FieldRef<"Plan", 'Boolean'>
1729
- readonly sortOrder: Prisma.FieldRef<"Plan", 'Int'>
1730
- readonly createdAt: Prisma.FieldRef<"Plan", 'DateTime'>
1731
- readonly updatedAt: Prisma.FieldRef<"Plan", 'DateTime'>
1732
- readonly providerPriceIdUsd: Prisma.FieldRef<"Plan", 'String'>
1733
- readonly providerPriceIdCny: Prisma.FieldRef<"Plan", 'String'>
1734
- readonly providerPriceIdUsdYearly: Prisma.FieldRef<"Plan", 'String'>
1735
- readonly providerPriceIdCnyYearly: Prisma.FieldRef<"Plan", 'String'>
1736
- readonly seatPriceMonthly: Prisma.FieldRef<"Plan", 'Int'>
1737
- readonly providerSeatPriceIdUsd: Prisma.FieldRef<"Plan", 'String'>
1738
- readonly providerSeatPriceIdCny: Prisma.FieldRef<"Plan", 'String'>
1739
- readonly agentQuota: Prisma.FieldRef<"Plan", 'Int'>
1740
- readonly skillQuota: Prisma.FieldRef<"Plan", 'Int'>
1741
- readonly sandboxMinutesMonthly: Prisma.FieldRef<"Plan", 'Int'>
1742
- readonly mediaGenerationsMonthly: Prisma.FieldRef<"Plan", 'Int'>
1743
- readonly galleryStorageMb: Prisma.FieldRef<"Plan", 'Int'>
1744
- }
1745
-
1746
-
1747
- // Custom InputTypes
1748
- /**
1749
- * Plan findUnique
1750
- */
1751
- export type PlanFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1752
- /**
1753
- * Select specific fields to fetch from the Plan
1754
- */
1755
- select?: Prisma.PlanSelect<ExtArgs> | null
1756
- /**
1757
- * Omit specific fields from the Plan
1758
- */
1759
- omit?: Prisma.PlanOmit<ExtArgs> | null
1760
- /**
1761
- * Choose, which related nodes to fetch as well
1762
- */
1763
- include?: Prisma.PlanInclude<ExtArgs> | null
1764
- /**
1765
- * Filter, which Plan to fetch.
1766
- */
1767
- where: Prisma.PlanWhereUniqueInput
1768
- }
1769
-
1770
- /**
1771
- * Plan findUniqueOrThrow
1772
- */
1773
- export type PlanFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1774
- /**
1775
- * Select specific fields to fetch from the Plan
1776
- */
1777
- select?: Prisma.PlanSelect<ExtArgs> | null
1778
- /**
1779
- * Omit specific fields from the Plan
1780
- */
1781
- omit?: Prisma.PlanOmit<ExtArgs> | null
1782
- /**
1783
- * Choose, which related nodes to fetch as well
1784
- */
1785
- include?: Prisma.PlanInclude<ExtArgs> | null
1786
- /**
1787
- * Filter, which Plan to fetch.
1788
- */
1789
- where: Prisma.PlanWhereUniqueInput
1790
- }
1791
-
1792
- /**
1793
- * Plan findFirst
1794
- */
1795
- export type PlanFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1796
- /**
1797
- * Select specific fields to fetch from the Plan
1798
- */
1799
- select?: Prisma.PlanSelect<ExtArgs> | null
1800
- /**
1801
- * Omit specific fields from the Plan
1802
- */
1803
- omit?: Prisma.PlanOmit<ExtArgs> | null
1804
- /**
1805
- * Choose, which related nodes to fetch as well
1806
- */
1807
- include?: Prisma.PlanInclude<ExtArgs> | null
1808
- /**
1809
- * Filter, which Plan to fetch.
1810
- */
1811
- where?: Prisma.PlanWhereInput
1812
- /**
1813
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1814
- *
1815
- * Determine the order of Plans to fetch.
1816
- */
1817
- orderBy?: Prisma.PlanOrderByWithRelationInput | Prisma.PlanOrderByWithRelationInput[]
1818
- /**
1819
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1820
- *
1821
- * Sets the position for searching for Plans.
1822
- */
1823
- cursor?: Prisma.PlanWhereUniqueInput
1824
- /**
1825
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1826
- *
1827
- * Take `±n` Plans from the position of the cursor.
1828
- */
1829
- take?: number
1830
- /**
1831
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1832
- *
1833
- * Skip the first `n` Plans.
1834
- */
1835
- skip?: number
1836
- /**
1837
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1838
- *
1839
- * Filter by unique combinations of Plans.
1840
- */
1841
- distinct?: Prisma.PlanScalarFieldEnum | Prisma.PlanScalarFieldEnum[]
1842
- }
1843
-
1844
- /**
1845
- * Plan findFirstOrThrow
1846
- */
1847
- export type PlanFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1848
- /**
1849
- * Select specific fields to fetch from the Plan
1850
- */
1851
- select?: Prisma.PlanSelect<ExtArgs> | null
1852
- /**
1853
- * Omit specific fields from the Plan
1854
- */
1855
- omit?: Prisma.PlanOmit<ExtArgs> | null
1856
- /**
1857
- * Choose, which related nodes to fetch as well
1858
- */
1859
- include?: Prisma.PlanInclude<ExtArgs> | null
1860
- /**
1861
- * Filter, which Plan to fetch.
1862
- */
1863
- where?: Prisma.PlanWhereInput
1864
- /**
1865
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1866
- *
1867
- * Determine the order of Plans to fetch.
1868
- */
1869
- orderBy?: Prisma.PlanOrderByWithRelationInput | Prisma.PlanOrderByWithRelationInput[]
1870
- /**
1871
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1872
- *
1873
- * Sets the position for searching for Plans.
1874
- */
1875
- cursor?: Prisma.PlanWhereUniqueInput
1876
- /**
1877
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1878
- *
1879
- * Take `±n` Plans from the position of the cursor.
1880
- */
1881
- take?: number
1882
- /**
1883
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1884
- *
1885
- * Skip the first `n` Plans.
1886
- */
1887
- skip?: number
1888
- /**
1889
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1890
- *
1891
- * Filter by unique combinations of Plans.
1892
- */
1893
- distinct?: Prisma.PlanScalarFieldEnum | Prisma.PlanScalarFieldEnum[]
1894
- }
1895
-
1896
- /**
1897
- * Plan findMany
1898
- */
1899
- export type PlanFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1900
- /**
1901
- * Select specific fields to fetch from the Plan
1902
- */
1903
- select?: Prisma.PlanSelect<ExtArgs> | null
1904
- /**
1905
- * Omit specific fields from the Plan
1906
- */
1907
- omit?: Prisma.PlanOmit<ExtArgs> | null
1908
- /**
1909
- * Choose, which related nodes to fetch as well
1910
- */
1911
- include?: Prisma.PlanInclude<ExtArgs> | null
1912
- /**
1913
- * Filter, which Plans to fetch.
1914
- */
1915
- where?: Prisma.PlanWhereInput
1916
- /**
1917
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1918
- *
1919
- * Determine the order of Plans to fetch.
1920
- */
1921
- orderBy?: Prisma.PlanOrderByWithRelationInput | Prisma.PlanOrderByWithRelationInput[]
1922
- /**
1923
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1924
- *
1925
- * Sets the position for listing Plans.
1926
- */
1927
- cursor?: Prisma.PlanWhereUniqueInput
1928
- /**
1929
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1930
- *
1931
- * Take `±n` Plans from the position of the cursor.
1932
- */
1933
- take?: number
1934
- /**
1935
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1936
- *
1937
- * Skip the first `n` Plans.
1938
- */
1939
- skip?: number
1940
- /**
1941
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1942
- *
1943
- * Filter by unique combinations of Plans.
1944
- */
1945
- distinct?: Prisma.PlanScalarFieldEnum | Prisma.PlanScalarFieldEnum[]
1946
- }
1947
-
1948
- /**
1949
- * Plan create
1950
- */
1951
- export type PlanCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1952
- /**
1953
- * Select specific fields to fetch from the Plan
1954
- */
1955
- select?: Prisma.PlanSelect<ExtArgs> | null
1956
- /**
1957
- * Omit specific fields from the Plan
1958
- */
1959
- omit?: Prisma.PlanOmit<ExtArgs> | null
1960
- /**
1961
- * Choose, which related nodes to fetch as well
1962
- */
1963
- include?: Prisma.PlanInclude<ExtArgs> | null
1964
- /**
1965
- * The data needed to create a Plan.
1966
- */
1967
- data: Prisma.XOR<Prisma.PlanCreateInput, Prisma.PlanUncheckedCreateInput>
1968
- }
1969
-
1970
- /**
1971
- * Plan createMany
1972
- */
1973
- export type PlanCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1974
- /**
1975
- * The data used to create many Plans.
1976
- */
1977
- data: Prisma.PlanCreateManyInput | Prisma.PlanCreateManyInput[]
1978
- }
1979
-
1980
- /**
1981
- * Plan createManyAndReturn
1982
- */
1983
- export type PlanCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1984
- /**
1985
- * Select specific fields to fetch from the Plan
1986
- */
1987
- select?: Prisma.PlanSelectCreateManyAndReturn<ExtArgs> | null
1988
- /**
1989
- * Omit specific fields from the Plan
1990
- */
1991
- omit?: Prisma.PlanOmit<ExtArgs> | null
1992
- /**
1993
- * The data used to create many Plans.
1994
- */
1995
- data: Prisma.PlanCreateManyInput | Prisma.PlanCreateManyInput[]
1996
- }
1997
-
1998
- /**
1999
- * Plan update
2000
- */
2001
- export type PlanUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2002
- /**
2003
- * Select specific fields to fetch from the Plan
2004
- */
2005
- select?: Prisma.PlanSelect<ExtArgs> | null
2006
- /**
2007
- * Omit specific fields from the Plan
2008
- */
2009
- omit?: Prisma.PlanOmit<ExtArgs> | null
2010
- /**
2011
- * Choose, which related nodes to fetch as well
2012
- */
2013
- include?: Prisma.PlanInclude<ExtArgs> | null
2014
- /**
2015
- * The data needed to update a Plan.
2016
- */
2017
- data: Prisma.XOR<Prisma.PlanUpdateInput, Prisma.PlanUncheckedUpdateInput>
2018
- /**
2019
- * Choose, which Plan to update.
2020
- */
2021
- where: Prisma.PlanWhereUniqueInput
2022
- }
2023
-
2024
- /**
2025
- * Plan updateMany
2026
- */
2027
- export type PlanUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2028
- /**
2029
- * The data used to update Plans.
2030
- */
2031
- data: Prisma.XOR<Prisma.PlanUpdateManyMutationInput, Prisma.PlanUncheckedUpdateManyInput>
2032
- /**
2033
- * Filter which Plans to update
2034
- */
2035
- where?: Prisma.PlanWhereInput
2036
- /**
2037
- * Limit how many Plans to update.
2038
- */
2039
- limit?: number
2040
- }
2041
-
2042
- /**
2043
- * Plan updateManyAndReturn
2044
- */
2045
- export type PlanUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2046
- /**
2047
- * Select specific fields to fetch from the Plan
2048
- */
2049
- select?: Prisma.PlanSelectUpdateManyAndReturn<ExtArgs> | null
2050
- /**
2051
- * Omit specific fields from the Plan
2052
- */
2053
- omit?: Prisma.PlanOmit<ExtArgs> | null
2054
- /**
2055
- * The data used to update Plans.
2056
- */
2057
- data: Prisma.XOR<Prisma.PlanUpdateManyMutationInput, Prisma.PlanUncheckedUpdateManyInput>
2058
- /**
2059
- * Filter which Plans to update
2060
- */
2061
- where?: Prisma.PlanWhereInput
2062
- /**
2063
- * Limit how many Plans to update.
2064
- */
2065
- limit?: number
2066
- }
2067
-
2068
- /**
2069
- * Plan upsert
2070
- */
2071
- export type PlanUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2072
- /**
2073
- * Select specific fields to fetch from the Plan
2074
- */
2075
- select?: Prisma.PlanSelect<ExtArgs> | null
2076
- /**
2077
- * Omit specific fields from the Plan
2078
- */
2079
- omit?: Prisma.PlanOmit<ExtArgs> | null
2080
- /**
2081
- * Choose, which related nodes to fetch as well
2082
- */
2083
- include?: Prisma.PlanInclude<ExtArgs> | null
2084
- /**
2085
- * The filter to search for the Plan to update in case it exists.
2086
- */
2087
- where: Prisma.PlanWhereUniqueInput
2088
- /**
2089
- * In case the Plan found by the `where` argument doesn't exist, create a new Plan with this data.
2090
- */
2091
- create: Prisma.XOR<Prisma.PlanCreateInput, Prisma.PlanUncheckedCreateInput>
2092
- /**
2093
- * In case the Plan was found with the provided `where` argument, update it with this data.
2094
- */
2095
- update: Prisma.XOR<Prisma.PlanUpdateInput, Prisma.PlanUncheckedUpdateInput>
2096
- }
2097
-
2098
- /**
2099
- * Plan delete
2100
- */
2101
- export type PlanDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2102
- /**
2103
- * Select specific fields to fetch from the Plan
2104
- */
2105
- select?: Prisma.PlanSelect<ExtArgs> | null
2106
- /**
2107
- * Omit specific fields from the Plan
2108
- */
2109
- omit?: Prisma.PlanOmit<ExtArgs> | null
2110
- /**
2111
- * Choose, which related nodes to fetch as well
2112
- */
2113
- include?: Prisma.PlanInclude<ExtArgs> | null
2114
- /**
2115
- * Filter which Plan to delete.
2116
- */
2117
- where: Prisma.PlanWhereUniqueInput
2118
- }
2119
-
2120
- /**
2121
- * Plan deleteMany
2122
- */
2123
- export type PlanDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2124
- /**
2125
- * Filter which Plans to delete
2126
- */
2127
- where?: Prisma.PlanWhereInput
2128
- /**
2129
- * Limit how many Plans to delete.
2130
- */
2131
- limit?: number
2132
- }
2133
-
2134
- /**
2135
- * Plan.subscriptions
2136
- */
2137
- export type Plan$subscriptionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2138
- /**
2139
- * Select specific fields to fetch from the Subscription
2140
- */
2141
- select?: Prisma.SubscriptionSelect<ExtArgs> | null
2142
- /**
2143
- * Omit specific fields from the Subscription
2144
- */
2145
- omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2146
- /**
2147
- * Choose, which related nodes to fetch as well
2148
- */
2149
- include?: Prisma.SubscriptionInclude<ExtArgs> | null
2150
- where?: Prisma.SubscriptionWhereInput
2151
- orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[]
2152
- cursor?: Prisma.SubscriptionWhereUniqueInput
2153
- take?: number
2154
- skip?: number
2155
- distinct?: Prisma.SubscriptionScalarFieldEnum | Prisma.SubscriptionScalarFieldEnum[]
2156
- }
2157
-
2158
- /**
2159
- * Plan without action
2160
- */
2161
- export type PlanDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2162
- /**
2163
- * Select specific fields to fetch from the Plan
2164
- */
2165
- select?: Prisma.PlanSelect<ExtArgs> | null
2166
- /**
2167
- * Omit specific fields from the Plan
2168
- */
2169
- omit?: Prisma.PlanOmit<ExtArgs> | null
2170
- /**
2171
- * Choose, which related nodes to fetch as well
2172
- */
2173
- include?: Prisma.PlanInclude<ExtArgs> | null
2174
- }