@allbluecn/database 0.14.9 → 0.14.11
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.
- package/generated/browser.ts +53 -0
- package/generated/client.ts +53 -0
- package/generated/internal/class.ts +84 -4
- package/generated/internal/prismaNamespace.ts +752 -2
- package/generated/internal/prismaNamespaceBrowser.ts +151 -1
- package/generated/models/HarnessConnectorAccount.ts +20 -14
- package/generated/models/HarnessForgeBinding.ts +1524 -0
- package/generated/models/HarnessPluginMarketSource.ts +1501 -0
- package/generated/models/HarnessPluginVersionExemption.ts +1458 -0
- package/generated/models/HarnessTelemetrySettings.ts +1508 -0
- package/generated/models/HarnessTelemetryUpload.ts +1595 -0
- package/generated/models/HarnessWebhookDelivery.ts +1857 -0
- package/generated/models/HarnessWebhookRule.ts +1858 -0
- package/generated/models/HarnessWorktree.ts +1529 -0
- package/generated/models/User.ts +5648 -610
- package/generated/models.ts +8 -0
- package/migrations/20261128000000_harness_p4_forge_worktree/migration.sql +104 -0
- package/migrations/20261128000001_sync_overlay_harness_p4_forge/migration.sql +548 -0
- package/migrations/20261128000002_harness_p4_telemetry/migration.sql +48 -0
- package/migrations/20261128000003_harness_p5_webhook/migration.sql +82 -0
- package/migrations/20261128000004_harness_p5_webhook_secret_local/migration.sql +9 -0
- package/migrations/20261128000005_harness_p5_connector_meta_local/migration.sql +4 -0
- package/migrations/20261129000000_sync_overlay_harness_p5_webhook/migration.sql +581 -0
- package/migrations/20261129000100_sync_overlay_harness_p5_connector_meta/migration.sql +614 -0
- package/package.json +2 -2
- package/schema.prisma +221 -1
|
@@ -209,12 +209,20 @@ export const ModelName = {
|
|
|
209
209
|
HarnessSchedule: 'HarnessSchedule',
|
|
210
210
|
HarnessScheduleOccurrence: 'HarnessScheduleOccurrence',
|
|
211
211
|
HarnessOutbox: 'HarnessOutbox',
|
|
212
|
+
HarnessWebhookRule: 'HarnessWebhookRule',
|
|
213
|
+
HarnessWebhookDelivery: 'HarnessWebhookDelivery',
|
|
212
214
|
HarnessFeedback: 'HarnessFeedback',
|
|
213
215
|
HarnessMcpServer: 'HarnessMcpServer',
|
|
214
216
|
HarnessSshHost: 'HarnessSshHost',
|
|
215
217
|
HarnessConnectorAccount: 'HarnessConnectorAccount',
|
|
216
218
|
HarnessSessionSearchDocument: 'HarnessSessionSearchDocument',
|
|
217
|
-
HarnessSessionSearchToken: 'HarnessSessionSearchToken'
|
|
219
|
+
HarnessSessionSearchToken: 'HarnessSessionSearchToken',
|
|
220
|
+
HarnessForgeBinding: 'HarnessForgeBinding',
|
|
221
|
+
HarnessWorktree: 'HarnessWorktree',
|
|
222
|
+
HarnessPluginMarketSource: 'HarnessPluginMarketSource',
|
|
223
|
+
HarnessPluginVersionExemption: 'HarnessPluginVersionExemption',
|
|
224
|
+
HarnessTelemetrySettings: 'HarnessTelemetrySettings',
|
|
225
|
+
HarnessTelemetryUpload: 'HarnessTelemetryUpload'
|
|
218
226
|
} as const
|
|
219
227
|
|
|
220
228
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -2714,6 +2722,56 @@ export const HarnessOutboxScalarFieldEnum = {
|
|
|
2714
2722
|
export type HarnessOutboxScalarFieldEnum = (typeof HarnessOutboxScalarFieldEnum)[keyof typeof HarnessOutboxScalarFieldEnum]
|
|
2715
2723
|
|
|
2716
2724
|
|
|
2725
|
+
export const HarnessWebhookRuleScalarFieldEnum = {
|
|
2726
|
+
id: 'id',
|
|
2727
|
+
userId: 'userId',
|
|
2728
|
+
token: 'token',
|
|
2729
|
+
name: 'name',
|
|
2730
|
+
provider: 'provider',
|
|
2731
|
+
threadId: 'threadId',
|
|
2732
|
+
workspaceId: 'workspaceId',
|
|
2733
|
+
prompt: 'prompt',
|
|
2734
|
+
secretCipher: 'secretCipher',
|
|
2735
|
+
secretHint: 'secretHint',
|
|
2736
|
+
events: 'events',
|
|
2737
|
+
repoWhitelist: 'repoWhitelist',
|
|
2738
|
+
ownerWhitelist: 'ownerWhitelist',
|
|
2739
|
+
status: 'status',
|
|
2740
|
+
executionPlane: 'executionPlane',
|
|
2741
|
+
lastDeliveryAt: 'lastDeliveryAt',
|
|
2742
|
+
lastError: 'lastError',
|
|
2743
|
+
revision: 'revision',
|
|
2744
|
+
createdAt: 'createdAt',
|
|
2745
|
+
updatedAt: 'updatedAt'
|
|
2746
|
+
} as const
|
|
2747
|
+
|
|
2748
|
+
export type HarnessWebhookRuleScalarFieldEnum = (typeof HarnessWebhookRuleScalarFieldEnum)[keyof typeof HarnessWebhookRuleScalarFieldEnum]
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
export const HarnessWebhookDeliveryScalarFieldEnum = {
|
|
2752
|
+
id: 'id',
|
|
2753
|
+
ruleId: 'ruleId',
|
|
2754
|
+
userId: 'userId',
|
|
2755
|
+
executionPlane: 'executionPlane',
|
|
2756
|
+
eventKey: 'eventKey',
|
|
2757
|
+
eventType: 'eventType',
|
|
2758
|
+
repo: 'repo',
|
|
2759
|
+
owner: 'owner',
|
|
2760
|
+
summary: 'summary',
|
|
2761
|
+
state: 'state',
|
|
2762
|
+
leaseOwner: 'leaseOwner',
|
|
2763
|
+
leaseUntil: 'leaseUntil',
|
|
2764
|
+
fencingToken: 'fencingToken',
|
|
2765
|
+
attempt: 'attempt',
|
|
2766
|
+
deliveredAt: 'deliveredAt',
|
|
2767
|
+
lastError: 'lastError',
|
|
2768
|
+
createdAt: 'createdAt',
|
|
2769
|
+
updatedAt: 'updatedAt'
|
|
2770
|
+
} as const
|
|
2771
|
+
|
|
2772
|
+
export type HarnessWebhookDeliveryScalarFieldEnum = (typeof HarnessWebhookDeliveryScalarFieldEnum)[keyof typeof HarnessWebhookDeliveryScalarFieldEnum]
|
|
2773
|
+
|
|
2774
|
+
|
|
2717
2775
|
export const HarnessFeedbackScalarFieldEnum = {
|
|
2718
2776
|
id: 'id',
|
|
2719
2777
|
userId: 'userId',
|
|
@@ -2810,6 +2868,98 @@ export const HarnessSessionSearchTokenScalarFieldEnum = {
|
|
|
2810
2868
|
export type HarnessSessionSearchTokenScalarFieldEnum = (typeof HarnessSessionSearchTokenScalarFieldEnum)[keyof typeof HarnessSessionSearchTokenScalarFieldEnum]
|
|
2811
2869
|
|
|
2812
2870
|
|
|
2871
|
+
export const HarnessForgeBindingScalarFieldEnum = {
|
|
2872
|
+
id: 'id',
|
|
2873
|
+
userId: 'userId',
|
|
2874
|
+
provider: 'provider',
|
|
2875
|
+
accountLabel: 'accountLabel',
|
|
2876
|
+
scopeType: 'scopeType',
|
|
2877
|
+
scopeName: 'scopeName',
|
|
2878
|
+
repoWhitelist: 'repoWhitelist',
|
|
2879
|
+
credentialRef: 'credentialRef',
|
|
2880
|
+
createdAt: 'createdAt',
|
|
2881
|
+
updatedAt: 'updatedAt'
|
|
2882
|
+
} as const
|
|
2883
|
+
|
|
2884
|
+
export type HarnessForgeBindingScalarFieldEnum = (typeof HarnessForgeBindingScalarFieldEnum)[keyof typeof HarnessForgeBindingScalarFieldEnum]
|
|
2885
|
+
|
|
2886
|
+
|
|
2887
|
+
export const HarnessWorktreeScalarFieldEnum = {
|
|
2888
|
+
id: 'id',
|
|
2889
|
+
userId: 'userId',
|
|
2890
|
+
threadId: 'threadId',
|
|
2891
|
+
path: 'path',
|
|
2892
|
+
baseBranch: 'baseBranch',
|
|
2893
|
+
headBranch: 'headBranch',
|
|
2894
|
+
status: 'status',
|
|
2895
|
+
removedAt: 'removedAt',
|
|
2896
|
+
createdAt: 'createdAt',
|
|
2897
|
+
updatedAt: 'updatedAt'
|
|
2898
|
+
} as const
|
|
2899
|
+
|
|
2900
|
+
export type HarnessWorktreeScalarFieldEnum = (typeof HarnessWorktreeScalarFieldEnum)[keyof typeof HarnessWorktreeScalarFieldEnum]
|
|
2901
|
+
|
|
2902
|
+
|
|
2903
|
+
export const HarnessPluginMarketSourceScalarFieldEnum = {
|
|
2904
|
+
id: 'id',
|
|
2905
|
+
userId: 'userId',
|
|
2906
|
+
name: 'name',
|
|
2907
|
+
url: 'url',
|
|
2908
|
+
enabled: 'enabled',
|
|
2909
|
+
priority: 'priority',
|
|
2910
|
+
createdAt: 'createdAt',
|
|
2911
|
+
updatedAt: 'updatedAt'
|
|
2912
|
+
} as const
|
|
2913
|
+
|
|
2914
|
+
export type HarnessPluginMarketSourceScalarFieldEnum = (typeof HarnessPluginMarketSourceScalarFieldEnum)[keyof typeof HarnessPluginMarketSourceScalarFieldEnum]
|
|
2915
|
+
|
|
2916
|
+
|
|
2917
|
+
export const HarnessPluginVersionExemptionScalarFieldEnum = {
|
|
2918
|
+
id: 'id',
|
|
2919
|
+
userId: 'userId',
|
|
2920
|
+
pluginName: 'pluginName',
|
|
2921
|
+
versionRange: 'versionRange',
|
|
2922
|
+
reason: 'reason',
|
|
2923
|
+
expiresAt: 'expiresAt',
|
|
2924
|
+
createdAt: 'createdAt',
|
|
2925
|
+
updatedAt: 'updatedAt'
|
|
2926
|
+
} as const
|
|
2927
|
+
|
|
2928
|
+
export type HarnessPluginVersionExemptionScalarFieldEnum = (typeof HarnessPluginVersionExemptionScalarFieldEnum)[keyof typeof HarnessPluginVersionExemptionScalarFieldEnum]
|
|
2929
|
+
|
|
2930
|
+
|
|
2931
|
+
export const HarnessTelemetrySettingsScalarFieldEnum = {
|
|
2932
|
+
id: 'id',
|
|
2933
|
+
userId: 'userId',
|
|
2934
|
+
countersEnabled: 'countersEnabled',
|
|
2935
|
+
uploadEnabled: 'uploadEnabled',
|
|
2936
|
+
endpointUrl: 'endpointUrl',
|
|
2937
|
+
retentionDays: 'retentionDays',
|
|
2938
|
+
excludedThreadIds: 'excludedThreadIds',
|
|
2939
|
+
excludedWorkspaceIds: 'excludedWorkspaceIds',
|
|
2940
|
+
createdAt: 'createdAt',
|
|
2941
|
+
updatedAt: 'updatedAt'
|
|
2942
|
+
} as const
|
|
2943
|
+
|
|
2944
|
+
export type HarnessTelemetrySettingsScalarFieldEnum = (typeof HarnessTelemetrySettingsScalarFieldEnum)[keyof typeof HarnessTelemetrySettingsScalarFieldEnum]
|
|
2945
|
+
|
|
2946
|
+
|
|
2947
|
+
export const HarnessTelemetryUploadScalarFieldEnum = {
|
|
2948
|
+
id: 'id',
|
|
2949
|
+
userId: 'userId',
|
|
2950
|
+
endpointUrl: 'endpointUrl',
|
|
2951
|
+
endpointKind: 'endpointKind',
|
|
2952
|
+
status: 'status',
|
|
2953
|
+
payloadBytes: 'payloadBytes',
|
|
2954
|
+
threadCount: 'threadCount',
|
|
2955
|
+
eventCount: 'eventCount',
|
|
2956
|
+
errorText: 'errorText',
|
|
2957
|
+
uploadedAt: 'uploadedAt'
|
|
2958
|
+
} as const
|
|
2959
|
+
|
|
2960
|
+
export type HarnessTelemetryUploadScalarFieldEnum = (typeof HarnessTelemetryUploadScalarFieldEnum)[keyof typeof HarnessTelemetryUploadScalarFieldEnum]
|
|
2961
|
+
|
|
2962
|
+
|
|
2813
2963
|
export const SortOrder = {
|
|
2814
2964
|
asc: 'asc',
|
|
2815
2965
|
desc: 'desc'
|
|
@@ -179,7 +179,7 @@ export type HarnessConnectorAccountGroupByOutputType = {
|
|
|
179
179
|
kind: string
|
|
180
180
|
provider: string
|
|
181
181
|
label: string
|
|
182
|
-
secretCipher: string
|
|
182
|
+
secretCipher: string | null
|
|
183
183
|
metadata: runtime.JsonValue | null
|
|
184
184
|
expiresAt: Date | null
|
|
185
185
|
createdAt: Date
|
|
@@ -213,7 +213,7 @@ export type HarnessConnectorAccountWhereInput = {
|
|
|
213
213
|
kind?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
|
|
214
214
|
provider?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
|
|
215
215
|
label?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
|
|
216
|
-
secretCipher?: Prisma.
|
|
216
|
+
secretCipher?: Prisma.StringNullableFilter<"HarnessConnectorAccount"> | string | null
|
|
217
217
|
metadata?: Prisma.JsonNullableFilter<"HarnessConnectorAccount">
|
|
218
218
|
expiresAt?: Prisma.DateTimeNullableFilter<"HarnessConnectorAccount"> | Date | string | null
|
|
219
219
|
createdAt?: Prisma.DateTimeFilter<"HarnessConnectorAccount"> | Date | string
|
|
@@ -226,7 +226,7 @@ export type HarnessConnectorAccountOrderByWithRelationInput = {
|
|
|
226
226
|
kind?: Prisma.SortOrder
|
|
227
227
|
provider?: Prisma.SortOrder
|
|
228
228
|
label?: Prisma.SortOrder
|
|
229
|
-
secretCipher?: Prisma.SortOrder
|
|
229
|
+
secretCipher?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
230
230
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
231
231
|
expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
232
232
|
createdAt?: Prisma.SortOrder
|
|
@@ -243,7 +243,7 @@ export type HarnessConnectorAccountWhereUniqueInput = Prisma.AtLeast<{
|
|
|
243
243
|
kind?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
|
|
244
244
|
provider?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
|
|
245
245
|
label?: Prisma.StringFilter<"HarnessConnectorAccount"> | string
|
|
246
|
-
secretCipher?: Prisma.
|
|
246
|
+
secretCipher?: Prisma.StringNullableFilter<"HarnessConnectorAccount"> | string | null
|
|
247
247
|
metadata?: Prisma.JsonNullableFilter<"HarnessConnectorAccount">
|
|
248
248
|
expiresAt?: Prisma.DateTimeNullableFilter<"HarnessConnectorAccount"> | Date | string | null
|
|
249
249
|
createdAt?: Prisma.DateTimeFilter<"HarnessConnectorAccount"> | Date | string
|
|
@@ -256,7 +256,7 @@ export type HarnessConnectorAccountOrderByWithAggregationInput = {
|
|
|
256
256
|
kind?: Prisma.SortOrder
|
|
257
257
|
provider?: Prisma.SortOrder
|
|
258
258
|
label?: Prisma.SortOrder
|
|
259
|
-
secretCipher?: Prisma.SortOrder
|
|
259
|
+
secretCipher?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
260
260
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
261
261
|
expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
262
262
|
createdAt?: Prisma.SortOrder
|
|
@@ -275,7 +275,7 @@ export type HarnessConnectorAccountScalarWhereWithAggregatesInput = {
|
|
|
275
275
|
kind?: Prisma.StringWithAggregatesFilter<"HarnessConnectorAccount"> | string
|
|
276
276
|
provider?: Prisma.StringWithAggregatesFilter<"HarnessConnectorAccount"> | string
|
|
277
277
|
label?: Prisma.StringWithAggregatesFilter<"HarnessConnectorAccount"> | string
|
|
278
|
-
secretCipher?: Prisma.
|
|
278
|
+
secretCipher?: Prisma.StringNullableWithAggregatesFilter<"HarnessConnectorAccount"> | string | null
|
|
279
279
|
metadata?: Prisma.JsonNullableWithAggregatesFilter<"HarnessConnectorAccount">
|
|
280
280
|
expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HarnessConnectorAccount"> | Date | string | null
|
|
281
281
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HarnessConnectorAccount"> | Date | string
|
|
@@ -288,7 +288,7 @@ export type HarnessConnectorAccountCreateInput = {
|
|
|
288
288
|
kind: string
|
|
289
289
|
provider: string
|
|
290
290
|
label: string
|
|
291
|
-
secretCipher
|
|
291
|
+
secretCipher?: string | null
|
|
292
292
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
293
293
|
expiresAt?: Date | string | null
|
|
294
294
|
createdAt?: Date | string
|
|
@@ -301,7 +301,7 @@ export type HarnessConnectorAccountUncheckedCreateInput = {
|
|
|
301
301
|
kind: string
|
|
302
302
|
provider: string
|
|
303
303
|
label: string
|
|
304
|
-
secretCipher
|
|
304
|
+
secretCipher?: string | null
|
|
305
305
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
306
306
|
expiresAt?: Date | string | null
|
|
307
307
|
createdAt?: Date | string
|
|
@@ -314,7 +314,7 @@ export type HarnessConnectorAccountUpdateInput = {
|
|
|
314
314
|
kind?: Prisma.StringFieldUpdateOperationsInput | string
|
|
315
315
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
316
316
|
label?: Prisma.StringFieldUpdateOperationsInput | string
|
|
317
|
-
secretCipher?: Prisma.
|
|
317
|
+
secretCipher?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
318
318
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
319
319
|
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
320
320
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -327,7 +327,7 @@ export type HarnessConnectorAccountUncheckedUpdateInput = {
|
|
|
327
327
|
kind?: Prisma.StringFieldUpdateOperationsInput | string
|
|
328
328
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
329
329
|
label?: Prisma.StringFieldUpdateOperationsInput | string
|
|
330
|
-
secretCipher?: Prisma.
|
|
330
|
+
secretCipher?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
331
331
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
332
332
|
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
333
333
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -340,7 +340,7 @@ export type HarnessConnectorAccountCreateManyInput = {
|
|
|
340
340
|
kind: string
|
|
341
341
|
provider: string
|
|
342
342
|
label: string
|
|
343
|
-
secretCipher
|
|
343
|
+
secretCipher?: string | null
|
|
344
344
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
345
345
|
expiresAt?: Date | string | null
|
|
346
346
|
createdAt?: Date | string
|
|
@@ -353,7 +353,7 @@ export type HarnessConnectorAccountUpdateManyMutationInput = {
|
|
|
353
353
|
kind?: Prisma.StringFieldUpdateOperationsInput | string
|
|
354
354
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
355
355
|
label?: Prisma.StringFieldUpdateOperationsInput | string
|
|
356
|
-
secretCipher?: Prisma.
|
|
356
|
+
secretCipher?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
357
357
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
358
358
|
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
359
359
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -366,7 +366,7 @@ export type HarnessConnectorAccountUncheckedUpdateManyInput = {
|
|
|
366
366
|
kind?: Prisma.StringFieldUpdateOperationsInput | string
|
|
367
367
|
provider?: Prisma.StringFieldUpdateOperationsInput | string
|
|
368
368
|
label?: Prisma.StringFieldUpdateOperationsInput | string
|
|
369
|
-
secretCipher?: Prisma.
|
|
369
|
+
secretCipher?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
370
370
|
metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
371
371
|
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
372
372
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
@@ -482,7 +482,13 @@ export type $HarnessConnectorAccountPayload<ExtArgs extends runtime.Types.Extens
|
|
|
482
482
|
kind: string
|
|
483
483
|
provider: string
|
|
484
484
|
label: string
|
|
485
|
-
|
|
485
|
+
/**
|
|
486
|
+
* 加密凭据(AES,encryptApiKey)。**可空**(P5 任务 5):跨端只同步账号元数据
|
|
487
|
+
* (kind/provider/label/metadata/expiresAt),凭据永不跨端——同步而来的行
|
|
488
|
+
* secretCipher 为 NULL,运行时经 CredentialStore 读到 null → 连接器自然缺席,
|
|
489
|
+
* 用户在该设备重新授权后恢复。
|
|
490
|
+
*/
|
|
491
|
+
secretCipher: string | null
|
|
486
492
|
metadata: runtime.JsonValue | null
|
|
487
493
|
expiresAt: Date | null
|
|
488
494
|
createdAt: Date
|