@allbluecn/database 0.3.14 → 0.4.1

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