@minimalcorp/tsunagi 0.3.3 → 0.4.2

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 (182) hide show
  1. package/.next/standalone/apps/web/.next/BUILD_ID +1 -1
  2. package/.next/standalone/apps/web/.next/build-manifest.json +3 -3
  3. package/.next/standalone/apps/web/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/apps/web/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/apps/web/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  9. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  10. package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/.next/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/apps/web/.next/server/app/_not-found.html +1 -1
  13. package/.next/standalone/apps/web/.next/server/app/_not-found.rsc +2 -2
  14. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  15. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  16. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  17. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  19. package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  20. package/.next/standalone/apps/web/.next/server/app/index.html +1 -1
  21. package/.next/standalone/apps/web/.next/server/app/index.rsc +3 -3
  22. package/.next/standalone/apps/web/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  23. package/.next/standalone/apps/web/.next/server/app/index.segments/_full.segment.rsc +3 -3
  24. package/.next/standalone/apps/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
  25. package/.next/standalone/apps/web/.next/server/app/index.segments/_index.segment.rsc +2 -2
  26. package/.next/standalone/apps/web/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  27. package/.next/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
  28. package/.next/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
  29. package/.next/standalone/apps/web/.next/server/app/settings/page.js.nft.json +1 -1
  30. package/.next/standalone/apps/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/apps/web/.next/server/app/settings.html +1 -1
  32. package/.next/standalone/apps/web/.next/server/app/settings.rsc +3 -3
  33. package/.next/standalone/apps/web/.next/server/app/settings.segments/_full.segment.rsc +3 -3
  34. package/.next/standalone/apps/web/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  35. package/.next/standalone/apps/web/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  36. package/.next/standalone/apps/web/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  37. package/.next/standalone/apps/web/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  38. package/.next/standalone/apps/web/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  39. package/.next/standalone/apps/web/.next/server/app/tasks/[id]/page.js.nft.json +1 -1
  40. package/.next/standalone/apps/web/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  41. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0qjafjt._.js +1 -1
  42. package/.next/standalone/apps/web/.next/server/chunks/ssr/{_13w5ytx._.js → _01~tp-i._.js} +2 -2
  43. package/.next/standalone/apps/web/.next/server/chunks/ssr/{_0kflgfj._.js → _03lm.~7._.js} +3 -3
  44. package/.next/standalone/apps/web/.next/server/chunks/ssr/{_0g79jqo._.js → _09br4yx._.js} +3 -3
  45. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0g.cd6a._.js +2 -2
  46. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0h-u~an._.js +7 -0
  47. package/.next/standalone/apps/web/.next/server/chunks/ssr/{_139_l.u._.js → _0kkt7a_._.js} +2 -2
  48. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0ts4rpp._.js +3 -0
  49. package/.next/standalone/apps/web/.next/server/chunks/ssr/_13ne7ej._.js +3 -0
  50. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web_src_app_settings_page_tsx_0i6itlb._.js +1 -3
  51. package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web_src_app_tasks_[id]_page_tsx_0jshsm2._.js +3 -3
  52. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0cv326~._.js → node_modules_06jdmu~._.js} +1 -1
  53. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0h.vgyn._.js → node_modules_0ac2-~z._.js} +1 -1
  54. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0sn0lqb._.js → node_modules_0gglkx9._.js} +1 -1
  55. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0tod6y8._.js → node_modules_0h4h_aw._.js} +1 -1
  56. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0q_5qo~._.js → node_modules_0i5v48e._.js} +1 -1
  57. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_09d2oqj._.js → node_modules_0k3x6_w._.js} +1 -1
  58. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0oip5a1._.js → node_modules_0q8yuvq._.js} +1 -1
  59. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0npujym._.js → node_modules_0rnsluy._.js} +1 -1
  60. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0krwgny._.js → node_modules_0t-jssg._.js} +1 -1
  61. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0l23gkf._.js → node_modules_0t6ysh_._.js} +1 -1
  62. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_11-z65a._.js → node_modules_0ut2-yw._.js} +1 -1
  63. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0_huoqd._.js → node_modules_0vq~hzy._.js} +1 -1
  64. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0a57phw._.js → node_modules_0w6fm3f._.js} +2 -2
  65. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0xp9nhx._.js → node_modules_0yb2sh9._.js} +1 -1
  66. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0q_xfyl._.js → node_modules_0yc~s8p._.js} +1 -1
  67. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_0ak_3rk._.js → node_modules_0zi0w9_._.js} +1 -1
  68. package/.next/standalone/apps/web/.next/server/chunks/ssr/{node_modules_04pfam-._.js → node_modules_0zzdoud._.js} +1 -1
  69. package/.next/standalone/apps/web/.next/server/chunks/ssr/{_0w2dm3r._.js → node_modules_lucide-react_dist_esm_icons_0zerlct._.js} +2 -2
  70. package/.next/standalone/apps/web/.next/server/middleware-build-manifest.js +3 -3
  71. package/.next/standalone/apps/web/.next/server/pages/404.html +1 -1
  72. package/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
  73. package/.next/standalone/apps/web/.next/server/server-reference-manifest.js +1 -1
  74. package/.next/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
  75. package/.next/standalone/apps/web/.next/static/chunks/{0l83q95s~tih4.js → 08s3o7outb~0z.js} +1 -1
  76. package/.next/standalone/apps/web/.next/static/chunks/0a2u28f44p7t..js +1 -0
  77. package/.next/standalone/apps/web/.next/static/chunks/{0oricprxoxb_d.js → 0ae7zmpe8063z.js} +10 -10
  78. package/.next/standalone/apps/web/.next/static/chunks/0dgu~u-1e5b7-.js +5 -0
  79. package/.next/standalone/apps/web/.next/static/chunks/{0whl1y16cvn5q.js → 0e8u7rqrqfiiy.js} +1 -1
  80. package/.next/standalone/apps/web/.next/static/chunks/{0z60ewb40i2ce.js → 0gxhy80~c0gvp.js} +1 -1
  81. package/.next/standalone/apps/web/.next/static/chunks/0n72w4sxrwoj4.js +5 -0
  82. package/.next/standalone/apps/web/.next/static/chunks/0o1bh_qwdvmid.css +4 -0
  83. package/.next/standalone/apps/web/.next/static/chunks/{17~93fal1fw_d.js → 0uugzgqr-ug3_.js} +1 -1
  84. package/.next/standalone/apps/web/.next/static/chunks/{149sia28cskw9.js → 0yp~t_.pozr-d.js} +6 -6
  85. package/.next/standalone/apps/web/.next/static/chunks/0ysgl4vmer~v5.js +6 -0
  86. package/.next/standalone/apps/web/.next/static/chunks/{053h220fng_68.js → 11u7x4ic4~mp3.js} +10 -10
  87. package/.next/standalone/apps/web/.next/static/chunks/13_9zaka0bif_.js +1 -0
  88. package/.next/standalone/apps/web/package.json +1 -3
  89. package/README.md +1 -1
  90. package/dist/app.js +3 -4
  91. package/dist/plugin-lifecycle.d.ts +5 -3
  92. package/dist/plugin-lifecycle.js +40 -16
  93. package/dist/prisma/migrations/20261011000000_add_codex_support/migration.sql +20 -0
  94. package/dist/prisma/schema.prisma +9 -5
  95. package/dist/server/generated/prisma/browser.d.ts +2 -2
  96. package/dist/server/generated/prisma/client.d.ts +2 -2
  97. package/dist/server/generated/prisma/internal/class.d.ts +4 -4
  98. package/dist/server/generated/prisma/internal/class.js +4 -4
  99. package/dist/server/generated/prisma/internal/prismaNamespace.d.ts +41 -39
  100. package/dist/server/generated/prisma/internal/prismaNamespace.js +4 -2
  101. package/dist/server/generated/prisma/internal/prismaNamespaceBrowser.d.ts +5 -3
  102. package/dist/server/generated/prisma/internal/prismaNamespaceBrowser.js +4 -2
  103. package/dist/server/generated/prisma/models/AgentProfile.d.ts +972 -0
  104. package/dist/server/generated/prisma/models/Tab.d.ts +36 -1
  105. package/dist/server/generated/prisma/models.d.ts +1 -1
  106. package/dist/server/index.js +2 -7
  107. package/dist/server/lib/agent-profiles.d.ts +44 -0
  108. package/dist/server/lib/agent-profiles.js +130 -0
  109. package/dist/server/lib/agents/claude.d.ts +2 -0
  110. package/dist/server/lib/agents/claude.js +130 -0
  111. package/dist/server/lib/agents/cli.d.ts +14 -0
  112. package/dist/server/lib/agents/cli.js +57 -0
  113. package/dist/server/lib/agents/codex.d.ts +2 -0
  114. package/dist/server/lib/agents/codex.js +285 -0
  115. package/dist/server/lib/agents/index.d.ts +11 -0
  116. package/dist/server/lib/agents/index.js +19 -0
  117. package/dist/server/lib/agents/login-callback.d.ts +11 -0
  118. package/dist/server/lib/agents/login-callback.js +47 -0
  119. package/dist/server/lib/agents/types.d.ts +77 -0
  120. package/dist/server/lib/agents/types.js +8 -0
  121. package/dist/server/lib/pty-env-sync.js +1 -1
  122. package/dist/server/lib/pty-launch.d.ts +8 -10
  123. package/dist/server/lib/pty-launch.js +20 -58
  124. package/dist/server/lib/repositories/task.js +1 -0
  125. package/dist/server/lib/tab-todos.d.ts +5 -0
  126. package/dist/server/lib/tab-todos.js +13 -0
  127. package/dist/server/pty-manager.d.ts +7 -2
  128. package/dist/server/pty-manager.js +13 -0
  129. package/dist/server/routes/agent-profiles.d.ts +2 -0
  130. package/dist/server/routes/agent-profiles.js +193 -0
  131. package/dist/server/routes/env.js +2 -2
  132. package/dist/server/routes/hooks.d.ts +4 -19
  133. package/dist/server/routes/hooks.js +83 -73
  134. package/dist/server/routes/mcp.js +2 -2
  135. package/dist/server/routes/onboarding.js +19 -10
  136. package/dist/server/routes/tasks.js +4 -4
  137. package/dist/server/routes/terminal.js +47 -34
  138. package/dist/with-plugin.js +3 -3
  139. package/npm-shrinkwrap.json +37 -24
  140. package/package.json +1 -1
  141. package/tsunagi-marketplace/codex/tsunagi-task.md +120 -0
  142. package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__11y.qj~._.js +0 -3
  143. package/.next/standalone/apps/web/.next/server/chunks/ssr/_03vftq7._.js +0 -7
  144. package/.next/standalone/apps/web/.next/server/chunks/ssr/_0hnxatt._.js +0 -3
  145. package/.next/standalone/apps/web/.next/server/chunks/ssr/_10gk93.._.js +0 -3
  146. package/.next/standalone/apps/web/.next/static/chunks/0.gcmzq82~36i.js +0 -1
  147. package/.next/standalone/apps/web/.next/static/chunks/06gfh91..uydi.js +0 -5
  148. package/.next/standalone/apps/web/.next/static/chunks/0b90ys7wq-p.4.css +0 -4
  149. package/.next/standalone/apps/web/.next/static/chunks/0crn03y2tj0lu.js +0 -6
  150. package/.next/standalone/apps/web/.next/static/chunks/0lvl3ec93cab_.js +0 -7
  151. package/.next/standalone/apps/web/.next/static/chunks/0makl-d3f0_qh.js +0 -2878
  152. package/.next/standalone/apps/web/.next/static/chunks/0o6ggm7jrim25.js +0 -1
  153. package/.next/standalone/apps/web/public/vad/ort-wasm-simd-threaded.mjs +0 -59
  154. package/.next/standalone/apps/web/public/vad/ort-wasm-simd-threaded.wasm +0 -0
  155. package/.next/standalone/apps/web/public/vad/silero_vad_v5.onnx +0 -0
  156. package/.next/standalone/apps/web/public/vad/vad.worklet.bundle.min.js +0 -1
  157. package/dist/server/generated/prisma/models/ClaudeProfile.d.ts +0 -939
  158. package/dist/server/lib/asr-models.d.ts +0 -7
  159. package/dist/server/lib/asr-models.js +0 -51
  160. package/dist/server/lib/claude-profiles.d.ts +0 -49
  161. package/dist/server/lib/claude-profiles.js +0 -168
  162. package/dist/server/lib/process-port.d.ts +0 -1
  163. package/dist/server/lib/process-port.js +0 -28
  164. package/dist/server/lib/python-venv.d.ts +0 -4
  165. package/dist/server/lib/python-venv.js +0 -66
  166. package/dist/server/lib/voice-debug-log.d.ts +0 -9
  167. package/dist/server/lib/voice-debug-log.js +0 -28
  168. package/dist/server/lib/whisper-process.d.ts +0 -40
  169. package/dist/server/lib/whisper-process.js +0 -333
  170. package/dist/server/routes/claude-profiles.d.ts +0 -2
  171. package/dist/server/routes/claude-profiles.js +0 -138
  172. package/dist/server/routes/whisper.d.ts +0 -2
  173. package/dist/server/routes/whisper.js +0 -103
  174. package/dist/whisper-server/README.md +0 -31
  175. package/dist/whisper-server/download_model.py +0 -19
  176. package/dist/whisper-server/requirements.txt +0 -8
  177. package/dist/whisper-server/run.sh +0 -62
  178. package/dist/whisper-server/server.py +0 -147
  179. /package/.next/standalone/apps/web/.next/static/{7x81GlNKt9yqIkeI7U1BX → vdAs-hr87-L7y2bUSdX3i}/_buildManifest.js +0 -0
  180. /package/.next/standalone/apps/web/.next/static/{7x81GlNKt9yqIkeI7U1BX → vdAs-hr87-L7y2bUSdX3i}/_clientMiddlewareManifest.js +0 -0
  181. /package/.next/standalone/apps/web/.next/static/{7x81GlNKt9yqIkeI7U1BX → vdAs-hr87-L7y2bUSdX3i}/_ssgManifest.js +0 -0
  182. /package/dist/server/generated/prisma/models/{ClaudeProfile.js → AgentProfile.js} +0 -0
@@ -0,0 +1,972 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model AgentProfile
5
+ *
6
+ */
7
+ export type AgentProfileModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentProfilePayload>;
8
+ export type AggregateAgentProfile = {
9
+ _count: AgentProfileCountAggregateOutputType | null;
10
+ _min: AgentProfileMinAggregateOutputType | null;
11
+ _max: AgentProfileMaxAggregateOutputType | null;
12
+ };
13
+ export type AgentProfileMinAggregateOutputType = {
14
+ agent: string | null;
15
+ slug: string | null;
16
+ name: string | null;
17
+ createdAt: Date | null;
18
+ };
19
+ export type AgentProfileMaxAggregateOutputType = {
20
+ agent: string | null;
21
+ slug: string | null;
22
+ name: string | null;
23
+ createdAt: Date | null;
24
+ };
25
+ export type AgentProfileCountAggregateOutputType = {
26
+ agent: number;
27
+ slug: number;
28
+ name: number;
29
+ createdAt: number;
30
+ _all: number;
31
+ };
32
+ export type AgentProfileMinAggregateInputType = {
33
+ agent?: true;
34
+ slug?: true;
35
+ name?: true;
36
+ createdAt?: true;
37
+ };
38
+ export type AgentProfileMaxAggregateInputType = {
39
+ agent?: true;
40
+ slug?: true;
41
+ name?: true;
42
+ createdAt?: true;
43
+ };
44
+ export type AgentProfileCountAggregateInputType = {
45
+ agent?: true;
46
+ slug?: true;
47
+ name?: true;
48
+ createdAt?: true;
49
+ _all?: true;
50
+ };
51
+ export type AgentProfileAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
52
+ /**
53
+ * Filter which AgentProfile to aggregate.
54
+ */
55
+ where?: Prisma.AgentProfileWhereInput;
56
+ /**
57
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
58
+ *
59
+ * Determine the order of AgentProfiles to fetch.
60
+ */
61
+ orderBy?: Prisma.AgentProfileOrderByWithRelationInput | Prisma.AgentProfileOrderByWithRelationInput[];
62
+ /**
63
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
64
+ *
65
+ * Sets the start position
66
+ */
67
+ cursor?: Prisma.AgentProfileWhereUniqueInput;
68
+ /**
69
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
70
+ *
71
+ * Take `±n` AgentProfiles from the position of the cursor.
72
+ */
73
+ take?: number;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
76
+ *
77
+ * Skip the first `n` AgentProfiles.
78
+ */
79
+ skip?: number;
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
82
+ *
83
+ * Count returned AgentProfiles
84
+ **/
85
+ _count?: true | AgentProfileCountAggregateInputType;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
88
+ *
89
+ * Select which fields to find the minimum value
90
+ **/
91
+ _min?: AgentProfileMinAggregateInputType;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
94
+ *
95
+ * Select which fields to find the maximum value
96
+ **/
97
+ _max?: AgentProfileMaxAggregateInputType;
98
+ };
99
+ export type GetAgentProfileAggregateType<T extends AgentProfileAggregateArgs> = {
100
+ [P in keyof T & keyof AggregateAgentProfile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAgentProfile[P]> : Prisma.GetScalarType<T[P], AggregateAgentProfile[P]>;
101
+ };
102
+ export type AgentProfileGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
103
+ where?: Prisma.AgentProfileWhereInput;
104
+ orderBy?: Prisma.AgentProfileOrderByWithAggregationInput | Prisma.AgentProfileOrderByWithAggregationInput[];
105
+ by: Prisma.AgentProfileScalarFieldEnum[] | Prisma.AgentProfileScalarFieldEnum;
106
+ having?: Prisma.AgentProfileScalarWhereWithAggregatesInput;
107
+ take?: number;
108
+ skip?: number;
109
+ _count?: AgentProfileCountAggregateInputType | true;
110
+ _min?: AgentProfileMinAggregateInputType;
111
+ _max?: AgentProfileMaxAggregateInputType;
112
+ };
113
+ export type AgentProfileGroupByOutputType = {
114
+ agent: string;
115
+ slug: string;
116
+ name: string;
117
+ createdAt: Date;
118
+ _count: AgentProfileCountAggregateOutputType | null;
119
+ _min: AgentProfileMinAggregateOutputType | null;
120
+ _max: AgentProfileMaxAggregateOutputType | null;
121
+ };
122
+ export type GetAgentProfileGroupByPayload<T extends AgentProfileGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AgentProfileGroupByOutputType, T['by']> & {
123
+ [P in ((keyof T) & (keyof AgentProfileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AgentProfileGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AgentProfileGroupByOutputType[P]>;
124
+ }>>;
125
+ export type AgentProfileWhereInput = {
126
+ AND?: Prisma.AgentProfileWhereInput | Prisma.AgentProfileWhereInput[];
127
+ OR?: Prisma.AgentProfileWhereInput[];
128
+ NOT?: Prisma.AgentProfileWhereInput | Prisma.AgentProfileWhereInput[];
129
+ agent?: Prisma.StringFilter<"AgentProfile"> | string;
130
+ slug?: Prisma.StringFilter<"AgentProfile"> | string;
131
+ name?: Prisma.StringFilter<"AgentProfile"> | string;
132
+ createdAt?: Prisma.DateTimeFilter<"AgentProfile"> | Date | string;
133
+ };
134
+ export type AgentProfileOrderByWithRelationInput = {
135
+ agent?: Prisma.SortOrder;
136
+ slug?: Prisma.SortOrder;
137
+ name?: Prisma.SortOrder;
138
+ createdAt?: Prisma.SortOrder;
139
+ };
140
+ export type AgentProfileWhereUniqueInput = Prisma.AtLeast<{
141
+ agent_slug?: Prisma.AgentProfileAgentSlugCompoundUniqueInput;
142
+ AND?: Prisma.AgentProfileWhereInput | Prisma.AgentProfileWhereInput[];
143
+ OR?: Prisma.AgentProfileWhereInput[];
144
+ NOT?: Prisma.AgentProfileWhereInput | Prisma.AgentProfileWhereInput[];
145
+ agent?: Prisma.StringFilter<"AgentProfile"> | string;
146
+ slug?: Prisma.StringFilter<"AgentProfile"> | string;
147
+ name?: Prisma.StringFilter<"AgentProfile"> | string;
148
+ createdAt?: Prisma.DateTimeFilter<"AgentProfile"> | Date | string;
149
+ }, "agent_slug">;
150
+ export type AgentProfileOrderByWithAggregationInput = {
151
+ agent?: Prisma.SortOrder;
152
+ slug?: Prisma.SortOrder;
153
+ name?: Prisma.SortOrder;
154
+ createdAt?: Prisma.SortOrder;
155
+ _count?: Prisma.AgentProfileCountOrderByAggregateInput;
156
+ _max?: Prisma.AgentProfileMaxOrderByAggregateInput;
157
+ _min?: Prisma.AgentProfileMinOrderByAggregateInput;
158
+ };
159
+ export type AgentProfileScalarWhereWithAggregatesInput = {
160
+ AND?: Prisma.AgentProfileScalarWhereWithAggregatesInput | Prisma.AgentProfileScalarWhereWithAggregatesInput[];
161
+ OR?: Prisma.AgentProfileScalarWhereWithAggregatesInput[];
162
+ NOT?: Prisma.AgentProfileScalarWhereWithAggregatesInput | Prisma.AgentProfileScalarWhereWithAggregatesInput[];
163
+ agent?: Prisma.StringWithAggregatesFilter<"AgentProfile"> | string;
164
+ slug?: Prisma.StringWithAggregatesFilter<"AgentProfile"> | string;
165
+ name?: Prisma.StringWithAggregatesFilter<"AgentProfile"> | string;
166
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentProfile"> | Date | string;
167
+ };
168
+ export type AgentProfileCreateInput = {
169
+ agent: string;
170
+ slug: string;
171
+ name: string;
172
+ createdAt?: Date | string;
173
+ };
174
+ export type AgentProfileUncheckedCreateInput = {
175
+ agent: string;
176
+ slug: string;
177
+ name: string;
178
+ createdAt?: Date | string;
179
+ };
180
+ export type AgentProfileUpdateInput = {
181
+ agent?: Prisma.StringFieldUpdateOperationsInput | string;
182
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
183
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
184
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
185
+ };
186
+ export type AgentProfileUncheckedUpdateInput = {
187
+ agent?: Prisma.StringFieldUpdateOperationsInput | string;
188
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
189
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
190
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
191
+ };
192
+ export type AgentProfileCreateManyInput = {
193
+ agent: string;
194
+ slug: string;
195
+ name: string;
196
+ createdAt?: Date | string;
197
+ };
198
+ export type AgentProfileUpdateManyMutationInput = {
199
+ agent?: Prisma.StringFieldUpdateOperationsInput | string;
200
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
201
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
202
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
203
+ };
204
+ export type AgentProfileUncheckedUpdateManyInput = {
205
+ agent?: Prisma.StringFieldUpdateOperationsInput | string;
206
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
207
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
208
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
209
+ };
210
+ export type AgentProfileAgentSlugCompoundUniqueInput = {
211
+ agent: string;
212
+ slug: string;
213
+ };
214
+ export type AgentProfileCountOrderByAggregateInput = {
215
+ agent?: Prisma.SortOrder;
216
+ slug?: Prisma.SortOrder;
217
+ name?: Prisma.SortOrder;
218
+ createdAt?: Prisma.SortOrder;
219
+ };
220
+ export type AgentProfileMaxOrderByAggregateInput = {
221
+ agent?: Prisma.SortOrder;
222
+ slug?: Prisma.SortOrder;
223
+ name?: Prisma.SortOrder;
224
+ createdAt?: Prisma.SortOrder;
225
+ };
226
+ export type AgentProfileMinOrderByAggregateInput = {
227
+ agent?: Prisma.SortOrder;
228
+ slug?: Prisma.SortOrder;
229
+ name?: Prisma.SortOrder;
230
+ createdAt?: Prisma.SortOrder;
231
+ };
232
+ export type AgentProfileSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
233
+ agent?: boolean;
234
+ slug?: boolean;
235
+ name?: boolean;
236
+ createdAt?: boolean;
237
+ }, ExtArgs["result"]["agentProfile"]>;
238
+ export type AgentProfileSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
239
+ agent?: boolean;
240
+ slug?: boolean;
241
+ name?: boolean;
242
+ createdAt?: boolean;
243
+ }, ExtArgs["result"]["agentProfile"]>;
244
+ export type AgentProfileSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
245
+ agent?: boolean;
246
+ slug?: boolean;
247
+ name?: boolean;
248
+ createdAt?: boolean;
249
+ }, ExtArgs["result"]["agentProfile"]>;
250
+ export type AgentProfileSelectScalar = {
251
+ agent?: boolean;
252
+ slug?: boolean;
253
+ name?: boolean;
254
+ createdAt?: boolean;
255
+ };
256
+ export type AgentProfileOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"agent" | "slug" | "name" | "createdAt", ExtArgs["result"]["agentProfile"]>;
257
+ export type $AgentProfilePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
258
+ name: "AgentProfile";
259
+ objects: {};
260
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
261
+ agent: string;
262
+ slug: string;
263
+ name: string;
264
+ createdAt: Date;
265
+ }, ExtArgs["result"]["agentProfile"]>;
266
+ composites: {};
267
+ };
268
+ export type AgentProfileGetPayload<S extends boolean | null | undefined | AgentProfileDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload, S>;
269
+ export type AgentProfileCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AgentProfileFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
270
+ select?: AgentProfileCountAggregateInputType | true;
271
+ };
272
+ export interface AgentProfileDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
273
+ [K: symbol]: {
274
+ types: Prisma.TypeMap<ExtArgs>['model']['AgentProfile'];
275
+ meta: {
276
+ name: 'AgentProfile';
277
+ };
278
+ };
279
+ /**
280
+ * Find zero or one AgentProfile that matches the filter.
281
+ * @param {AgentProfileFindUniqueArgs} args - Arguments to find a AgentProfile
282
+ * @example
283
+ * // Get one AgentProfile
284
+ * const agentProfile = await prisma.agentProfile.findUnique({
285
+ * where: {
286
+ * // ... provide filter here
287
+ * }
288
+ * })
289
+ */
290
+ findUnique<T extends AgentProfileFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentProfileFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentProfileClient<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
291
+ /**
292
+ * Find one AgentProfile that matches the filter or throw an error with `error.code='P2025'`
293
+ * if no matches were found.
294
+ * @param {AgentProfileFindUniqueOrThrowArgs} args - Arguments to find a AgentProfile
295
+ * @example
296
+ * // Get one AgentProfile
297
+ * const agentProfile = await prisma.agentProfile.findUniqueOrThrow({
298
+ * where: {
299
+ * // ... provide filter here
300
+ * }
301
+ * })
302
+ */
303
+ findUniqueOrThrow<T extends AgentProfileFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentProfileFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentProfileClient<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
304
+ /**
305
+ * Find the first AgentProfile that matches the filter.
306
+ * Note, that providing `undefined` is treated as the value not being there.
307
+ * Read more here: https://pris.ly/d/null-undefined
308
+ * @param {AgentProfileFindFirstArgs} args - Arguments to find a AgentProfile
309
+ * @example
310
+ * // Get one AgentProfile
311
+ * const agentProfile = await prisma.agentProfile.findFirst({
312
+ * where: {
313
+ * // ... provide filter here
314
+ * }
315
+ * })
316
+ */
317
+ findFirst<T extends AgentProfileFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentProfileFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentProfileClient<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
318
+ /**
319
+ * Find the first AgentProfile that matches the filter or
320
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
321
+ * Note, that providing `undefined` is treated as the value not being there.
322
+ * Read more here: https://pris.ly/d/null-undefined
323
+ * @param {AgentProfileFindFirstOrThrowArgs} args - Arguments to find a AgentProfile
324
+ * @example
325
+ * // Get one AgentProfile
326
+ * const agentProfile = await prisma.agentProfile.findFirstOrThrow({
327
+ * where: {
328
+ * // ... provide filter here
329
+ * }
330
+ * })
331
+ */
332
+ findFirstOrThrow<T extends AgentProfileFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentProfileFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentProfileClient<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
333
+ /**
334
+ * Find zero or more AgentProfiles that matches the filter.
335
+ * Note, that providing `undefined` is treated as the value not being there.
336
+ * Read more here: https://pris.ly/d/null-undefined
337
+ * @param {AgentProfileFindManyArgs} args - Arguments to filter and select certain fields only.
338
+ * @example
339
+ * // Get all AgentProfiles
340
+ * const agentProfiles = await prisma.agentProfile.findMany()
341
+ *
342
+ * // Get first 10 AgentProfiles
343
+ * const agentProfiles = await prisma.agentProfile.findMany({ take: 10 })
344
+ *
345
+ * // Only select the `agent`
346
+ * const agentProfileWithAgentOnly = await prisma.agentProfile.findMany({ select: { agent: true } })
347
+ *
348
+ */
349
+ findMany<T extends AgentProfileFindManyArgs>(args?: Prisma.SelectSubset<T, AgentProfileFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
350
+ /**
351
+ * Create a AgentProfile.
352
+ * @param {AgentProfileCreateArgs} args - Arguments to create a AgentProfile.
353
+ * @example
354
+ * // Create one AgentProfile
355
+ * const AgentProfile = await prisma.agentProfile.create({
356
+ * data: {
357
+ * // ... data to create a AgentProfile
358
+ * }
359
+ * })
360
+ *
361
+ */
362
+ create<T extends AgentProfileCreateArgs>(args: Prisma.SelectSubset<T, AgentProfileCreateArgs<ExtArgs>>): Prisma.Prisma__AgentProfileClient<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
363
+ /**
364
+ * Create many AgentProfiles.
365
+ * @param {AgentProfileCreateManyArgs} args - Arguments to create many AgentProfiles.
366
+ * @example
367
+ * // Create many AgentProfiles
368
+ * const agentProfile = await prisma.agentProfile.createMany({
369
+ * data: [
370
+ * // ... provide data here
371
+ * ]
372
+ * })
373
+ *
374
+ */
375
+ createMany<T extends AgentProfileCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentProfileCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
376
+ /**
377
+ * Create many AgentProfiles and returns the data saved in the database.
378
+ * @param {AgentProfileCreateManyAndReturnArgs} args - Arguments to create many AgentProfiles.
379
+ * @example
380
+ * // Create many AgentProfiles
381
+ * const agentProfile = await prisma.agentProfile.createManyAndReturn({
382
+ * data: [
383
+ * // ... provide data here
384
+ * ]
385
+ * })
386
+ *
387
+ * // Create many AgentProfiles and only return the `agent`
388
+ * const agentProfileWithAgentOnly = await prisma.agentProfile.createManyAndReturn({
389
+ * select: { agent: true },
390
+ * data: [
391
+ * // ... provide data here
392
+ * ]
393
+ * })
394
+ * Note, that providing `undefined` is treated as the value not being there.
395
+ * Read more here: https://pris.ly/d/null-undefined
396
+ *
397
+ */
398
+ createManyAndReturn<T extends AgentProfileCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentProfileCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
399
+ /**
400
+ * Delete a AgentProfile.
401
+ * @param {AgentProfileDeleteArgs} args - Arguments to delete one AgentProfile.
402
+ * @example
403
+ * // Delete one AgentProfile
404
+ * const AgentProfile = await prisma.agentProfile.delete({
405
+ * where: {
406
+ * // ... filter to delete one AgentProfile
407
+ * }
408
+ * })
409
+ *
410
+ */
411
+ delete<T extends AgentProfileDeleteArgs>(args: Prisma.SelectSubset<T, AgentProfileDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentProfileClient<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
412
+ /**
413
+ * Update one AgentProfile.
414
+ * @param {AgentProfileUpdateArgs} args - Arguments to update one AgentProfile.
415
+ * @example
416
+ * // Update one AgentProfile
417
+ * const agentProfile = await prisma.agentProfile.update({
418
+ * where: {
419
+ * // ... provide filter here
420
+ * },
421
+ * data: {
422
+ * // ... provide data here
423
+ * }
424
+ * })
425
+ *
426
+ */
427
+ update<T extends AgentProfileUpdateArgs>(args: Prisma.SelectSubset<T, AgentProfileUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentProfileClient<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
428
+ /**
429
+ * Delete zero or more AgentProfiles.
430
+ * @param {AgentProfileDeleteManyArgs} args - Arguments to filter AgentProfiles to delete.
431
+ * @example
432
+ * // Delete a few AgentProfiles
433
+ * const { count } = await prisma.agentProfile.deleteMany({
434
+ * where: {
435
+ * // ... provide filter here
436
+ * }
437
+ * })
438
+ *
439
+ */
440
+ deleteMany<T extends AgentProfileDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentProfileDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
441
+ /**
442
+ * Update zero or more AgentProfiles.
443
+ * Note, that providing `undefined` is treated as the value not being there.
444
+ * Read more here: https://pris.ly/d/null-undefined
445
+ * @param {AgentProfileUpdateManyArgs} args - Arguments to update one or more rows.
446
+ * @example
447
+ * // Update many AgentProfiles
448
+ * const agentProfile = await prisma.agentProfile.updateMany({
449
+ * where: {
450
+ * // ... provide filter here
451
+ * },
452
+ * data: {
453
+ * // ... provide data here
454
+ * }
455
+ * })
456
+ *
457
+ */
458
+ updateMany<T extends AgentProfileUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentProfileUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
459
+ /**
460
+ * Update zero or more AgentProfiles and returns the data updated in the database.
461
+ * @param {AgentProfileUpdateManyAndReturnArgs} args - Arguments to update many AgentProfiles.
462
+ * @example
463
+ * // Update many AgentProfiles
464
+ * const agentProfile = await prisma.agentProfile.updateManyAndReturn({
465
+ * where: {
466
+ * // ... provide filter here
467
+ * },
468
+ * data: [
469
+ * // ... provide data here
470
+ * ]
471
+ * })
472
+ *
473
+ * // Update zero or more AgentProfiles and only return the `agent`
474
+ * const agentProfileWithAgentOnly = await prisma.agentProfile.updateManyAndReturn({
475
+ * select: { agent: true },
476
+ * where: {
477
+ * // ... provide filter here
478
+ * },
479
+ * data: [
480
+ * // ... provide data here
481
+ * ]
482
+ * })
483
+ * Note, that providing `undefined` is treated as the value not being there.
484
+ * Read more here: https://pris.ly/d/null-undefined
485
+ *
486
+ */
487
+ updateManyAndReturn<T extends AgentProfileUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentProfileUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
488
+ /**
489
+ * Create or update one AgentProfile.
490
+ * @param {AgentProfileUpsertArgs} args - Arguments to update or create a AgentProfile.
491
+ * @example
492
+ * // Update or create a AgentProfile
493
+ * const agentProfile = await prisma.agentProfile.upsert({
494
+ * create: {
495
+ * // ... data to create a AgentProfile
496
+ * },
497
+ * update: {
498
+ * // ... in case it already exists, update
499
+ * },
500
+ * where: {
501
+ * // ... the filter for the AgentProfile we want to update
502
+ * }
503
+ * })
504
+ */
505
+ upsert<T extends AgentProfileUpsertArgs>(args: Prisma.SelectSubset<T, AgentProfileUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentProfileClient<runtime.Types.Result.GetResult<Prisma.$AgentProfilePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
506
+ /**
507
+ * Count the number of AgentProfiles.
508
+ * Note, that providing `undefined` is treated as the value not being there.
509
+ * Read more here: https://pris.ly/d/null-undefined
510
+ * @param {AgentProfileCountArgs} args - Arguments to filter AgentProfiles to count.
511
+ * @example
512
+ * // Count the number of AgentProfiles
513
+ * const count = await prisma.agentProfile.count({
514
+ * where: {
515
+ * // ... the filter for the AgentProfiles we want to count
516
+ * }
517
+ * })
518
+ **/
519
+ count<T extends AgentProfileCountArgs>(args?: Prisma.Subset<T, AgentProfileCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AgentProfileCountAggregateOutputType> : number>;
520
+ /**
521
+ * Allows you to perform aggregations operations on a AgentProfile.
522
+ * Note, that providing `undefined` is treated as the value not being there.
523
+ * Read more here: https://pris.ly/d/null-undefined
524
+ * @param {AgentProfileAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
525
+ * @example
526
+ * // Ordered by age ascending
527
+ * // Where email contains prisma.io
528
+ * // Limited to the 10 users
529
+ * const aggregations = await prisma.user.aggregate({
530
+ * _avg: {
531
+ * age: true,
532
+ * },
533
+ * where: {
534
+ * email: {
535
+ * contains: "prisma.io",
536
+ * },
537
+ * },
538
+ * orderBy: {
539
+ * age: "asc",
540
+ * },
541
+ * take: 10,
542
+ * })
543
+ **/
544
+ aggregate<T extends AgentProfileAggregateArgs>(args: Prisma.Subset<T, AgentProfileAggregateArgs>): Prisma.PrismaPromise<GetAgentProfileAggregateType<T>>;
545
+ /**
546
+ * Group by AgentProfile.
547
+ * Note, that providing `undefined` is treated as the value not being there.
548
+ * Read more here: https://pris.ly/d/null-undefined
549
+ * @param {AgentProfileGroupByArgs} args - Group by arguments.
550
+ * @example
551
+ * // Group by city, order by createdAt, get count
552
+ * const result = await prisma.user.groupBy({
553
+ * by: ['city', 'createdAt'],
554
+ * orderBy: {
555
+ * createdAt: true
556
+ * },
557
+ * _count: {
558
+ * _all: true
559
+ * },
560
+ * })
561
+ *
562
+ **/
563
+ groupBy<T extends AgentProfileGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
564
+ orderBy: AgentProfileGroupByArgs['orderBy'];
565
+ } : {
566
+ orderBy?: AgentProfileGroupByArgs['orderBy'];
567
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
568
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
569
+ Error,
570
+ 'Field ',
571
+ P,
572
+ ` in "having" needs to be provided in "by"`
573
+ ];
574
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
575
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
576
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
577
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
578
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
579
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
580
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AgentProfileGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentProfileGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
581
+ /**
582
+ * Fields of the AgentProfile model
583
+ */
584
+ readonly fields: AgentProfileFieldRefs;
585
+ }
586
+ /**
587
+ * The delegate class that acts as a "Promise-like" for AgentProfile.
588
+ * Why is this prefixed with `Prisma__`?
589
+ * Because we want to prevent naming conflicts as mentioned in
590
+ * https://github.com/prisma/prisma-client-js/issues/707
591
+ */
592
+ export interface Prisma__AgentProfileClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
593
+ readonly [Symbol.toStringTag]: "PrismaPromise";
594
+ /**
595
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
596
+ * @param onfulfilled The callback to execute when the Promise is resolved.
597
+ * @param onrejected The callback to execute when the Promise is rejected.
598
+ * @returns A Promise for the completion of which ever callback is executed.
599
+ */
600
+ 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>;
601
+ /**
602
+ * Attaches a callback for only the rejection of the Promise.
603
+ * @param onrejected The callback to execute when the Promise is rejected.
604
+ * @returns A Promise for the completion of the callback.
605
+ */
606
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
607
+ /**
608
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
609
+ * resolved value cannot be modified from the callback.
610
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
611
+ * @returns A Promise for the completion of the callback.
612
+ */
613
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
614
+ }
615
+ /**
616
+ * Fields of the AgentProfile model
617
+ */
618
+ export interface AgentProfileFieldRefs {
619
+ readonly agent: Prisma.FieldRef<"AgentProfile", 'String'>;
620
+ readonly slug: Prisma.FieldRef<"AgentProfile", 'String'>;
621
+ readonly name: Prisma.FieldRef<"AgentProfile", 'String'>;
622
+ readonly createdAt: Prisma.FieldRef<"AgentProfile", 'DateTime'>;
623
+ }
624
+ /**
625
+ * AgentProfile findUnique
626
+ */
627
+ export type AgentProfileFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
628
+ /**
629
+ * Select specific fields to fetch from the AgentProfile
630
+ */
631
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
632
+ /**
633
+ * Omit specific fields from the AgentProfile
634
+ */
635
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
636
+ /**
637
+ * Filter, which AgentProfile to fetch.
638
+ */
639
+ where: Prisma.AgentProfileWhereUniqueInput;
640
+ };
641
+ /**
642
+ * AgentProfile findUniqueOrThrow
643
+ */
644
+ export type AgentProfileFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
645
+ /**
646
+ * Select specific fields to fetch from the AgentProfile
647
+ */
648
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
649
+ /**
650
+ * Omit specific fields from the AgentProfile
651
+ */
652
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
653
+ /**
654
+ * Filter, which AgentProfile to fetch.
655
+ */
656
+ where: Prisma.AgentProfileWhereUniqueInput;
657
+ };
658
+ /**
659
+ * AgentProfile findFirst
660
+ */
661
+ export type AgentProfileFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
662
+ /**
663
+ * Select specific fields to fetch from the AgentProfile
664
+ */
665
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
666
+ /**
667
+ * Omit specific fields from the AgentProfile
668
+ */
669
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
670
+ /**
671
+ * Filter, which AgentProfile to fetch.
672
+ */
673
+ where?: Prisma.AgentProfileWhereInput;
674
+ /**
675
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
676
+ *
677
+ * Determine the order of AgentProfiles to fetch.
678
+ */
679
+ orderBy?: Prisma.AgentProfileOrderByWithRelationInput | Prisma.AgentProfileOrderByWithRelationInput[];
680
+ /**
681
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
682
+ *
683
+ * Sets the position for searching for AgentProfiles.
684
+ */
685
+ cursor?: Prisma.AgentProfileWhereUniqueInput;
686
+ /**
687
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
688
+ *
689
+ * Take `±n` AgentProfiles from the position of the cursor.
690
+ */
691
+ take?: number;
692
+ /**
693
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
694
+ *
695
+ * Skip the first `n` AgentProfiles.
696
+ */
697
+ skip?: number;
698
+ /**
699
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
700
+ *
701
+ * Filter by unique combinations of AgentProfiles.
702
+ */
703
+ distinct?: Prisma.AgentProfileScalarFieldEnum | Prisma.AgentProfileScalarFieldEnum[];
704
+ };
705
+ /**
706
+ * AgentProfile findFirstOrThrow
707
+ */
708
+ export type AgentProfileFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
709
+ /**
710
+ * Select specific fields to fetch from the AgentProfile
711
+ */
712
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
713
+ /**
714
+ * Omit specific fields from the AgentProfile
715
+ */
716
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
717
+ /**
718
+ * Filter, which AgentProfile to fetch.
719
+ */
720
+ where?: Prisma.AgentProfileWhereInput;
721
+ /**
722
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
723
+ *
724
+ * Determine the order of AgentProfiles to fetch.
725
+ */
726
+ orderBy?: Prisma.AgentProfileOrderByWithRelationInput | Prisma.AgentProfileOrderByWithRelationInput[];
727
+ /**
728
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
729
+ *
730
+ * Sets the position for searching for AgentProfiles.
731
+ */
732
+ cursor?: Prisma.AgentProfileWhereUniqueInput;
733
+ /**
734
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
735
+ *
736
+ * Take `±n` AgentProfiles from the position of the cursor.
737
+ */
738
+ take?: number;
739
+ /**
740
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
741
+ *
742
+ * Skip the first `n` AgentProfiles.
743
+ */
744
+ skip?: number;
745
+ /**
746
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
747
+ *
748
+ * Filter by unique combinations of AgentProfiles.
749
+ */
750
+ distinct?: Prisma.AgentProfileScalarFieldEnum | Prisma.AgentProfileScalarFieldEnum[];
751
+ };
752
+ /**
753
+ * AgentProfile findMany
754
+ */
755
+ export type AgentProfileFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
756
+ /**
757
+ * Select specific fields to fetch from the AgentProfile
758
+ */
759
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
760
+ /**
761
+ * Omit specific fields from the AgentProfile
762
+ */
763
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
764
+ /**
765
+ * Filter, which AgentProfiles to fetch.
766
+ */
767
+ where?: Prisma.AgentProfileWhereInput;
768
+ /**
769
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
770
+ *
771
+ * Determine the order of AgentProfiles to fetch.
772
+ */
773
+ orderBy?: Prisma.AgentProfileOrderByWithRelationInput | Prisma.AgentProfileOrderByWithRelationInput[];
774
+ /**
775
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
776
+ *
777
+ * Sets the position for listing AgentProfiles.
778
+ */
779
+ cursor?: Prisma.AgentProfileWhereUniqueInput;
780
+ /**
781
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
782
+ *
783
+ * Take `±n` AgentProfiles from the position of the cursor.
784
+ */
785
+ take?: number;
786
+ /**
787
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
788
+ *
789
+ * Skip the first `n` AgentProfiles.
790
+ */
791
+ skip?: number;
792
+ /**
793
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
794
+ *
795
+ * Filter by unique combinations of AgentProfiles.
796
+ */
797
+ distinct?: Prisma.AgentProfileScalarFieldEnum | Prisma.AgentProfileScalarFieldEnum[];
798
+ };
799
+ /**
800
+ * AgentProfile create
801
+ */
802
+ export type AgentProfileCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
803
+ /**
804
+ * Select specific fields to fetch from the AgentProfile
805
+ */
806
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
807
+ /**
808
+ * Omit specific fields from the AgentProfile
809
+ */
810
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
811
+ /**
812
+ * The data needed to create a AgentProfile.
813
+ */
814
+ data: Prisma.XOR<Prisma.AgentProfileCreateInput, Prisma.AgentProfileUncheckedCreateInput>;
815
+ };
816
+ /**
817
+ * AgentProfile createMany
818
+ */
819
+ export type AgentProfileCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
820
+ /**
821
+ * The data used to create many AgentProfiles.
822
+ */
823
+ data: Prisma.AgentProfileCreateManyInput | Prisma.AgentProfileCreateManyInput[];
824
+ };
825
+ /**
826
+ * AgentProfile createManyAndReturn
827
+ */
828
+ export type AgentProfileCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
829
+ /**
830
+ * Select specific fields to fetch from the AgentProfile
831
+ */
832
+ select?: Prisma.AgentProfileSelectCreateManyAndReturn<ExtArgs> | null;
833
+ /**
834
+ * Omit specific fields from the AgentProfile
835
+ */
836
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
837
+ /**
838
+ * The data used to create many AgentProfiles.
839
+ */
840
+ data: Prisma.AgentProfileCreateManyInput | Prisma.AgentProfileCreateManyInput[];
841
+ };
842
+ /**
843
+ * AgentProfile update
844
+ */
845
+ export type AgentProfileUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
846
+ /**
847
+ * Select specific fields to fetch from the AgentProfile
848
+ */
849
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
850
+ /**
851
+ * Omit specific fields from the AgentProfile
852
+ */
853
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
854
+ /**
855
+ * The data needed to update a AgentProfile.
856
+ */
857
+ data: Prisma.XOR<Prisma.AgentProfileUpdateInput, Prisma.AgentProfileUncheckedUpdateInput>;
858
+ /**
859
+ * Choose, which AgentProfile to update.
860
+ */
861
+ where: Prisma.AgentProfileWhereUniqueInput;
862
+ };
863
+ /**
864
+ * AgentProfile updateMany
865
+ */
866
+ export type AgentProfileUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
867
+ /**
868
+ * The data used to update AgentProfiles.
869
+ */
870
+ data: Prisma.XOR<Prisma.AgentProfileUpdateManyMutationInput, Prisma.AgentProfileUncheckedUpdateManyInput>;
871
+ /**
872
+ * Filter which AgentProfiles to update
873
+ */
874
+ where?: Prisma.AgentProfileWhereInput;
875
+ /**
876
+ * Limit how many AgentProfiles to update.
877
+ */
878
+ limit?: number;
879
+ };
880
+ /**
881
+ * AgentProfile updateManyAndReturn
882
+ */
883
+ export type AgentProfileUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
884
+ /**
885
+ * Select specific fields to fetch from the AgentProfile
886
+ */
887
+ select?: Prisma.AgentProfileSelectUpdateManyAndReturn<ExtArgs> | null;
888
+ /**
889
+ * Omit specific fields from the AgentProfile
890
+ */
891
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
892
+ /**
893
+ * The data used to update AgentProfiles.
894
+ */
895
+ data: Prisma.XOR<Prisma.AgentProfileUpdateManyMutationInput, Prisma.AgentProfileUncheckedUpdateManyInput>;
896
+ /**
897
+ * Filter which AgentProfiles to update
898
+ */
899
+ where?: Prisma.AgentProfileWhereInput;
900
+ /**
901
+ * Limit how many AgentProfiles to update.
902
+ */
903
+ limit?: number;
904
+ };
905
+ /**
906
+ * AgentProfile upsert
907
+ */
908
+ export type AgentProfileUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
909
+ /**
910
+ * Select specific fields to fetch from the AgentProfile
911
+ */
912
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
913
+ /**
914
+ * Omit specific fields from the AgentProfile
915
+ */
916
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
917
+ /**
918
+ * The filter to search for the AgentProfile to update in case it exists.
919
+ */
920
+ where: Prisma.AgentProfileWhereUniqueInput;
921
+ /**
922
+ * In case the AgentProfile found by the `where` argument doesn't exist, create a new AgentProfile with this data.
923
+ */
924
+ create: Prisma.XOR<Prisma.AgentProfileCreateInput, Prisma.AgentProfileUncheckedCreateInput>;
925
+ /**
926
+ * In case the AgentProfile was found with the provided `where` argument, update it with this data.
927
+ */
928
+ update: Prisma.XOR<Prisma.AgentProfileUpdateInput, Prisma.AgentProfileUncheckedUpdateInput>;
929
+ };
930
+ /**
931
+ * AgentProfile delete
932
+ */
933
+ export type AgentProfileDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
934
+ /**
935
+ * Select specific fields to fetch from the AgentProfile
936
+ */
937
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
938
+ /**
939
+ * Omit specific fields from the AgentProfile
940
+ */
941
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
942
+ /**
943
+ * Filter which AgentProfile to delete.
944
+ */
945
+ where: Prisma.AgentProfileWhereUniqueInput;
946
+ };
947
+ /**
948
+ * AgentProfile deleteMany
949
+ */
950
+ export type AgentProfileDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
951
+ /**
952
+ * Filter which AgentProfiles to delete
953
+ */
954
+ where?: Prisma.AgentProfileWhereInput;
955
+ /**
956
+ * Limit how many AgentProfiles to delete.
957
+ */
958
+ limit?: number;
959
+ };
960
+ /**
961
+ * AgentProfile without action
962
+ */
963
+ export type AgentProfileDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
964
+ /**
965
+ * Select specific fields to fetch from the AgentProfile
966
+ */
967
+ select?: Prisma.AgentProfileSelect<ExtArgs> | null;
968
+ /**
969
+ * Omit specific fields from the AgentProfile
970
+ */
971
+ omit?: Prisma.AgentProfileOmit<ExtArgs> | null;
972
+ };