@wardby/cli 0.2.0 → 0.2.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 (157) hide show
  1. package/README.md +142 -67
  2. package/dist/claude-coding-worker/driver.d.ts +1 -0
  3. package/dist/claude-coding-worker/driver.js +4 -1
  4. package/dist/claude-coding-worker/main.js +3 -2
  5. package/dist/coding/protocol.d.ts +28 -3
  6. package/dist/coding/protocol.js +53 -2
  7. package/dist/coding-worker/artifact.d.ts +12 -0
  8. package/dist/coding-worker/artifact.js +48 -6
  9. package/dist/coding-worker/driver.d.ts +1 -0
  10. package/dist/coding-worker/driver.js +4 -1
  11. package/dist/coding-worker/errors.d.ts +7 -0
  12. package/dist/coding-worker/errors.js +18 -0
  13. package/dist/coding-worker/main.js +3 -2
  14. package/dist/core/budget-groups.d.ts +1 -1
  15. package/dist/core/coding-queue.d.ts +1 -1
  16. package/dist/core/datastores.d.ts +1 -1
  17. package/dist/core/db.d.ts +36 -2
  18. package/dist/core/db.js +69 -2
  19. package/dist/core/dispatch.d.ts +16 -1
  20. package/dist/core/dispatch.js +33 -5
  21. package/dist/core/http-runtime.js +3 -4
  22. package/dist/core/lease.d.ts +1 -1
  23. package/dist/core/private-directory.d.ts +20 -0
  24. package/dist/core/private-directory.js +36 -0
  25. package/dist/core/reconciler.d.ts +1 -1
  26. package/dist/core/runner.d.ts +1 -1
  27. package/dist/core/scheduler.d.ts +1 -1
  28. package/dist/core/secrets.d.ts +1 -1
  29. package/dist/core/subagent-memory-tools.d.ts +1 -1
  30. package/dist/core/webhooks.d.ts +1 -1
  31. package/dist/generated/prisma/browser.d.ts +228 -0
  32. package/dist/generated/prisma/browser.js +17 -0
  33. package/dist/generated/prisma/client.d.ts +247 -0
  34. package/dist/generated/prisma/client.js +34 -0
  35. package/dist/generated/prisma/commonInputTypes.d.ts +809 -0
  36. package/dist/generated/prisma/commonInputTypes.js +10 -0
  37. package/dist/generated/prisma/enums.d.ts +53 -0
  38. package/dist/generated/prisma/enums.js +54 -0
  39. package/dist/generated/prisma/internal/class.d.ts +462 -0
  40. package/dist/generated/prisma/internal/class.js +49 -0
  41. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3325 -0
  42. package/dist/generated/prisma/internal/prismaNamespace.js +455 -0
  43. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +449 -0
  44. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +426 -0
  45. package/dist/generated/prisma/models/Agent.d.ts +3267 -0
  46. package/dist/generated/prisma/models/Agent.js +1 -0
  47. package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
  48. package/dist/generated/prisma/models/AgentDatastore.js +1 -0
  49. package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
  50. package/dist/generated/prisma/models/AgentMemory.js +1 -0
  51. package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
  52. package/dist/generated/prisma/models/AgentSecret.js +1 -0
  53. package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
  54. package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
  55. package/dist/generated/prisma/models/AgentTool.d.ts +1309 -0
  56. package/dist/generated/prisma/models/AgentTool.js +1 -0
  57. package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
  58. package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
  59. package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
  60. package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
  61. package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
  62. package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
  63. package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
  64. package/dist/generated/prisma/models/AuthSession.js +1 -0
  65. package/dist/generated/prisma/models/AuthUser.d.ts +1645 -0
  66. package/dist/generated/prisma/models/AuthUser.js +1 -0
  67. package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
  68. package/dist/generated/prisma/models/BudgetGroup.js +1 -0
  69. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1430 -0
  70. package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
  71. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
  72. package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
  73. package/dist/generated/prisma/models/CodingProxySession.d.ts +1505 -0
  74. package/dist/generated/prisma/models/CodingProxySession.js +1 -0
  75. package/dist/generated/prisma/models/CodingRun.d.ts +2402 -0
  76. package/dist/generated/prisma/models/CodingRun.js +1 -0
  77. package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
  78. package/dist/generated/prisma/models/Datastore.js +1 -0
  79. package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
  80. package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
  81. package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
  82. package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
  83. package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
  84. package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
  85. package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
  86. package/dist/generated/prisma/models/OAuthClient.js +1 -0
  87. package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
  88. package/dist/generated/prisma/models/OAuthFamily.js +1 -0
  89. package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
  90. package/dist/generated/prisma/models/OAuthGrant.js +1 -0
  91. package/dist/generated/prisma/models/Principal.d.ts +1790 -0
  92. package/dist/generated/prisma/models/Principal.js +1 -0
  93. package/dist/generated/prisma/models/Run.d.ts +2281 -0
  94. package/dist/generated/prisma/models/Run.js +1 -0
  95. package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
  96. package/dist/generated/prisma/models/SchedulerLease.js +1 -0
  97. package/dist/generated/prisma/models/Secret.d.ts +1399 -0
  98. package/dist/generated/prisma/models/Secret.js +1 -0
  99. package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
  100. package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
  101. package/dist/generated/prisma/models/Task.d.ts +1176 -0
  102. package/dist/generated/prisma/models/Task.js +1 -0
  103. package/dist/generated/prisma/models/Tool.d.ts +1478 -0
  104. package/dist/generated/prisma/models/Tool.js +1 -0
  105. package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
  106. package/dist/generated/prisma/models/Webhook.js +1 -0
  107. package/dist/generated/prisma/models.d.ts +32 -0
  108. package/dist/generated/prisma/models.js +1 -0
  109. package/dist/import/create.d.ts +1 -1
  110. package/dist/import/create.js +1 -1
  111. package/dist/import/index.d.ts +1 -1
  112. package/dist/mcp/auth/ownership.d.ts +19 -19
  113. package/dist/mcp/auth/principal.d.ts +1 -1
  114. package/dist/mcp/auth/resource-server.d.ts +1 -1
  115. package/dist/mcp/auth/self-hosted/browser.js +20 -6
  116. package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
  117. package/dist/mcp/auth/self-hosted/credentials.d.ts +1 -1
  118. package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
  119. package/dist/mcp/auth/self-hosted/session.d.ts +1 -1
  120. package/dist/mcp/context.d.ts +1 -1
  121. package/dist/mcp/server.d.ts +1 -1
  122. package/dist/mcp/shared/page-style.d.ts +16 -0
  123. package/dist/mcp/shared/page-style.js +129 -0
  124. package/dist/mcp/tasks/manager.d.ts +1 -1
  125. package/dist/mcp/tools/agents.js +1 -1
  126. package/dist/mcp/tools/datastore.js +1 -1
  127. package/dist/mcp/tools/scheduling.js +1 -1
  128. package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
  129. package/dist/mcp/tools/secret-elicitation-form.js +10 -28
  130. package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
  131. package/dist/mcp/tools/subagents.js +1 -1
  132. package/dist/mcp/tools/tools.js +1 -1
  133. package/dist/mcp/transport/streamable-http.d.ts +1 -1
  134. package/dist/mcp/unattended-schedules.d.ts +1 -1
  135. package/dist/mcp/webhooks/ingress.d.ts +1 -1
  136. package/dist/providers/auth/index.d.ts +1 -1
  137. package/dist/providers/auth/self-hosted.d.ts +2 -2
  138. package/dist/providers/coding-proxy/prisma-ledger.d.ts +1 -1
  139. package/dist/providers/coding-proxy/runtime.d.ts +1 -1
  140. package/dist/providers/datastore/postgres.d.ts +1 -1
  141. package/dist/providers/executor/build.d.ts +1 -1
  142. package/dist/providers/executor/composition.d.ts +1 -1
  143. package/dist/providers/executor/container.d.ts +1 -1
  144. package/dist/providers/executor/container.js +10 -3
  145. package/dist/providers/executor/dbos.d.ts +1 -1
  146. package/dist/providers/jobs/docker.d.ts +11 -0
  147. package/dist/providers/jobs/docker.js +34 -18
  148. package/dist/providers/jobs/kubernetes.js +5 -10
  149. package/dist/providers/jobs/types.d.ts +2 -0
  150. package/dist/providers/memory/postgres.d.ts +1 -1
  151. package/dist/providers/vcs/git.js +2 -1
  152. package/dist/quickstart/index.js +22 -31
  153. package/dist/quickstart/migrate.d.ts +23 -0
  154. package/dist/quickstart/migrate.js +125 -0
  155. package/package.json +20 -10
  156. package/prisma/migrate.config.mjs +20 -0
  157. package/prisma/schema.prisma +10 -2
@@ -0,0 +1,455 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
+ /* eslint-disable */
3
+ // biome-ignore-all lint: generated file
4
+ // @ts-nocheck
5
+ /*
6
+ * WARNING: This is an internal file that is subject to change!
7
+ *
8
+ * 🛑 Under no circumstances should you import this file directly! 🛑
9
+ *
10
+ * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
11
+ * While this enables partial backward compatibility, it is not part of the stable public API.
12
+ *
13
+ * If you are looking for your Models, Enums, and Input Types, please import them from the respective
14
+ * model files in the `model` directory!
15
+ */
16
+ import * as runtime from "@prisma/client/runtime/client";
17
+ /**
18
+ * Prisma Errors
19
+ */
20
+ export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
21
+ export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
22
+ export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
23
+ export const PrismaClientInitializationError = runtime.PrismaClientInitializationError;
24
+ export const PrismaClientValidationError = runtime.PrismaClientValidationError;
25
+ /**
26
+ * Re-export of sql-template-tag
27
+ */
28
+ export const sql = runtime.sqltag;
29
+ export const empty = runtime.empty;
30
+ export const join = runtime.join;
31
+ export const raw = runtime.raw;
32
+ export const Sql = runtime.Sql;
33
+ /**
34
+ * Decimal.js
35
+ */
36
+ export const Decimal = runtime.Decimal;
37
+ export const getExtensionContext = runtime.Extensions.getExtensionContext;
38
+ /**
39
+ * Prisma Client JS version: 7.10.0
40
+ * Query Engine version: 0edf323efd1d98336f3f0a68684b56f689b900d3
41
+ */
42
+ export const prismaVersion = {
43
+ client: "7.10.0",
44
+ engine: "0edf323efd1d98336f3f0a68684b56f689b900d3"
45
+ };
46
+ export const NullTypes = {
47
+ DbNull: runtime.NullTypes.DbNull,
48
+ JsonNull: runtime.NullTypes.JsonNull,
49
+ AnyNull: runtime.NullTypes.AnyNull,
50
+ };
51
+ /**
52
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
53
+ *
54
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
55
+ */
56
+ export const DbNull = runtime.DbNull;
57
+ /**
58
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
59
+ *
60
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
61
+ */
62
+ export const JsonNull = runtime.JsonNull;
63
+ /**
64
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
65
+ *
66
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
67
+ */
68
+ export const AnyNull = runtime.AnyNull;
69
+ export const ModelName = {
70
+ Agent: 'Agent',
71
+ AgentSubAgent: 'AgentSubAgent',
72
+ BudgetGroup: 'BudgetGroup',
73
+ Tool: 'Tool',
74
+ AgentTool: 'AgentTool',
75
+ Datastore: 'Datastore',
76
+ AgentDatastore: 'AgentDatastore',
77
+ DatastoreEntry: 'DatastoreEntry',
78
+ AgentMemory: 'AgentMemory',
79
+ Run: 'Run',
80
+ CodingAgentProfile: 'CodingAgentProfile',
81
+ CodingRun: 'CodingRun',
82
+ CodingProxySession: 'CodingProxySession',
83
+ CodingProxyRequest: 'CodingProxyRequest',
84
+ SchedulerLease: 'SchedulerLease',
85
+ Principal: 'Principal',
86
+ Task: 'Task',
87
+ Secret: 'Secret',
88
+ AgentSecret: 'AgentSecret',
89
+ SecretElicitationOutcome: 'SecretElicitationOutcome',
90
+ Webhook: 'Webhook',
91
+ OAuthClient: 'OAuthClient',
92
+ OAuthGrant: 'OAuthGrant',
93
+ AuthUser: 'AuthUser',
94
+ AuthLoginKey: 'AuthLoginKey',
95
+ AuthSession: 'AuthSession',
96
+ AuthFormChallenge: 'AuthFormChallenge',
97
+ OAuthAuthorizationRequest: 'OAuthAuthorizationRequest',
98
+ OAuthAuthorizationCode: 'OAuthAuthorizationCode',
99
+ OAuthFamily: 'OAuthFamily',
100
+ AuthRateLimit: 'AuthRateLimit'
101
+ };
102
+ /**
103
+ * Enums
104
+ */
105
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
106
+ ReadUncommitted: 'ReadUncommitted',
107
+ ReadCommitted: 'ReadCommitted',
108
+ RepeatableRead: 'RepeatableRead',
109
+ Serializable: 'Serializable'
110
+ });
111
+ export const AgentScalarFieldEnum = {
112
+ id: 'id',
113
+ name: 'name',
114
+ systemPrompt: 'systemPrompt',
115
+ model: 'model',
116
+ budgetUsd: 'budgetUsd',
117
+ createdAt: 'createdAt',
118
+ updatedAt: 'updatedAt',
119
+ kind: 'kind',
120
+ schedule: 'schedule',
121
+ timezone: 'timezone',
122
+ scheduleEnabled: 'scheduleEnabled',
123
+ lastScheduledAt: 'lastScheduledAt',
124
+ maxTurns: 'maxTurns',
125
+ ownerId: 'ownerId',
126
+ budgetGroupId: 'budgetGroupId',
127
+ memoryEnabled: 'memoryEnabled'
128
+ };
129
+ export const AgentSubAgentScalarFieldEnum = {
130
+ parentAgentId: 'parentAgentId',
131
+ childAgentId: 'childAgentId',
132
+ boundName: 'boundName'
133
+ };
134
+ export const BudgetGroupScalarFieldEnum = {
135
+ id: 'id',
136
+ name: 'name',
137
+ ownerId: 'ownerId',
138
+ dailyBudgetUsd: 'dailyBudgetUsd',
139
+ weeklyBudgetUsd: 'weeklyBudgetUsd',
140
+ monthlyBudgetUsd: 'monthlyBudgetUsd',
141
+ warnThresholdRatio: 'warnThresholdRatio',
142
+ createdAt: 'createdAt',
143
+ updatedAt: 'updatedAt'
144
+ };
145
+ export const ToolScalarFieldEnum = {
146
+ id: 'id',
147
+ name: 'name',
148
+ description: 'description',
149
+ paramsZod: 'paramsZod',
150
+ jsonSchema: 'jsonSchema',
151
+ code: 'code',
152
+ createdAt: 'createdAt',
153
+ updatedAt: 'updatedAt',
154
+ ownerId: 'ownerId'
155
+ };
156
+ export const AgentToolScalarFieldEnum = {
157
+ agentId: 'agentId',
158
+ toolId: 'toolId',
159
+ allowedSecrets: 'allowedSecrets',
160
+ allowedDatastorePrefixes: 'allowedDatastorePrefixes',
161
+ allowedHosts: 'allowedHosts',
162
+ allowedSharedDatastorePrefixes: 'allowedSharedDatastorePrefixes'
163
+ };
164
+ export const DatastoreScalarFieldEnum = {
165
+ id: 'id',
166
+ name: 'name',
167
+ ownerId: 'ownerId',
168
+ createdAt: 'createdAt',
169
+ updatedAt: 'updatedAt'
170
+ };
171
+ export const AgentDatastoreScalarFieldEnum = {
172
+ agentId: 'agentId',
173
+ datastoreId: 'datastoreId',
174
+ boundName: 'boundName'
175
+ };
176
+ export const DatastoreEntryScalarFieldEnum = {
177
+ id: 'id',
178
+ agentId: 'agentId',
179
+ datastoreId: 'datastoreId',
180
+ key: 'key',
181
+ value: 'value',
182
+ pii: 'pii',
183
+ keyId: 'keyId',
184
+ updatedAt: 'updatedAt'
185
+ };
186
+ export const AgentMemoryScalarFieldEnum = {
187
+ agentId: 'agentId',
188
+ key: 'key',
189
+ content: 'content',
190
+ updatedAt: 'updatedAt'
191
+ };
192
+ export const RunScalarFieldEnum = {
193
+ id: 'id',
194
+ agentId: 'agentId',
195
+ status: 'status',
196
+ trigger: 'trigger',
197
+ tokensIn: 'tokensIn',
198
+ tokensOut: 'tokensOut',
199
+ costUsd: 'costUsd',
200
+ error: 'error',
201
+ startedAt: 'startedAt',
202
+ finishedAt: 'finishedAt',
203
+ heartbeatAt: 'heartbeatAt',
204
+ finalText: 'finalText',
205
+ turns: 'turns',
206
+ executionManaged: 'executionManaged',
207
+ executionBackend: 'executionBackend',
208
+ parentRunId: 'parentRunId',
209
+ grantedParentMemoryKeys: 'grantedParentMemoryKeys',
210
+ taskOverride: 'taskOverride'
211
+ };
212
+ export const CodingAgentProfileScalarFieldEnum = {
213
+ agentId: 'agentId',
214
+ provider: 'provider',
215
+ repository: 'repository',
216
+ baseRef: 'baseRef',
217
+ defaultTask: 'defaultTask',
218
+ allowWebhookTaskOverride: 'allowWebhookTaskOverride',
219
+ timeoutSec: 'timeoutSec',
220
+ allowedEgress: 'allowedEgress',
221
+ protectedPaths: 'protectedPaths',
222
+ toolchain: 'toolchain',
223
+ toolchainVersion: 'toolchainVersion',
224
+ workerImageRef: 'workerImageRef',
225
+ workspaceDiskMb: 'workspaceDiskMb'
226
+ };
227
+ export const CodingRunScalarFieldEnum = {
228
+ runId: 'runId',
229
+ task: 'task',
230
+ repository: 'repository',
231
+ baseRef: 'baseRef',
232
+ headRef: 'headRef',
233
+ provider: 'provider',
234
+ model: 'model',
235
+ timeoutSec: 'timeoutSec',
236
+ allowedEgress: 'allowedEgress',
237
+ protectedPaths: 'protectedPaths',
238
+ jobBackend: 'jobBackend',
239
+ jobHandle: 'jobHandle',
240
+ result: 'result',
241
+ resultSchema: 'resultSchema',
242
+ failureCategory: 'failureCategory',
243
+ diagnosticId: 'diagnosticId',
244
+ workerImage: 'workerImage',
245
+ budgetReservedUsd: 'budgetReservedUsd',
246
+ queuedAt: 'queuedAt',
247
+ workspaceDiskMb: 'workspaceDiskMb',
248
+ createdAt: 'createdAt',
249
+ updatedAt: 'updatedAt',
250
+ rootCodingRunId: 'rootCodingRunId'
251
+ };
252
+ export const CodingProxySessionScalarFieldEnum = {
253
+ id: 'id',
254
+ runId: 'runId',
255
+ capabilityHash: 'capabilityHash',
256
+ credentialRef: 'credentialRef',
257
+ protocol: 'protocol',
258
+ allowedModels: 'allowedModels',
259
+ deadlineAt: 'deadlineAt',
260
+ budgetUsd: 'budgetUsd',
261
+ status: 'status',
262
+ createdAt: 'createdAt',
263
+ updatedAt: 'updatedAt'
264
+ };
265
+ export const CodingProxyRequestScalarFieldEnum = {
266
+ id: 'id',
267
+ sessionId: 'sessionId',
268
+ requestKey: 'requestKey',
269
+ requestFingerprint: 'requestFingerprint',
270
+ model: 'model',
271
+ status: 'status',
272
+ reservationUsd: 'reservationUsd',
273
+ actualCostUsd: 'actualCostUsd',
274
+ pricingVersion: 'pricingVersion',
275
+ pricingSnapshot: 'pricingSnapshot',
276
+ inputTokens: 'inputTokens',
277
+ outputTokens: 'outputTokens',
278
+ cachedInputTokens: 'cachedInputTokens',
279
+ cacheWriteTokens: 'cacheWriteTokens',
280
+ reasoningTokens: 'reasoningTokens',
281
+ upstreamStatus: 'upstreamStatus',
282
+ createdAt: 'createdAt',
283
+ updatedAt: 'updatedAt',
284
+ completedAt: 'completedAt'
285
+ };
286
+ export const SchedulerLeaseScalarFieldEnum = {
287
+ scope: 'scope',
288
+ holder: 'holder',
289
+ expiresAt: 'expiresAt',
290
+ updatedAt: 'updatedAt'
291
+ };
292
+ export const PrincipalScalarFieldEnum = {
293
+ id: 'id',
294
+ subject: 'subject',
295
+ createdAt: 'createdAt'
296
+ };
297
+ export const TaskScalarFieldEnum = {
298
+ id: 'id',
299
+ kind: 'kind',
300
+ runId: 'runId',
301
+ principalId: 'principalId',
302
+ status: 'status',
303
+ inputRequests: 'inputRequests',
304
+ inputResponses: 'inputResponses',
305
+ result: 'result',
306
+ error: 'error',
307
+ ttlAt: 'ttlAt',
308
+ createdAt: 'createdAt',
309
+ updatedAt: 'updatedAt'
310
+ };
311
+ export const SecretScalarFieldEnum = {
312
+ id: 'id',
313
+ name: 'name',
314
+ ciphertext: 'ciphertext',
315
+ keyId: 'keyId',
316
+ ownerId: 'ownerId',
317
+ createdAt: 'createdAt',
318
+ updatedAt: 'updatedAt'
319
+ };
320
+ export const AgentSecretScalarFieldEnum = {
321
+ agentId: 'agentId',
322
+ secretId: 'secretId',
323
+ boundName: 'boundName'
324
+ };
325
+ export const SecretElicitationOutcomeScalarFieldEnum = {
326
+ ownerId: 'ownerId',
327
+ secretName: 'secretName',
328
+ outcome: 'outcome',
329
+ expiresAt: 'expiresAt'
330
+ };
331
+ export const WebhookScalarFieldEnum = {
332
+ id: 'id',
333
+ agentId: 'agentId',
334
+ secretHash: 'secretHash',
335
+ status: 'status',
336
+ ownerId: 'ownerId',
337
+ createdAt: 'createdAt',
338
+ lastFiredAt: 'lastFiredAt'
339
+ };
340
+ export const OAuthClientScalarFieldEnum = {
341
+ clientId: 'clientId',
342
+ metadata: 'metadata',
343
+ createdAt: 'createdAt'
344
+ };
345
+ export const OAuthGrantScalarFieldEnum = {
346
+ id: 'id',
347
+ familyId: 'familyId',
348
+ refreshTokenHash: 'refreshTokenHash',
349
+ expiresAt: 'expiresAt',
350
+ createdAt: 'createdAt',
351
+ consumedAt: 'consumedAt',
352
+ revokedAt: 'revokedAt',
353
+ replacedById: 'replacedById'
354
+ };
355
+ export const AuthUserScalarFieldEnum = {
356
+ id: 'id',
357
+ principalId: 'principalId',
358
+ displayName: 'displayName',
359
+ status: 'status',
360
+ createdAt: 'createdAt',
361
+ updatedAt: 'updatedAt'
362
+ };
363
+ export const AuthLoginKeyScalarFieldEnum = {
364
+ keyId: 'keyId',
365
+ userId: 'userId',
366
+ secretHash: 'secretHash',
367
+ createdAt: 'createdAt',
368
+ lastUsedAt: 'lastUsedAt',
369
+ expiresAt: 'expiresAt',
370
+ revokedAt: 'revokedAt'
371
+ };
372
+ export const AuthSessionScalarFieldEnum = {
373
+ sessionId: 'sessionId',
374
+ userId: 'userId',
375
+ secretHash: 'secretHash',
376
+ createdAt: 'createdAt',
377
+ lastSeenAt: 'lastSeenAt',
378
+ expiresAt: 'expiresAt',
379
+ revokedAt: 'revokedAt'
380
+ };
381
+ export const AuthFormChallengeScalarFieldEnum = {
382
+ challengeId: 'challengeId',
383
+ sessionId: 'sessionId',
384
+ purpose: 'purpose',
385
+ binding: 'binding',
386
+ secretHash: 'secretHash',
387
+ createdAt: 'createdAt',
388
+ expiresAt: 'expiresAt',
389
+ consumedAt: 'consumedAt'
390
+ };
391
+ export const OAuthAuthorizationRequestScalarFieldEnum = {
392
+ id: 'id',
393
+ clientId: 'clientId',
394
+ redirectUri: 'redirectUri',
395
+ resource: 'resource',
396
+ requestedScope: 'requestedScope',
397
+ codeChallenge: 'codeChallenge',
398
+ state: 'state',
399
+ createdAt: 'createdAt',
400
+ expiresAt: 'expiresAt',
401
+ consumedAt: 'consumedAt'
402
+ };
403
+ export const OAuthAuthorizationCodeScalarFieldEnum = {
404
+ codeId: 'codeId',
405
+ secretHash: 'secretHash',
406
+ clientId: 'clientId',
407
+ userId: 'userId',
408
+ redirectUri: 'redirectUri',
409
+ resource: 'resource',
410
+ scope: 'scope',
411
+ codeChallenge: 'codeChallenge',
412
+ createdAt: 'createdAt',
413
+ expiresAt: 'expiresAt',
414
+ consumedAt: 'consumedAt'
415
+ };
416
+ export const OAuthFamilyScalarFieldEnum = {
417
+ id: 'id',
418
+ clientId: 'clientId',
419
+ userId: 'userId',
420
+ scope: 'scope',
421
+ resource: 'resource',
422
+ expiresAt: 'expiresAt',
423
+ revokedAt: 'revokedAt',
424
+ createdAt: 'createdAt'
425
+ };
426
+ export const AuthRateLimitScalarFieldEnum = {
427
+ key: 'key',
428
+ hits: 'hits',
429
+ expiresAt: 'expiresAt'
430
+ };
431
+ export const SortOrder = {
432
+ asc: 'asc',
433
+ desc: 'desc'
434
+ };
435
+ export const JsonNullValueInput = {
436
+ JsonNull: JsonNull
437
+ };
438
+ export const NullableJsonNullValueInput = {
439
+ DbNull: DbNull,
440
+ JsonNull: JsonNull
441
+ };
442
+ export const QueryMode = {
443
+ default: 'default',
444
+ insensitive: 'insensitive'
445
+ };
446
+ export const NullsOrder = {
447
+ first: 'first',
448
+ last: 'last'
449
+ };
450
+ export const JsonNullValueFilter = {
451
+ DbNull: DbNull,
452
+ JsonNull: JsonNull,
453
+ AnyNull: AnyNull
454
+ };
455
+ export const defineExtension = runtime.Extensions.defineExtension;