@bike4mind/cli 5.2.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentHistoryStore-dVWBO__c.mjs → AgentHistoryStore-DmjsjprP.mjs} +8874 -175
- package/dist/{ApiClient-ByJM2OpM.mjs → ApiClient-z1v3ZiyX.mjs} +3 -3
- package/dist/{BubblewrapRuntime-BQICHr_L.mjs → BubblewrapRuntime-tQxRxWDx.mjs} +2 -2
- package/dist/{ConfigStore-BnhyywYB.mjs → ConfigStore-DV3DLYe7.mjs} +2 -2
- package/dist/ConfigStore-DuoHZ-FU.mjs +2 -0
- package/dist/{Logger-DqWiTWp3.mjs → Logger-BL2tt7VU.mjs} +1275 -102
- package/dist/{SandboxOrchestrator-B-6_ssTd.mjs → SandboxOrchestrator-CvgTBr8Y.mjs} +1 -1
- package/dist/{SandboxRuntimeAdapter-CJhDJVwo.mjs → SandboxRuntimeAdapter-C2SCtV5L.mjs} +2 -2
- package/dist/{SandboxRuntimeAdapter-DdF8pI-i.mjs → SandboxRuntimeAdapter-Z53LMuMM.mjs} +1 -1
- package/dist/{SeatbeltRuntime-oPrQ1VGL.mjs → SeatbeltRuntime-B3mQajp2.mjs} +2 -2
- package/dist/{WorkItemsClient-BRvm9GFY.mjs → WorkItemsClient-D9AzCyZL.mjs} +1 -1
- package/dist/{buildToolSearch-BLpr9m1F.mjs → buildToolSearch-CiGysMAm.mjs} +2 -2
- package/dist/commands/acpCommand.mjs +5 -5
- package/dist/commands/apiCommand.mjs +1 -1
- package/dist/commands/doctorCommand.mjs +2 -2
- package/dist/commands/envCommand.mjs +1 -1
- package/dist/commands/headlessCommand.mjs +5 -6
- package/dist/commands/mcpCommand.mjs +3 -3
- package/dist/commands/mirrorCommand.mjs +2 -2
- package/dist/commands/modelsCommand.mjs +4 -4
- package/dist/commands/pluginCommand.mjs +1 -1
- package/dist/commands/skillsCommand.mjs +3 -3
- package/dist/commands/updateCommand.mjs +2 -2
- package/dist/dist-gMa7bapu.mjs +1209 -0
- package/dist/{fit-hHSF95FV.mjs → fit-Cks7OTh3.mjs} +3 -3
- package/dist/index.mjs +12 -15
- package/dist/{modelServers-BmmJuF8X.mjs → modelServers-DlyDu08E.mjs} +1 -1
- package/dist/{package-CZ2nssWx.mjs → package-CB8wzf84.mjs} +1 -1
- package/dist/{serve-BDv7yCLB.mjs → serve-bulD3gJ-.mjs} +288 -28
- package/dist/{updateChecker-DoKgSiYX.mjs → updateChecker-a6OuWq18.mjs} +1 -1
- package/package.json +10 -10
- package/dist/ConfigStore-9rudXRh5.mjs +0 -2
- package/dist/dist-DQHccCo7.mjs +0 -10019
|
@@ -12,7 +12,6 @@ import timezone from "dayjs/plugin/timezone.js";
|
|
|
12
12
|
import utc from "dayjs/plugin/utc.js";
|
|
13
13
|
import relativeTime from "dayjs/plugin/relativeTime.js";
|
|
14
14
|
import localizedFormat from "dayjs/plugin/localizedFormat.js";
|
|
15
|
-
import { isAxiosError } from "axios";
|
|
16
15
|
//#region ../../b4m-core/common/dist/api-BWq4M1mv.mjs
|
|
17
16
|
const APP_NAME = process.env.APP_NAME || "";
|
|
18
17
|
const WEBSITE_URL = process.env.WEBSITE_URL || "";
|
|
@@ -4230,6 +4229,96 @@ const ADMIN_AUDIT_CATALOGUE = {
|
|
|
4230
4229
|
category: "access",
|
|
4231
4230
|
severity: "notice",
|
|
4232
4231
|
write: "strict"
|
|
4232
|
+
},
|
|
4233
|
+
"status.incident.created": {
|
|
4234
|
+
category: "status",
|
|
4235
|
+
severity: "info",
|
|
4236
|
+
write: "strict"
|
|
4237
|
+
},
|
|
4238
|
+
"status.incident.published": {
|
|
4239
|
+
category: "status",
|
|
4240
|
+
severity: "notice",
|
|
4241
|
+
write: "strict"
|
|
4242
|
+
},
|
|
4243
|
+
"status.incident.updated": {
|
|
4244
|
+
category: "status",
|
|
4245
|
+
severity: "notice",
|
|
4246
|
+
write: "strict"
|
|
4247
|
+
},
|
|
4248
|
+
"status.incident.corrected": {
|
|
4249
|
+
category: "status",
|
|
4250
|
+
severity: "notice",
|
|
4251
|
+
write: "strict"
|
|
4252
|
+
},
|
|
4253
|
+
"status.incident.resolved": {
|
|
4254
|
+
category: "status",
|
|
4255
|
+
severity: "notice",
|
|
4256
|
+
write: "strict"
|
|
4257
|
+
},
|
|
4258
|
+
"status.incident.reopened": {
|
|
4259
|
+
category: "status",
|
|
4260
|
+
severity: "notice",
|
|
4261
|
+
write: "strict"
|
|
4262
|
+
},
|
|
4263
|
+
"status.incident.retracted": {
|
|
4264
|
+
category: "status",
|
|
4265
|
+
severity: "critical",
|
|
4266
|
+
write: "strict"
|
|
4267
|
+
},
|
|
4268
|
+
"status.incident.classification_raised": {
|
|
4269
|
+
category: "status",
|
|
4270
|
+
severity: "notice",
|
|
4271
|
+
write: "strict"
|
|
4272
|
+
},
|
|
4273
|
+
"status.incident.classification_lowered": {
|
|
4274
|
+
category: "status",
|
|
4275
|
+
severity: "critical",
|
|
4276
|
+
write: "strict"
|
|
4277
|
+
},
|
|
4278
|
+
"status.incident.note_added": {
|
|
4279
|
+
category: "status",
|
|
4280
|
+
severity: "info",
|
|
4281
|
+
write: "bestEffort"
|
|
4282
|
+
},
|
|
4283
|
+
"status.incident.postmortem_attached": {
|
|
4284
|
+
category: "status",
|
|
4285
|
+
severity: "notice",
|
|
4286
|
+
write: "strict"
|
|
4287
|
+
},
|
|
4288
|
+
"status.component.pinned": {
|
|
4289
|
+
category: "status",
|
|
4290
|
+
severity: "notice",
|
|
4291
|
+
write: "strict"
|
|
4292
|
+
},
|
|
4293
|
+
"status.component.unpinned": {
|
|
4294
|
+
category: "status",
|
|
4295
|
+
severity: "notice",
|
|
4296
|
+
write: "strict"
|
|
4297
|
+
},
|
|
4298
|
+
"status.component.suppressed": {
|
|
4299
|
+
category: "status",
|
|
4300
|
+
severity: "notice",
|
|
4301
|
+
write: "strict"
|
|
4302
|
+
},
|
|
4303
|
+
"status.component.edited": {
|
|
4304
|
+
category: "status",
|
|
4305
|
+
severity: "notice",
|
|
4306
|
+
write: "strict"
|
|
4307
|
+
},
|
|
4308
|
+
"status.component.published": {
|
|
4309
|
+
category: "status",
|
|
4310
|
+
severity: "notice",
|
|
4311
|
+
write: "strict"
|
|
4312
|
+
},
|
|
4313
|
+
"status.component.history_corrected": {
|
|
4314
|
+
category: "status",
|
|
4315
|
+
severity: "critical",
|
|
4316
|
+
write: "strict"
|
|
4317
|
+
},
|
|
4318
|
+
"status.snapshot.force_published": {
|
|
4319
|
+
category: "status",
|
|
4320
|
+
severity: "notice",
|
|
4321
|
+
write: "strict"
|
|
4233
4322
|
}
|
|
4234
4323
|
};
|
|
4235
4324
|
Object.keys(ADMIN_AUDIT_CATALOGUE).filter((action) => "escalatesAboveGrantThreshold" in ADMIN_AUDIT_CATALOGUE[action]);
|
|
@@ -4405,13 +4494,16 @@ const SreRepoConfigSchema = z$1.object({
|
|
|
4405
4494
|
}).default({
|
|
4406
4495
|
required: ["bug"],
|
|
4407
4496
|
anyOf: []
|
|
4408
|
-
})
|
|
4497
|
+
}),
|
|
4498
|
+
/** GitHub logins whose `labeled` and `reopened` issue events are not dispatched. */
|
|
4499
|
+
ignoredSenderLogins: z$1.array(z$1.string()).default([])
|
|
4409
4500
|
}).default({
|
|
4410
4501
|
enabled: false,
|
|
4411
4502
|
labelFilter: {
|
|
4412
4503
|
required: ["bug"],
|
|
4413
4504
|
anyOf: []
|
|
4414
|
-
}
|
|
4505
|
+
},
|
|
4506
|
+
ignoredSenderLogins: []
|
|
4415
4507
|
})
|
|
4416
4508
|
}).default({
|
|
4417
4509
|
cloudwatch: { enabled: false },
|
|
@@ -4420,7 +4512,8 @@ const SreRepoConfigSchema = z$1.object({
|
|
|
4420
4512
|
labelFilter: {
|
|
4421
4513
|
required: ["bug"],
|
|
4422
4514
|
anyOf: []
|
|
4423
|
-
}
|
|
4515
|
+
},
|
|
4516
|
+
ignoredSenderLogins: []
|
|
4424
4517
|
}
|
|
4425
4518
|
}),
|
|
4426
4519
|
/** Recurrence guard */
|
|
@@ -5517,7 +5610,10 @@ z$1.object({
|
|
|
5517
5610
|
groupId: z$1.string(),
|
|
5518
5611
|
jobs: z$1.array(StudioRenderJobSchema)
|
|
5519
5612
|
});
|
|
5520
|
-
z$1.strictObject({
|
|
5613
|
+
z$1.strictObject({
|
|
5614
|
+
outputIds: z$1.array(z$1.string().min(1).max(64)).min(1).max(8),
|
|
5615
|
+
organization_id: z$1.string().trim().min(1).nullable().optional()
|
|
5616
|
+
});
|
|
5521
5617
|
const FILE_EMBEDDING_USER_BUDGET_PER_WINDOW_USD_MAX = 1e3;
|
|
5522
5618
|
/**
|
|
5523
5619
|
* Embedded tokens a single user may send per window. Metered beside the USD budget because the
|
|
@@ -9898,6 +9994,7 @@ const settingsMap = {
|
|
|
9898
9994
|
}),
|
|
9899
9995
|
apiRateLimitFreePerMin: makeNumberSetting({
|
|
9900
9996
|
key: "apiRateLimitFreePerMin",
|
|
9997
|
+
abuseControl: "traffic",
|
|
9901
9998
|
name: "API Rate Limit — Free (requests/min)",
|
|
9902
9999
|
defaultValue: 10,
|
|
9903
10000
|
min: 0,
|
|
@@ -9910,6 +10007,7 @@ const settingsMap = {
|
|
|
9910
10007
|
}),
|
|
9911
10008
|
apiRateLimitBasicPerMin: makeNumberSetting({
|
|
9912
10009
|
key: "apiRateLimitBasicPerMin",
|
|
10010
|
+
abuseControl: "traffic",
|
|
9913
10011
|
name: "API Rate Limit — Basic (requests/min)",
|
|
9914
10012
|
defaultValue: 30,
|
|
9915
10013
|
min: 1,
|
|
@@ -9922,6 +10020,7 @@ const settingsMap = {
|
|
|
9922
10020
|
}),
|
|
9923
10021
|
apiRateLimitProPerMin: makeNumberSetting({
|
|
9924
10022
|
key: "apiRateLimitProPerMin",
|
|
10023
|
+
abuseControl: "traffic",
|
|
9925
10024
|
name: "API Rate Limit — Pro (requests/min)",
|
|
9926
10025
|
defaultValue: 60,
|
|
9927
10026
|
min: 1,
|
|
@@ -9934,6 +10033,7 @@ const settingsMap = {
|
|
|
9934
10033
|
}),
|
|
9935
10034
|
apiRateLimitCreditsPerMin: makeNumberSetting({
|
|
9936
10035
|
key: "apiRateLimitCreditsPerMin",
|
|
10036
|
+
abuseControl: "traffic",
|
|
9937
10037
|
name: "API Rate Limit - Credit Balance Reads (requests/min per key)",
|
|
9938
10038
|
defaultValue: 0,
|
|
9939
10039
|
min: 0,
|
|
@@ -9946,6 +10046,7 @@ const settingsMap = {
|
|
|
9946
10046
|
}),
|
|
9947
10047
|
apiRateLimitDefaultWritePerMin: makeNumberSetting({
|
|
9948
10048
|
key: "apiRateLimitDefaultWritePerMin",
|
|
10049
|
+
abuseControl: "traffic",
|
|
9949
10050
|
name: "Default Write Rate Limit (writes/min per user)",
|
|
9950
10051
|
defaultValue: 120,
|
|
9951
10052
|
min: 1,
|
|
@@ -9958,6 +10059,7 @@ const settingsMap = {
|
|
|
9958
10059
|
}),
|
|
9959
10060
|
apiRateLimitDefaultWriteMode: makeStringSetting({
|
|
9960
10061
|
key: "apiRateLimitDefaultWriteMode",
|
|
10062
|
+
abuseControl: "traffic",
|
|
9961
10063
|
name: "Default Write Rate Limit Mode",
|
|
9962
10064
|
defaultValue: "log",
|
|
9963
10065
|
description: "\"log\": writes over the cap are allowed and logged, to measure real usage before enforcing. \"enforce\": writes over the cap get 429 Too Many Requests. \"off\": not counted at all. Changes apply within 15 seconds.",
|
|
@@ -10074,6 +10176,7 @@ const settingsMap = {
|
|
|
10074
10176
|
}),
|
|
10075
10177
|
oauthAbuseAutoBlockEnabled: makeBooleanSetting({
|
|
10076
10178
|
key: "oauthAbuseAutoBlockEnabled",
|
|
10179
|
+
abuseControl: "traffic",
|
|
10077
10180
|
name: "OAuth Abuse Auto-Block",
|
|
10078
10181
|
defaultValue: true,
|
|
10079
10182
|
description: "Automatically block IPs whose failed OAuth sign-ins reach the threshold within the window.",
|
|
@@ -10083,6 +10186,7 @@ const settingsMap = {
|
|
|
10083
10186
|
}),
|
|
10084
10187
|
oauthAbuseAttemptThreshold: makeNumberSetting({
|
|
10085
10188
|
key: "oauthAbuseAttemptThreshold",
|
|
10189
|
+
abuseControl: "traffic",
|
|
10086
10190
|
name: "OAuth Abuse Attempt Threshold",
|
|
10087
10191
|
defaultValue: 20,
|
|
10088
10192
|
min: 1,
|
|
@@ -10094,6 +10198,7 @@ const settingsMap = {
|
|
|
10094
10198
|
}),
|
|
10095
10199
|
oauthAbuseWindowMinutes: makeNumberSetting({
|
|
10096
10200
|
key: "oauthAbuseWindowMinutes",
|
|
10201
|
+
abuseControl: "traffic",
|
|
10097
10202
|
name: "OAuth Abuse Window (minutes)",
|
|
10098
10203
|
defaultValue: 10,
|
|
10099
10204
|
min: 1,
|
|
@@ -10106,6 +10211,7 @@ const settingsMap = {
|
|
|
10106
10211
|
}),
|
|
10107
10212
|
oauthAbuseBlockEscalationMinutes: withSchema(makeStringSetting({
|
|
10108
10213
|
key: "oauthAbuseBlockEscalationMinutes",
|
|
10214
|
+
abuseControl: "traffic",
|
|
10109
10215
|
name: "OAuth Abuse Block Escalation (minutes)",
|
|
10110
10216
|
defaultValue: "10,60,1440",
|
|
10111
10217
|
description: "Comma-separated block durations in minutes. Each repeat block of the same IP within the lookback moves one step up; the last step repeats.",
|
|
@@ -10115,6 +10221,7 @@ const settingsMap = {
|
|
|
10115
10221
|
}), z$1.string().refine(isEscalationScheduleOrBlank, { message: "Use comma-separated positive whole minutes with valid expiry dates, e.g. 10,60,1440" })),
|
|
10116
10222
|
oauthAbuseLookbackHours: makeNumberSetting({
|
|
10117
10223
|
key: "oauthAbuseLookbackHours",
|
|
10224
|
+
abuseControl: "traffic",
|
|
10118
10225
|
name: "OAuth Abuse Escalation Lookback (hours)",
|
|
10119
10226
|
defaultValue: 24,
|
|
10120
10227
|
min: 1,
|
|
@@ -10127,6 +10234,7 @@ const settingsMap = {
|
|
|
10127
10234
|
}),
|
|
10128
10235
|
oauthRateLimitPerIp: makeNumberSetting({
|
|
10129
10236
|
key: "oauthRateLimitPerIp",
|
|
10237
|
+
abuseControl: "traffic",
|
|
10130
10238
|
name: "OAuth Rate Limit (requests per IP)",
|
|
10131
10239
|
defaultValue: 40,
|
|
10132
10240
|
min: 1,
|
|
@@ -10138,6 +10246,7 @@ const settingsMap = {
|
|
|
10138
10246
|
}),
|
|
10139
10247
|
oauthRateLimitWindowMinutes: makeNumberSetting({
|
|
10140
10248
|
key: "oauthRateLimitWindowMinutes",
|
|
10249
|
+
abuseControl: "traffic",
|
|
10141
10250
|
name: "OAuth Rate Limit Window (minutes)",
|
|
10142
10251
|
defaultValue: 10,
|
|
10143
10252
|
min: 1,
|
|
@@ -10868,6 +10977,7 @@ const settingsMap = {
|
|
|
10868
10977
|
}),
|
|
10869
10978
|
allowOpenRegistration: makeBooleanSetting({
|
|
10870
10979
|
key: "allowOpenRegistration",
|
|
10980
|
+
abuseControl: "signup",
|
|
10871
10981
|
name: "Allow Open Registration",
|
|
10872
10982
|
defaultValue: false,
|
|
10873
10983
|
description: "Master switch for self-serve signup. When OFF (default), a valid invite code is required to register. When ON, users may register without an invite code; the signup grant (Signup Grant Initial Credits) is then released after they verify their email (anti-spam). Safe to enable: the pre-request credit reservation caps every free user at the credits they are granted.",
|
|
@@ -10875,6 +10985,7 @@ const settingsMap = {
|
|
|
10875
10985
|
}),
|
|
10876
10986
|
apiKeyTrustGateEnabled: makeBooleanSetting({
|
|
10877
10987
|
key: "apiKeyTrustGateEnabled",
|
|
10988
|
+
abuseControl: "traffic",
|
|
10878
10989
|
name: "API Key Trust Gate",
|
|
10879
10990
|
defaultValue: true,
|
|
10880
10991
|
description: "Restricts personal API key creation for untrusted accounts: an unverified email cannot mint keys, and a verified account that has not purchased, is younger than the minimum age and is not admin-approved is limited to the untrusted key cap. The same trust check blocks untrusted accounts from outbound actions (email send, invites, tools, agent helpers, publishing). Off restores unrestricted minting and lifts the untrusted rate limit and outbound block (moderated accounts stay blocked). Changes reach running servers within about 5 minutes (settings cache).",
|
|
@@ -10884,6 +10995,7 @@ const settingsMap = {
|
|
|
10884
10995
|
}),
|
|
10885
10996
|
apiKeyMinAccountAgeDays: makeNumberSetting({
|
|
10886
10997
|
key: "apiKeyMinAccountAgeDays",
|
|
10998
|
+
abuseControl: "traffic",
|
|
10887
10999
|
name: "API Key Trust: Minimum Account Age (days)",
|
|
10888
11000
|
defaultValue: 7,
|
|
10889
11001
|
min: 0,
|
|
@@ -10897,6 +11009,7 @@ const settingsMap = {
|
|
|
10897
11009
|
}),
|
|
10898
11010
|
apiKeyAccountAgeTrustsKeys: makeBooleanSetting({
|
|
10899
11011
|
key: "apiKeyAccountAgeTrustsKeys",
|
|
11012
|
+
abuseControl: "traffic",
|
|
10900
11013
|
name: "API Key Trust: Account Age Lifts Key Limits",
|
|
10901
11014
|
defaultValue: true,
|
|
10902
11015
|
description: "On (default): an account older than the minimum age is trusted for API keys, so the untrusted key cap, rate limits and quotas stop applying to it. Off: only a purchase, an active plan or admin approval lifts them, at any account age. Account age still unlocks outbound actions either way.",
|
|
@@ -10907,6 +11020,7 @@ const settingsMap = {
|
|
|
10907
11020
|
}),
|
|
10908
11021
|
maxActiveKeysUntrusted: makeNumberSetting({
|
|
10909
11022
|
key: "maxActiveKeysUntrusted",
|
|
11023
|
+
abuseControl: "traffic",
|
|
10910
11024
|
name: "API Key Trust: Max Active Keys (untrusted)",
|
|
10911
11025
|
defaultValue: 1,
|
|
10912
11026
|
min: 0,
|
|
@@ -10920,6 +11034,7 @@ const settingsMap = {
|
|
|
10920
11034
|
}),
|
|
10921
11035
|
apiKeyUntrustedRateLimitPerMin: makeNumberSetting({
|
|
10922
11036
|
key: "apiKeyUntrustedRateLimitPerMin",
|
|
11037
|
+
abuseControl: "traffic",
|
|
10923
11038
|
name: "API Key Trust: Untrusted Rate Limit (requests/min)",
|
|
10924
11039
|
defaultValue: 20,
|
|
10925
11040
|
min: 1,
|
|
@@ -10933,6 +11048,7 @@ const settingsMap = {
|
|
|
10933
11048
|
}),
|
|
10934
11049
|
apiKeyUntrustedRequestsPerDay: makeNumberSetting({
|
|
10935
11050
|
key: "apiKeyUntrustedRequestsPerDay",
|
|
11051
|
+
abuseControl: "traffic",
|
|
10936
11052
|
name: "API Key Trust: Untrusted Daily Limit (requests/day)",
|
|
10937
11053
|
defaultValue: 0,
|
|
10938
11054
|
min: 0,
|
|
@@ -10946,6 +11062,7 @@ const settingsMap = {
|
|
|
10946
11062
|
}),
|
|
10947
11063
|
apiKeyUntrustedTokensPerMin: makeNumberSetting({
|
|
10948
11064
|
key: "apiKeyUntrustedTokensPerMin",
|
|
11065
|
+
abuseControl: "traffic",
|
|
10949
11066
|
name: "API Key Trust: Untrusted Token Rate (tokens/min)",
|
|
10950
11067
|
defaultValue: 0,
|
|
10951
11068
|
min: 0,
|
|
@@ -10959,6 +11076,7 @@ const settingsMap = {
|
|
|
10959
11076
|
}),
|
|
10960
11077
|
apiKeyUntrustedMaxConcurrent: makeNumberSetting({
|
|
10961
11078
|
key: "apiKeyUntrustedMaxConcurrent",
|
|
11079
|
+
abuseControl: "traffic",
|
|
10962
11080
|
name: "API Key Trust: Untrusted Concurrent Completions",
|
|
10963
11081
|
defaultValue: 0,
|
|
10964
11082
|
min: 0,
|
|
@@ -11001,6 +11119,7 @@ const settingsMap = {
|
|
|
11001
11119
|
}),
|
|
11002
11120
|
abuseAssessmentEnabled: makeBooleanSetting({
|
|
11003
11121
|
key: "abuseAssessmentEnabled",
|
|
11122
|
+
abuseControl: "traffic",
|
|
11004
11123
|
name: "Advisory Abuse Assessment",
|
|
11005
11124
|
defaultValue: false,
|
|
11006
11125
|
description: "Lets a Decisions model add an advisory judgment (abuse, legitimate automation or insufficient evidence) to shadow detections, from a pseudonymous summary of counts and flags. Paid from the platform key and budget, never from the assessed account. Advisory only: it never changes an account, its access, its credits or its review state. Off means no provider calls.",
|
|
@@ -11021,6 +11140,7 @@ const settingsMap = {
|
|
|
11021
11140
|
}),
|
|
11022
11141
|
autoContainmentConfig: makeObjectSetting({
|
|
11023
11142
|
key: "autoContainmentConfig",
|
|
11143
|
+
abuseControl: "traffic",
|
|
11024
11144
|
name: "Automated Containment from Abuse Assessments",
|
|
11025
11145
|
defaultValue: AutoContainmentConfigSchema.parse({}),
|
|
11026
11146
|
description: "What happens when an abuse assessment judges a detection as abuse at or above minConfidence (0.5-1). mode: off (nothing), shadow (records the decision for grading against the detection's admin verdict and changes no account; the default) or enforce (contains the accounts through the bulk Contain path: suspended, Stripe subscriptions canceled, positive balance removed, API keys revoked, sessions ended, attributed to the system with the evidence as the reason). Unsuspend on the user profile reverses the suspension; revoked keys stay revoked and a removed balance is not restored. maxPerHour caps decisions per hour, counted per mode (over it, the decision is recorded as capped and re-evaluated after the hour); maxAccountsPerDetection sends larger detections to an admin; blockEmailDomains also blocks the accounts' owned email domains, which refuses every new signup on that domain, so one false positive on a shared corporate or campus network blocks the whole domain (leave it off until shadow precision is known); strongLinkWindowHours assesses a new account at once when it signed up from the same IP as a blocked account within that many hours (0 turns the rule off); deviceLinkWindowHours does the same for a new account used from the same device (screen size, pixel ratio and browser) as a banned account, when the device is uncommon (seen on fewer than deviceLinkCommonNetworks networks in 30 days) and one more signal agrees: the same residential signup network, the same uncommon TLS fingerprint, or signups within that many hours (0 turns the rule off; abuse assessments still show device-link evidence, at the default window). Needs the advisory assessment on.",
|
|
@@ -11102,6 +11222,7 @@ const settingsMap = {
|
|
|
11102
11222
|
}),
|
|
11103
11223
|
otcLimitSendPerEmailPerIp: makeNumberSetting({
|
|
11104
11224
|
key: "otcLimitSendPerEmailPerIp",
|
|
11225
|
+
abuseControl: "traffic",
|
|
11105
11226
|
name: "Sign-in Codes: Send: Per Inbox per IP (per 15 min)",
|
|
11106
11227
|
defaultValue: 0,
|
|
11107
11228
|
min: 0,
|
|
@@ -11114,6 +11235,7 @@ const settingsMap = {
|
|
|
11114
11235
|
}),
|
|
11115
11236
|
otcLimitSendPerEmailPerIpDaily: makeNumberSetting({
|
|
11116
11237
|
key: "otcLimitSendPerEmailPerIpDaily",
|
|
11238
|
+
abuseControl: "traffic",
|
|
11117
11239
|
name: "Sign-in Codes: Send: Per Inbox per IP (per day)",
|
|
11118
11240
|
defaultValue: 0,
|
|
11119
11241
|
min: 0,
|
|
@@ -11126,6 +11248,7 @@ const settingsMap = {
|
|
|
11126
11248
|
}),
|
|
11127
11249
|
otcLimitSendPerEmail: makeNumberSetting({
|
|
11128
11250
|
key: "otcLimitSendPerEmail",
|
|
11251
|
+
abuseControl: "traffic",
|
|
11129
11252
|
name: "Sign-in Codes: Send: Per Inbox (per 15 min)",
|
|
11130
11253
|
defaultValue: 0,
|
|
11131
11254
|
min: 0,
|
|
@@ -11138,6 +11261,7 @@ const settingsMap = {
|
|
|
11138
11261
|
}),
|
|
11139
11262
|
otcLimitSendPerEmailDaily: makeNumberSetting({
|
|
11140
11263
|
key: "otcLimitSendPerEmailDaily",
|
|
11264
|
+
abuseControl: "traffic",
|
|
11141
11265
|
name: "Sign-in Codes: Send: Per Inbox Before Challenge (per day)",
|
|
11142
11266
|
defaultValue: 0,
|
|
11143
11267
|
min: 0,
|
|
@@ -11150,6 +11274,7 @@ const settingsMap = {
|
|
|
11150
11274
|
}),
|
|
11151
11275
|
otcLimitSendGlobalHourly: makeNumberSetting({
|
|
11152
11276
|
key: "otcLimitSendGlobalHourly",
|
|
11277
|
+
abuseControl: "traffic",
|
|
11153
11278
|
name: "Sign-in Codes: Send: All Inboxes Before Challenge (per hour)",
|
|
11154
11279
|
defaultValue: 0,
|
|
11155
11280
|
min: 0,
|
|
@@ -11162,6 +11287,7 @@ const settingsMap = {
|
|
|
11162
11287
|
}),
|
|
11163
11288
|
otcLimitRegisterPerDomainHourly: makeNumberSetting({
|
|
11164
11289
|
key: "otcLimitRegisterPerDomainHourly",
|
|
11290
|
+
abuseControl: "traffic",
|
|
11165
11291
|
name: "Sign-in Codes: New Accounts per Domain (per hour)",
|
|
11166
11292
|
defaultValue: 0,
|
|
11167
11293
|
min: 0,
|
|
@@ -11174,6 +11300,7 @@ const settingsMap = {
|
|
|
11174
11300
|
}),
|
|
11175
11301
|
otcLimitRegisterPerDomainDaily: makeNumberSetting({
|
|
11176
11302
|
key: "otcLimitRegisterPerDomainDaily",
|
|
11303
|
+
abuseControl: "traffic",
|
|
11177
11304
|
name: "Sign-in Codes: New Accounts per Domain (per day)",
|
|
11178
11305
|
defaultValue: 0,
|
|
11179
11306
|
min: 0,
|
|
@@ -11186,6 +11313,7 @@ const settingsMap = {
|
|
|
11186
11313
|
}),
|
|
11187
11314
|
otcLimitSendPerIpDistinctEmails: makeNumberSetting({
|
|
11188
11315
|
key: "otcLimitSendPerIpDistinctEmails",
|
|
11316
|
+
abuseControl: "traffic",
|
|
11189
11317
|
name: "Sign-in Codes: Send: Distinct Inboxes per IP (per 15 min)",
|
|
11190
11318
|
defaultValue: 0,
|
|
11191
11319
|
min: 0,
|
|
@@ -11198,6 +11326,7 @@ const settingsMap = {
|
|
|
11198
11326
|
}),
|
|
11199
11327
|
otcLimitSendPerIpTotal: makeNumberSetting({
|
|
11200
11328
|
key: "otcLimitSendPerIpTotal",
|
|
11329
|
+
abuseControl: "traffic",
|
|
11201
11330
|
name: "Sign-in Codes: Send: Per IP (per 15 min)",
|
|
11202
11331
|
defaultValue: 0,
|
|
11203
11332
|
min: 0,
|
|
@@ -11210,6 +11339,7 @@ const settingsMap = {
|
|
|
11210
11339
|
}),
|
|
11211
11340
|
otcLimitSendPerIpDaily: makeNumberSetting({
|
|
11212
11341
|
key: "otcLimitSendPerIpDaily",
|
|
11342
|
+
abuseControl: "traffic",
|
|
11213
11343
|
name: "Sign-in Codes: Send: Per IP (per day)",
|
|
11214
11344
|
defaultValue: 0,
|
|
11215
11345
|
min: 0,
|
|
@@ -11222,6 +11352,7 @@ const settingsMap = {
|
|
|
11222
11352
|
}),
|
|
11223
11353
|
otcLimitVerifyPerEmailPerIp: makeNumberSetting({
|
|
11224
11354
|
key: "otcLimitVerifyPerEmailPerIp",
|
|
11355
|
+
abuseControl: "traffic",
|
|
11225
11356
|
name: "Sign-in Codes: Verify: Wrong Guesses per Address per IP (per 15 min)",
|
|
11226
11357
|
defaultValue: 0,
|
|
11227
11358
|
min: 0,
|
|
@@ -11234,6 +11365,7 @@ const settingsMap = {
|
|
|
11234
11365
|
}),
|
|
11235
11366
|
otcLimitVerifyPerIp: makeNumberSetting({
|
|
11236
11367
|
key: "otcLimitVerifyPerIp",
|
|
11368
|
+
abuseControl: "traffic",
|
|
11237
11369
|
name: "Sign-in Codes: Verify: Per IP (per 15 min)",
|
|
11238
11370
|
defaultValue: 0,
|
|
11239
11371
|
min: 0,
|
|
@@ -11246,6 +11378,7 @@ const settingsMap = {
|
|
|
11246
11378
|
}),
|
|
11247
11379
|
otcLimitFormTokenPerIp: makeNumberSetting({
|
|
11248
11380
|
key: "otcLimitFormTokenPerIp",
|
|
11381
|
+
abuseControl: "traffic",
|
|
11249
11382
|
name: "Sign-in Codes: Form Token: Per IP (per hour)",
|
|
11250
11383
|
defaultValue: 0,
|
|
11251
11384
|
min: 0,
|
|
@@ -11258,6 +11391,7 @@ const settingsMap = {
|
|
|
11258
11391
|
}),
|
|
11259
11392
|
subscriberLimitPerIp: makeNumberSetting({
|
|
11260
11393
|
key: "subscriberLimitPerIp",
|
|
11394
|
+
abuseControl: "traffic",
|
|
11261
11395
|
name: "Subscribers: Per IP (per 15 min)",
|
|
11262
11396
|
defaultValue: 0,
|
|
11263
11397
|
min: 0,
|
|
@@ -11270,6 +11404,7 @@ const settingsMap = {
|
|
|
11270
11404
|
}),
|
|
11271
11405
|
subscriberLimitPerIpDaily: makeNumberSetting({
|
|
11272
11406
|
key: "subscriberLimitPerIpDaily",
|
|
11407
|
+
abuseControl: "traffic",
|
|
11273
11408
|
name: "Subscribers: Per IP (per day)",
|
|
11274
11409
|
defaultValue: 0,
|
|
11275
11410
|
min: 0,
|
|
@@ -11282,6 +11417,7 @@ const settingsMap = {
|
|
|
11282
11417
|
}),
|
|
11283
11418
|
subscriberLimitSlackAlertsPerHour: makeNumberSetting({
|
|
11284
11419
|
key: "subscriberLimitSlackAlertsPerHour",
|
|
11420
|
+
abuseControl: "traffic",
|
|
11285
11421
|
name: "Subscribers: Slack alerts per hour",
|
|
11286
11422
|
defaultValue: 0,
|
|
11287
11423
|
min: 0,
|
|
@@ -11294,6 +11430,7 @@ const settingsMap = {
|
|
|
11294
11430
|
}),
|
|
11295
11431
|
blockDisposableEmails: makeBooleanSetting({
|
|
11296
11432
|
key: "blockDisposableEmails",
|
|
11433
|
+
abuseControl: "signup",
|
|
11297
11434
|
name: "Block Disposable Emails",
|
|
11298
11435
|
defaultValue: true,
|
|
11299
11436
|
description: "Rejects new registrations whose email domain (or any parent domain) is a known disposable/burner provider — free credits cannot be farmed with throwaway inboxes (#9779). Applies at registration only; existing accounts on such domains can still sign in. Turn OFF only to work around a false positive.",
|
|
@@ -11302,6 +11439,7 @@ const settingsMap = {
|
|
|
11302
11439
|
}),
|
|
11303
11440
|
blockedEmailDomains: makeObjectSetting({
|
|
11304
11441
|
key: "blockedEmailDomains",
|
|
11442
|
+
abuseControl: "signup",
|
|
11305
11443
|
name: "Blocked Email Domains",
|
|
11306
11444
|
defaultValue: [],
|
|
11307
11445
|
description: "Email domains blocked from signup credits, one per line, on top of the built-in disposable list. A domain also blocks every subdomain (kashre.com blocks x@np.kashre.com). Applies even when Block Disposable Emails is OFF. Registration is refused; OAuth signup and email change still create the account but withhold the free-credit grant, and the OAuth starting-grant backfill skips these users. Existing accounts can still sign in. Bare public suffixes (co.uk, github.io) are refused. Enter internationalized domains in punycode (xn--...); a Unicode-domain email is not matched against them.",
|
|
@@ -11311,6 +11449,7 @@ const settingsMap = {
|
|
|
11311
11449
|
}),
|
|
11312
11450
|
signupGrantSignupPoolDaily: makeNumberSetting({
|
|
11313
11451
|
key: "signupGrantSignupPoolDaily",
|
|
11452
|
+
abuseControl: "signup",
|
|
11314
11453
|
name: "Signup Pool (credits per day)",
|
|
11315
11454
|
defaultValue: 0,
|
|
11316
11455
|
min: 0,
|
|
@@ -11320,6 +11459,7 @@ const settingsMap = {
|
|
|
11320
11459
|
}),
|
|
11321
11460
|
signupGrantTricklePoolDaily: makeNumberSetting({
|
|
11322
11461
|
key: "signupGrantTricklePoolDaily",
|
|
11462
|
+
abuseControl: "signup",
|
|
11323
11463
|
name: "Trickle Pool (credits per day)",
|
|
11324
11464
|
defaultValue: 0,
|
|
11325
11465
|
min: 0,
|
|
@@ -11329,6 +11469,7 @@ const settingsMap = {
|
|
|
11329
11469
|
}),
|
|
11330
11470
|
signupGrantRiskPolicy: makeObjectSetting({
|
|
11331
11471
|
key: "signupGrantRiskPolicy",
|
|
11472
|
+
abuseControl: "signup",
|
|
11332
11473
|
name: "Signup Grant Assessment Policy",
|
|
11333
11474
|
defaultValue: { enabled: false },
|
|
11334
11475
|
schema: z$1.record(z$1.string(), z$1.unknown()),
|
|
@@ -11338,6 +11479,7 @@ const settingsMap = {
|
|
|
11338
11479
|
}),
|
|
11339
11480
|
signupGrantUnprotectedMaxCredits: makeNumberSetting({
|
|
11340
11481
|
key: "signupGrantUnprotectedMaxCredits",
|
|
11482
|
+
abuseControl: "signup",
|
|
11341
11483
|
name: "Unprotected Signup Grant Limit (credits)",
|
|
11342
11484
|
defaultValue: 1e3,
|
|
11343
11485
|
min: 0,
|
|
@@ -11418,6 +11560,7 @@ const settingsMap = {
|
|
|
11418
11560
|
}),
|
|
11419
11561
|
maxSignupsPerIpPerDay: makeNumberSetting({
|
|
11420
11562
|
key: "maxSignupsPerIpPerDay",
|
|
11563
|
+
abuseControl: "signup",
|
|
11421
11564
|
name: "Max Signups per IP per Day",
|
|
11422
11565
|
defaultValue: 0,
|
|
11423
11566
|
min: 0,
|
|
@@ -11429,6 +11572,7 @@ const settingsMap = {
|
|
|
11429
11572
|
}),
|
|
11430
11573
|
maxSignupsPerAsnPerHour: makeNumberSetting({
|
|
11431
11574
|
key: "maxSignupsPerAsnPerHour",
|
|
11575
|
+
abuseControl: "signup",
|
|
11432
11576
|
name: "Max Signups per Network (ASN) per Hour",
|
|
11433
11577
|
defaultValue: 0,
|
|
11434
11578
|
min: 0,
|
|
@@ -11513,6 +11657,7 @@ const settingsMap = {
|
|
|
11513
11657
|
}),
|
|
11514
11658
|
freeTierDailySpendCapCredits: makeNumberSetting({
|
|
11515
11659
|
key: "freeTierDailySpendCapCredits",
|
|
11660
|
+
abuseControl: "spend",
|
|
11516
11661
|
name: "Free Tier Daily Spend Cap",
|
|
11517
11662
|
defaultValue: 200,
|
|
11518
11663
|
int: true,
|
|
@@ -11522,6 +11667,7 @@ const settingsMap = {
|
|
|
11522
11667
|
}),
|
|
11523
11668
|
freeTierDay1SpendCapCredits: makeNumberSetting({
|
|
11524
11669
|
key: "freeTierDay1SpendCapCredits",
|
|
11670
|
+
abuseControl: "spend",
|
|
11525
11671
|
name: "Free Tier Day-1 Spend Cap",
|
|
11526
11672
|
defaultValue: 500,
|
|
11527
11673
|
int: true,
|
|
@@ -11531,6 +11677,7 @@ const settingsMap = {
|
|
|
11531
11677
|
}),
|
|
11532
11678
|
freeTierDays2To7SpendCapCredits: makeNumberSetting({
|
|
11533
11679
|
key: "freeTierDays2To7SpendCapCredits",
|
|
11680
|
+
abuseControl: "spend",
|
|
11534
11681
|
name: "Free Tier Days 2-7 Spend Cap",
|
|
11535
11682
|
defaultValue: 300,
|
|
11536
11683
|
int: true,
|
|
@@ -11540,6 +11687,7 @@ const settingsMap = {
|
|
|
11540
11687
|
}),
|
|
11541
11688
|
newAccountSpendCapDays: makeNumberSetting({
|
|
11542
11689
|
key: "newAccountSpendCapDays",
|
|
11690
|
+
abuseControl: "spend",
|
|
11543
11691
|
name: "New Account Spend Cap - Account Age (days)",
|
|
11544
11692
|
defaultValue: 7,
|
|
11545
11693
|
int: true,
|
|
@@ -11551,6 +11699,7 @@ const settingsMap = {
|
|
|
11551
11699
|
}),
|
|
11552
11700
|
newAccountHourlySpendCapCredits: makeNumberSetting({
|
|
11553
11701
|
key: "newAccountHourlySpendCapCredits",
|
|
11702
|
+
abuseControl: "spend",
|
|
11554
11703
|
name: "New Account Spend Cap - Credits per Hour",
|
|
11555
11704
|
defaultValue: 1e4,
|
|
11556
11705
|
int: true,
|
|
@@ -11561,6 +11710,7 @@ const settingsMap = {
|
|
|
11561
11710
|
}),
|
|
11562
11711
|
newAccountDailySpendCapCredits: makeNumberSetting({
|
|
11563
11712
|
key: "newAccountDailySpendCapCredits",
|
|
11713
|
+
abuseControl: "spend",
|
|
11564
11714
|
name: "New Account Spend Cap - Credits per Day",
|
|
11565
11715
|
defaultValue: 25e3,
|
|
11566
11716
|
int: true,
|
|
@@ -11571,6 +11721,7 @@ const settingsMap = {
|
|
|
11571
11721
|
}),
|
|
11572
11722
|
paidCompletionOverdraftCredits: makeNumberSetting({
|
|
11573
11723
|
key: "paidCompletionOverdraftCredits",
|
|
11724
|
+
abuseControl: "spend",
|
|
11574
11725
|
name: "Paid Completion Overdraft Allowance (credits)",
|
|
11575
11726
|
defaultValue: 500,
|
|
11576
11727
|
int: true,
|
|
@@ -11581,6 +11732,7 @@ const settingsMap = {
|
|
|
11581
11732
|
}),
|
|
11582
11733
|
spendMonitorEnabled: makeBooleanSetting({
|
|
11583
11734
|
key: "spendMonitorEnabled",
|
|
11735
|
+
abuseControl: "spend",
|
|
11584
11736
|
name: "Spend Monitor: Enabled",
|
|
11585
11737
|
defaultValue: true,
|
|
11586
11738
|
description: "Run the 5-minute credit spend detector. OFF stops detection and alerting; rollups are no longer written either.",
|
|
@@ -11589,6 +11741,7 @@ const settingsMap = {
|
|
|
11589
11741
|
}),
|
|
11590
11742
|
spendMonitorSlackEnabled: makeBooleanSetting({
|
|
11591
11743
|
key: "spendMonitorSlackEnabled",
|
|
11744
|
+
abuseControl: "spend",
|
|
11592
11745
|
name: "Spend Monitor: Post Alerts to Slack",
|
|
11593
11746
|
defaultValue: false,
|
|
11594
11747
|
description: "Post spend alerts to the alarms channel. OFF (default) records alerts silently so a new deployment can be watched before anyone is paged.",
|
|
@@ -11597,6 +11750,7 @@ const settingsMap = {
|
|
|
11597
11750
|
}),
|
|
11598
11751
|
spendMonitorPlatformSpikeRatio: makeNumberSetting({
|
|
11599
11752
|
key: "spendMonitorPlatformSpikeRatio",
|
|
11753
|
+
abuseControl: "spend",
|
|
11600
11754
|
name: "Spend Monitor: Platform Spike Ratio",
|
|
11601
11755
|
defaultValue: 3,
|
|
11602
11756
|
int: false,
|
|
@@ -11607,6 +11761,7 @@ const settingsMap = {
|
|
|
11607
11761
|
}),
|
|
11608
11762
|
spendMonitorPlatformCriticalRatio: makeNumberSetting({
|
|
11609
11763
|
key: "spendMonitorPlatformCriticalRatio",
|
|
11764
|
+
abuseControl: "spend",
|
|
11610
11765
|
name: "Spend Monitor: Platform Critical Ratio",
|
|
11611
11766
|
defaultValue: 6,
|
|
11612
11767
|
int: false,
|
|
@@ -11627,6 +11782,7 @@ const settingsMap = {
|
|
|
11627
11782
|
}),
|
|
11628
11783
|
spendMonitorPlatformSpikeFloorCredits: makeNumberSetting({
|
|
11629
11784
|
key: "spendMonitorPlatformSpikeFloorCredits",
|
|
11785
|
+
abuseControl: "spend",
|
|
11630
11786
|
name: "Spend Monitor: Platform Spike Floor",
|
|
11631
11787
|
defaultValue: 5e3,
|
|
11632
11788
|
int: true,
|
|
@@ -11637,6 +11793,7 @@ const settingsMap = {
|
|
|
11637
11793
|
}),
|
|
11638
11794
|
spendMonitorPlatformCostFloorUsd: makeNumberSetting({
|
|
11639
11795
|
key: "spendMonitorPlatformCostFloorUsd",
|
|
11796
|
+
abuseControl: "spend",
|
|
11640
11797
|
name: "Spend Monitor: Platform Cost Floor",
|
|
11641
11798
|
defaultValue: 20,
|
|
11642
11799
|
int: true,
|
|
@@ -11647,6 +11804,7 @@ const settingsMap = {
|
|
|
11647
11804
|
}),
|
|
11648
11805
|
spendMonitorAccountSpikeRatio: makeNumberSetting({
|
|
11649
11806
|
key: "spendMonitorAccountSpikeRatio",
|
|
11807
|
+
abuseControl: "spend",
|
|
11650
11808
|
name: "Spend Monitor: Account Spike Ratio",
|
|
11651
11809
|
defaultValue: 10,
|
|
11652
11810
|
int: false,
|
|
@@ -11657,6 +11815,7 @@ const settingsMap = {
|
|
|
11657
11815
|
}),
|
|
11658
11816
|
spendMonitorAccountSpikeFloorCredits: makeNumberSetting({
|
|
11659
11817
|
key: "spendMonitorAccountSpikeFloorCredits",
|
|
11818
|
+
abuseControl: "spend",
|
|
11660
11819
|
name: "Spend Monitor: Account Spike Floor",
|
|
11661
11820
|
defaultValue: 1e3,
|
|
11662
11821
|
int: true,
|
|
@@ -11667,6 +11826,7 @@ const settingsMap = {
|
|
|
11667
11826
|
}),
|
|
11668
11827
|
spendMonitorAccountCeilingCredits: makeNumberSetting({
|
|
11669
11828
|
key: "spendMonitorAccountCeilingCredits",
|
|
11829
|
+
abuseControl: "spend",
|
|
11670
11830
|
name: "Spend Monitor: Account Ceiling",
|
|
11671
11831
|
defaultValue: 5e3,
|
|
11672
11832
|
int: true,
|
|
@@ -11677,6 +11837,7 @@ const settingsMap = {
|
|
|
11677
11837
|
}),
|
|
11678
11838
|
spendMonitorPaidAccountSpikeFloorCredits: makeNumberSetting({
|
|
11679
11839
|
key: "spendMonitorPaidAccountSpikeFloorCredits",
|
|
11840
|
+
abuseControl: "spend",
|
|
11680
11841
|
name: "Spend Monitor: Paid Account Spike Floor",
|
|
11681
11842
|
defaultValue: 2e4,
|
|
11682
11843
|
int: true,
|
|
@@ -11687,6 +11848,7 @@ const settingsMap = {
|
|
|
11687
11848
|
}),
|
|
11688
11849
|
spendMonitorPaidAccountCeilingCredits: makeNumberSetting({
|
|
11689
11850
|
key: "spendMonitorPaidAccountCeilingCredits",
|
|
11851
|
+
abuseControl: "spend",
|
|
11690
11852
|
name: "Spend Monitor: Paid Account Ceiling",
|
|
11691
11853
|
defaultValue: 4e4,
|
|
11692
11854
|
int: true,
|
|
@@ -11697,6 +11859,7 @@ const settingsMap = {
|
|
|
11697
11859
|
}),
|
|
11698
11860
|
spendMonitorPaidAccountMinAgeDays: makeNumberSetting({
|
|
11699
11861
|
key: "spendMonitorPaidAccountMinAgeDays",
|
|
11862
|
+
abuseControl: "spend",
|
|
11700
11863
|
name: "Spend Monitor: Paid Account Minimum Age",
|
|
11701
11864
|
defaultValue: 7,
|
|
11702
11865
|
int: true,
|
|
@@ -11707,6 +11870,7 @@ const settingsMap = {
|
|
|
11707
11870
|
}),
|
|
11708
11871
|
spendMonitorTrustedEmailDomains: makeStringSetting({
|
|
11709
11872
|
key: "spendMonitorTrustedEmailDomains",
|
|
11873
|
+
abuseControl: "spend",
|
|
11710
11874
|
name: "Spend Monitor: Trusted Email Domains",
|
|
11711
11875
|
defaultValue: "",
|
|
11712
11876
|
description: "Comma-separated email domains. A user whose email is verified and whose domain (the part after the last @) exactly equals one of these is held to the trusted-account thresholds below instead of the standard ones. Subdomains are not covered: list each one. Organizations are never trusted by their members' domains; list them under Trusted Account IDs. Empty (default) trusts no domain.",
|
|
@@ -11715,6 +11879,7 @@ const settingsMap = {
|
|
|
11715
11879
|
}),
|
|
11716
11880
|
spendMonitorTrustedAccountIds: makeStringSetting({
|
|
11717
11881
|
key: "spendMonitorTrustedAccountIds",
|
|
11882
|
+
abuseControl: "spend",
|
|
11718
11883
|
name: "Spend Monitor: Trusted Account IDs",
|
|
11719
11884
|
defaultValue: "",
|
|
11720
11885
|
description: "Comma-separated user or organization IDs held to the trusted-account thresholds below, for partner and client accounts with known heavy usage. API keys and agents follow the account that pays for them. Empty (default) trusts no account by ID.",
|
|
@@ -11723,6 +11888,7 @@ const settingsMap = {
|
|
|
11723
11888
|
}),
|
|
11724
11889
|
spendMonitorTrustedAccountSpikeFloorCredits: makeNumberSetting({
|
|
11725
11890
|
key: "spendMonitorTrustedAccountSpikeFloorCredits",
|
|
11891
|
+
abuseControl: "spend",
|
|
11726
11892
|
name: "Spend Monitor: Trusted Account Spike Floor",
|
|
11727
11893
|
defaultValue: 2e4,
|
|
11728
11894
|
int: true,
|
|
@@ -11733,6 +11899,7 @@ const settingsMap = {
|
|
|
11733
11899
|
}),
|
|
11734
11900
|
spendMonitorTrustedAccountCeilingCredits: makeNumberSetting({
|
|
11735
11901
|
key: "spendMonitorTrustedAccountCeilingCredits",
|
|
11902
|
+
abuseControl: "spend",
|
|
11736
11903
|
name: "Spend Monitor: Trusted Account Ceiling",
|
|
11737
11904
|
defaultValue: 4e4,
|
|
11738
11905
|
int: true,
|
|
@@ -11743,6 +11910,7 @@ const settingsMap = {
|
|
|
11743
11910
|
}),
|
|
11744
11911
|
spendMonitorMarginEnabled: makeBooleanSetting({
|
|
11745
11912
|
key: "spendMonitorMarginEnabled",
|
|
11913
|
+
abuseControl: "spend",
|
|
11746
11914
|
name: "Spend Monitor: Model Margin Check",
|
|
11747
11915
|
defaultValue: true,
|
|
11748
11916
|
description: "Once a day, shortly after 00:00 UTC and only while Spend Monitor is enabled, flag any model whose credits charged, converted to USD at the lowest per-credit price, fall below its provider cost over the margin window. Posts follow \"Post Alerts to Slack\".",
|
|
@@ -11751,6 +11919,7 @@ const settingsMap = {
|
|
|
11751
11919
|
}),
|
|
11752
11920
|
spendMonitorMarginMinRatio: makeNumberSetting({
|
|
11753
11921
|
key: "spendMonitorMarginMinRatio",
|
|
11922
|
+
abuseControl: "spend",
|
|
11754
11923
|
name: "Spend Monitor: Model Margin Min Ratio",
|
|
11755
11924
|
defaultValue: 1,
|
|
11756
11925
|
int: false,
|
|
@@ -11762,6 +11931,7 @@ const settingsMap = {
|
|
|
11762
11931
|
}),
|
|
11763
11932
|
spendMonitorMarginWindowHours: makeNumberSetting({
|
|
11764
11933
|
key: "spendMonitorMarginWindowHours",
|
|
11934
|
+
abuseControl: "spend",
|
|
11765
11935
|
name: "Spend Monitor: Model Margin Window",
|
|
11766
11936
|
defaultValue: 24,
|
|
11767
11937
|
int: true,
|
|
@@ -11773,6 +11943,7 @@ const settingsMap = {
|
|
|
11773
11943
|
}),
|
|
11774
11944
|
spendMonitorMarginCostFloorUsd: makeNumberSetting({
|
|
11775
11945
|
key: "spendMonitorMarginCostFloorUsd",
|
|
11946
|
+
abuseControl: "spend",
|
|
11776
11947
|
name: "Spend Monitor: Model Margin Cost Floor",
|
|
11777
11948
|
defaultValue: 5,
|
|
11778
11949
|
int: true,
|
|
@@ -11783,6 +11954,7 @@ const settingsMap = {
|
|
|
11783
11954
|
}),
|
|
11784
11955
|
spendMonitorAutoPauseMode: makeStringSetting({
|
|
11785
11956
|
key: "spendMonitorAutoPauseMode",
|
|
11957
|
+
abuseControl: "spend",
|
|
11786
11958
|
name: "Spend Monitor: Automatic Pause Mode",
|
|
11787
11959
|
defaultValue: "shadow",
|
|
11788
11960
|
options: [...SPEND_AUTO_PAUSE_MODES],
|
|
@@ -11792,6 +11964,7 @@ const settingsMap = {
|
|
|
11792
11964
|
}),
|
|
11793
11965
|
spendMonitorAutoPauseStandardMinCredits: makeNumberSetting({
|
|
11794
11966
|
key: "spendMonitorAutoPauseStandardMinCredits",
|
|
11967
|
+
abuseControl: "spend",
|
|
11795
11968
|
name: "Spend Monitor: Automatic Pause Threshold (Standard)",
|
|
11796
11969
|
defaultValue: 1e4,
|
|
11797
11970
|
int: true,
|
|
@@ -11802,6 +11975,7 @@ const settingsMap = {
|
|
|
11802
11975
|
}),
|
|
11803
11976
|
spendMonitorAutoPausePaidMinCredits: makeNumberSetting({
|
|
11804
11977
|
key: "spendMonitorAutoPausePaidMinCredits",
|
|
11978
|
+
abuseControl: "spend",
|
|
11805
11979
|
name: "Spend Monitor: Automatic Pause Threshold (Paid)",
|
|
11806
11980
|
defaultValue: 0,
|
|
11807
11981
|
int: true,
|
|
@@ -11812,6 +11986,7 @@ const settingsMap = {
|
|
|
11812
11986
|
}),
|
|
11813
11987
|
spendMonitorAutoPauseTrustedMinCredits: makeNumberSetting({
|
|
11814
11988
|
key: "spendMonitorAutoPauseTrustedMinCredits",
|
|
11989
|
+
abuseControl: "spend",
|
|
11815
11990
|
name: "Spend Monitor: Automatic Pause Threshold (Trusted)",
|
|
11816
11991
|
defaultValue: 0,
|
|
11817
11992
|
int: true,
|
|
@@ -11822,6 +11997,7 @@ const settingsMap = {
|
|
|
11822
11997
|
}),
|
|
11823
11998
|
youngAccountSpendPageUsdPerHour: makeNumberSetting({
|
|
11824
11999
|
key: "youngAccountSpendPageUsdPerHour",
|
|
12000
|
+
abuseControl: "spend",
|
|
11825
12001
|
name: "Young-Account Spend Alarm: Page Ceiling (USD)",
|
|
11826
12002
|
defaultValue: 0,
|
|
11827
12003
|
min: 0,
|
|
@@ -11831,6 +12007,7 @@ const settingsMap = {
|
|
|
11831
12007
|
}),
|
|
11832
12008
|
youngAccountSpendWarnUsdPerHour: makeNumberSetting({
|
|
11833
12009
|
key: "youngAccountSpendWarnUsdPerHour",
|
|
12010
|
+
abuseControl: "spend",
|
|
11834
12011
|
name: "Young-Account Spend Alarm: Warn Ceiling (USD)",
|
|
11835
12012
|
defaultValue: 0,
|
|
11836
12013
|
min: 0,
|
|
@@ -11840,6 +12017,7 @@ const settingsMap = {
|
|
|
11840
12017
|
}),
|
|
11841
12018
|
providerSpendOpenaiUsdPerHour: makeNumberSetting({
|
|
11842
12019
|
key: "providerSpendOpenaiUsdPerHour",
|
|
12020
|
+
abuseControl: "spend",
|
|
11843
12021
|
name: "Provider Spend Alarm: OpenAI Hourly Ceiling (USD)",
|
|
11844
12022
|
defaultValue: 0,
|
|
11845
12023
|
min: 0,
|
|
@@ -11849,6 +12027,7 @@ const settingsMap = {
|
|
|
11849
12027
|
}),
|
|
11850
12028
|
providerSpendAnthropicUsdPerHour: makeNumberSetting({
|
|
11851
12029
|
key: "providerSpendAnthropicUsdPerHour",
|
|
12030
|
+
abuseControl: "spend",
|
|
11852
12031
|
name: "Provider Spend Alarm: Anthropic Hourly Ceiling (USD)",
|
|
11853
12032
|
defaultValue: 0,
|
|
11854
12033
|
min: 0,
|
|
@@ -11858,6 +12037,7 @@ const settingsMap = {
|
|
|
11858
12037
|
}),
|
|
11859
12038
|
freeTierDailySystemCostCapUsd: makeNumberSetting({
|
|
11860
12039
|
key: "freeTierDailySystemCostCapUsd",
|
|
12040
|
+
abuseControl: "spend",
|
|
11861
12041
|
name: "Free Tier Daily System Cost Cap (USD)",
|
|
11862
12042
|
defaultValue: .1,
|
|
11863
12043
|
min: 0,
|
|
@@ -11921,6 +12101,7 @@ const settingsMap = {
|
|
|
11921
12101
|
}),
|
|
11922
12102
|
turnstileEnabled: makeBooleanSetting({
|
|
11923
12103
|
key: "turnstileEnabled",
|
|
12104
|
+
abuseControl: "signup",
|
|
11924
12105
|
name: "Require Turnstile on Email Sign-in",
|
|
11925
12106
|
defaultValue: false,
|
|
11926
12107
|
description: "Require a Cloudflare Turnstile challenge before a sign-in code is emailed. Takes effect only when the Turnstile secret is provisioned on this stage and a site key is set below; otherwise the check is skipped.",
|
|
@@ -11929,6 +12110,7 @@ const settingsMap = {
|
|
|
11929
12110
|
}),
|
|
11930
12111
|
turnstileFailClosed: makeBooleanSetting({
|
|
11931
12112
|
key: "turnstileFailClosed",
|
|
12113
|
+
abuseControl: "signup",
|
|
11932
12114
|
name: "Turnstile Fail Closed",
|
|
11933
12115
|
defaultValue: false,
|
|
11934
12116
|
description: "When Cloudflare verification cannot be reached, refuse the request instead of letting it through. Off keeps sign-in available during a Cloudflare outage.",
|
|
@@ -11937,6 +12119,7 @@ const settingsMap = {
|
|
|
11937
12119
|
}),
|
|
11938
12120
|
turnstileSiteKey: makeStringSetting({
|
|
11939
12121
|
key: "turnstileSiteKey",
|
|
12122
|
+
abuseControl: "signup",
|
|
11940
12123
|
name: "Turnstile Site Key",
|
|
11941
12124
|
defaultValue: "",
|
|
11942
12125
|
description: "The public Cloudflare Turnstile site key shown to the sign-in form. With the toggle above off, a set key still challenges sign-in code requests past the send budgets (see Sign-in Code Limits). The secret key is never stored here.",
|
|
@@ -11945,6 +12128,7 @@ const settingsMap = {
|
|
|
11945
12128
|
}),
|
|
11946
12129
|
signupBurstThreshold: makeNumberSetting({
|
|
11947
12130
|
key: "signupBurstThreshold",
|
|
12131
|
+
abuseControl: "signup",
|
|
11948
12132
|
name: "Signup Burst Threshold",
|
|
11949
12133
|
defaultValue: 5,
|
|
11950
12134
|
int: true,
|
|
@@ -11956,6 +12140,7 @@ const settingsMap = {
|
|
|
11956
12140
|
}),
|
|
11957
12141
|
signupBurstWindowHours: makeNumberSetting({
|
|
11958
12142
|
key: "signupBurstWindowHours",
|
|
12143
|
+
abuseControl: "signup",
|
|
11959
12144
|
name: "Signup Burst Window (hours)",
|
|
11960
12145
|
defaultValue: 6,
|
|
11961
12146
|
int: true,
|
|
@@ -11967,6 +12152,7 @@ const settingsMap = {
|
|
|
11967
12152
|
}),
|
|
11968
12153
|
signupBurstAutoHold: makeBooleanSetting({
|
|
11969
12154
|
key: "signupBurstAutoHold",
|
|
12155
|
+
abuseControl: "signup",
|
|
11970
12156
|
name: "Auto-hold Signup Bursts",
|
|
11971
12157
|
defaultValue: false,
|
|
11972
12158
|
category: "Users",
|
|
@@ -11975,6 +12161,7 @@ const settingsMap = {
|
|
|
11975
12161
|
}),
|
|
11976
12162
|
signupRiskScoring: makeObjectSetting({
|
|
11977
12163
|
key: "signupRiskScoring",
|
|
12164
|
+
abuseControl: "signup",
|
|
11978
12165
|
name: "Signup Risk Scoring",
|
|
11979
12166
|
defaultValue: SignupRiskScoringSchema.parse({}),
|
|
11980
12167
|
description: "Weights (0-100 each) for the signals that make up a new account's 0-100 risk score, the minutes and credits that set off the quick-API-key and fast-spend signals, and the score at which an account needs review. The score is capped at 100.",
|
|
@@ -11984,6 +12171,7 @@ const settingsMap = {
|
|
|
11984
12171
|
}),
|
|
11985
12172
|
signupRiskAutoApproval: makeObjectSetting({
|
|
11986
12173
|
key: "signupRiskAutoApproval",
|
|
12174
|
+
abuseControl: "signup",
|
|
11987
12175
|
name: "Signup Risk Auto-Approval",
|
|
11988
12176
|
defaultValue: SignupRiskAutoApprovalSchema.parse({}),
|
|
11989
12177
|
description: "Approves a pending signup risk review without an admin. settledPayment: a successful card payment (credit pack or subscription) that Stripe Radar rated normal, on a card no other account paid with in the payment-attempt retention window, at least minPaymentAgeHours old. quietAccount (off by default): an account at least minAccountAgeDays old, scoring at most maxScore, not rescored for minQuietDays and named in no open shadow detection. Neither applies to a banned, suspended or disputed account, one whose payment unlock was forfeited, one with a signup tranche held for review, or one an admin reopened. Each approval is audited and listed in Risk review, where it can be reopened; a refund, dispute or early fraud warning reopens a settledPayment approval automatically. A stored value that fails to parse turns both rules off.",
|
|
@@ -11993,6 +12181,7 @@ const settingsMap = {
|
|
|
11993
12181
|
}),
|
|
11994
12182
|
signupAnomaly: makeObjectSetting({
|
|
11995
12183
|
key: "signupAnomaly",
|
|
12184
|
+
abuseControl: "signup",
|
|
11996
12185
|
name: "Signup anomaly detection",
|
|
11997
12186
|
defaultValue: {
|
|
11998
12187
|
signupBaseline: 0,
|
|
@@ -12012,6 +12201,7 @@ const settingsMap = {
|
|
|
12012
12201
|
}),
|
|
12013
12202
|
enableDomainIntelligence: makeBooleanSetting({
|
|
12014
12203
|
key: "enableDomainIntelligence",
|
|
12204
|
+
abuseControl: "signup",
|
|
12015
12205
|
name: "Hold Risky Signup Domains",
|
|
12016
12206
|
defaultValue: true,
|
|
12017
12207
|
category: "Users",
|
|
@@ -12020,6 +12210,7 @@ const settingsMap = {
|
|
|
12020
12210
|
}),
|
|
12021
12211
|
holdSignupsFromDomainsYoungerThanDays: makeNumberSetting({
|
|
12022
12212
|
key: "holdSignupsFromDomainsYoungerThanDays",
|
|
12213
|
+
abuseControl: "signup",
|
|
12023
12214
|
name: "Hold Signups From Domains Younger Than (days)",
|
|
12024
12215
|
defaultValue: 30,
|
|
12025
12216
|
int: true,
|
|
@@ -12031,6 +12222,7 @@ const settingsMap = {
|
|
|
12031
12222
|
}),
|
|
12032
12223
|
autoConfirmDisposableAggregateHolds: makeBooleanSetting({
|
|
12033
12224
|
key: "autoConfirmDisposableAggregateHolds",
|
|
12225
|
+
abuseControl: "signup",
|
|
12034
12226
|
name: "Auto-Confirm Disposable-List Domain Holds",
|
|
12035
12227
|
defaultValue: true,
|
|
12036
12228
|
category: "Users",
|
|
@@ -12039,6 +12231,7 @@ const settingsMap = {
|
|
|
12039
12231
|
}),
|
|
12040
12232
|
signupDomainHoldsSettledVisibleDays: makeNumberSetting({
|
|
12041
12233
|
key: "signupDomainHoldsSettledVisibleDays",
|
|
12234
|
+
abuseControl: "signup",
|
|
12042
12235
|
name: "Signup Domain Holds: Show Settled Holds For (days)",
|
|
12043
12236
|
defaultValue: 90,
|
|
12044
12237
|
int: true,
|
|
@@ -12050,6 +12243,7 @@ const settingsMap = {
|
|
|
12050
12243
|
}),
|
|
12051
12244
|
signupDomainHoldAssessmentEnabled: makeBooleanSetting({
|
|
12052
12245
|
key: "signupDomainHoldAssessmentEnabled",
|
|
12246
|
+
abuseControl: "signup",
|
|
12053
12247
|
name: "Advisory Assessment of Young-Domain Holds",
|
|
12054
12248
|
defaultValue: false,
|
|
12055
12249
|
category: "Users",
|
|
@@ -12058,6 +12252,7 @@ const settingsMap = {
|
|
|
12058
12252
|
}),
|
|
12059
12253
|
signupDomainHoldAssessmentConfig: makeObjectSetting({
|
|
12060
12254
|
key: "signupDomainHoldAssessmentConfig",
|
|
12255
|
+
abuseControl: "signup",
|
|
12061
12256
|
name: "Advisory Assessment of Young-Domain Holds: Model and Limits",
|
|
12062
12257
|
defaultValue: SignupDomainHoldAssessmentConfigSchema.parse({}),
|
|
12063
12258
|
description: "The Decisions model to ask (it must have a platform key), the daily USD budget and call cap, concurrent calls, holds per 10-minute run, the least confidence in an abuse verdict that confirms a hold, and the auto-release switch, confidence and caps. The defaults make no calls and never release.",
|
|
@@ -12079,6 +12274,7 @@ const settingsMap = {
|
|
|
12079
12274
|
}),
|
|
12080
12275
|
paymentRiskAlertsEnabled: makeBooleanSetting({
|
|
12081
12276
|
key: "paymentRiskAlertsEnabled",
|
|
12277
|
+
abuseControl: "payments",
|
|
12082
12278
|
name: "Payment Risk Alerts",
|
|
12083
12279
|
defaultValue: true,
|
|
12084
12280
|
category: "Users",
|
|
@@ -12087,6 +12283,7 @@ const settingsMap = {
|
|
|
12087
12283
|
}),
|
|
12088
12284
|
paymentRiskYoungAccountMinutes: makeNumberSetting({
|
|
12089
12285
|
key: "paymentRiskYoungAccountMinutes",
|
|
12286
|
+
abuseControl: "payments",
|
|
12090
12287
|
name: "Payment Risk: Young Account (minutes)",
|
|
12091
12288
|
defaultValue: 60,
|
|
12092
12289
|
int: true,
|
|
@@ -12098,6 +12295,7 @@ const settingsMap = {
|
|
|
12098
12295
|
}),
|
|
12099
12296
|
paymentRiskMaxAccountsPerCard: makeNumberSetting({
|
|
12100
12297
|
key: "paymentRiskMaxAccountsPerCard",
|
|
12298
|
+
abuseControl: "payments",
|
|
12101
12299
|
name: "Payment Risk: Max Accounts Per Card",
|
|
12102
12300
|
defaultValue: 1,
|
|
12103
12301
|
int: true,
|
|
@@ -12109,6 +12307,7 @@ const settingsMap = {
|
|
|
12109
12307
|
}),
|
|
12110
12308
|
paymentRiskMaxCardsPerWindow: makeNumberSetting({
|
|
12111
12309
|
key: "paymentRiskMaxCardsPerWindow",
|
|
12310
|
+
abuseControl: "payments",
|
|
12112
12311
|
name: "Payment Risk: Max Cards Per Window",
|
|
12113
12312
|
defaultValue: 1,
|
|
12114
12313
|
int: true,
|
|
@@ -12120,6 +12319,7 @@ const settingsMap = {
|
|
|
12120
12319
|
}),
|
|
12121
12320
|
paymentRiskCardWindowMinutes: makeNumberSetting({
|
|
12122
12321
|
key: "paymentRiskCardWindowMinutes",
|
|
12322
|
+
abuseControl: "payments",
|
|
12123
12323
|
name: "Payment Risk: Card Window (minutes)",
|
|
12124
12324
|
defaultValue: 60,
|
|
12125
12325
|
int: true,
|
|
@@ -12131,6 +12331,7 @@ const settingsMap = {
|
|
|
12131
12331
|
}),
|
|
12132
12332
|
paymentRiskFlagHostingNetwork: makeBooleanSetting({
|
|
12133
12333
|
key: "paymentRiskFlagHostingNetwork",
|
|
12334
|
+
abuseControl: "payments",
|
|
12134
12335
|
name: "Payment Risk: Flag Hosting/VPN Networks",
|
|
12135
12336
|
defaultValue: true,
|
|
12136
12337
|
category: "Users",
|
|
@@ -12139,6 +12340,7 @@ const settingsMap = {
|
|
|
12139
12340
|
}),
|
|
12140
12341
|
requireThreeDSecureOnFirstPurchase: makeBooleanSetting({
|
|
12141
12342
|
key: "requireThreeDSecureOnFirstPurchase",
|
|
12343
|
+
abuseControl: "payments",
|
|
12142
12344
|
name: "Require 3-D Secure on First Purchase",
|
|
12143
12345
|
defaultValue: true,
|
|
12144
12346
|
description: "Asks the card issuer for a 3-D Secure challenge when an account buys a subscription or credits for the first time: the paying Stripe customer has no prior successful charge, or the account is younger than the new-account window. A passed challenge usually shifts fraud-chargeback liability to the issuer. Turn off if checkout conversion suffers.",
|
|
@@ -12148,6 +12350,7 @@ const settingsMap = {
|
|
|
12148
12350
|
}),
|
|
12149
12351
|
threeDSecureNewAccountDays: makeNumberSetting({
|
|
12150
12352
|
key: "threeDSecureNewAccountDays",
|
|
12353
|
+
abuseControl: "payments",
|
|
12151
12354
|
name: "3-D Secure: New-Account Window (days)",
|
|
12152
12355
|
defaultValue: 7,
|
|
12153
12356
|
min: 0,
|
|
@@ -12171,6 +12374,7 @@ const settingsMap = {
|
|
|
12171
12374
|
}),
|
|
12172
12375
|
signupNetworkAlertsEnabled: makeBooleanSetting({
|
|
12173
12376
|
key: "signupNetworkAlertsEnabled",
|
|
12377
|
+
abuseControl: "signup",
|
|
12174
12378
|
name: "Signup Network Burst Alerts",
|
|
12175
12379
|
defaultValue: true,
|
|
12176
12380
|
category: "Users",
|
|
@@ -12179,6 +12383,7 @@ const settingsMap = {
|
|
|
12179
12383
|
}),
|
|
12180
12384
|
signupNetworkAlertWindowMinutes: makeNumberSetting({
|
|
12181
12385
|
key: "signupNetworkAlertWindowMinutes",
|
|
12386
|
+
abuseControl: "signup",
|
|
12182
12387
|
name: "Signup Network Alert: Window (minutes)",
|
|
12183
12388
|
defaultValue: 180,
|
|
12184
12389
|
int: true,
|
|
@@ -12190,6 +12395,7 @@ const settingsMap = {
|
|
|
12190
12395
|
}),
|
|
12191
12396
|
signupNetworkAlertMaxPerIp: makeNumberSetting({
|
|
12192
12397
|
key: "signupNetworkAlertMaxPerIp",
|
|
12398
|
+
abuseControl: "signup",
|
|
12193
12399
|
name: "Signup Network Alert: Max Signups per IP",
|
|
12194
12400
|
defaultValue: 1,
|
|
12195
12401
|
int: true,
|
|
@@ -12201,6 +12407,7 @@ const settingsMap = {
|
|
|
12201
12407
|
}),
|
|
12202
12408
|
signupNetworkAlertMinUncorroboratedPerIp: makeNumberSetting({
|
|
12203
12409
|
key: "signupNetworkAlertMinUncorroboratedPerIp",
|
|
12410
|
+
abuseControl: "signup",
|
|
12204
12411
|
name: "Signup Network Alert: Min Signups per IP Without Corroboration",
|
|
12205
12412
|
defaultValue: 3,
|
|
12206
12413
|
int: true,
|
|
@@ -12212,6 +12419,7 @@ const settingsMap = {
|
|
|
12212
12419
|
}),
|
|
12213
12420
|
signupNetworkAlertMaxPerHostingAsn: makeNumberSetting({
|
|
12214
12421
|
key: "signupNetworkAlertMaxPerHostingAsn",
|
|
12422
|
+
abuseControl: "signup",
|
|
12215
12423
|
name: "Signup Network Alert: Max Signups per Hosting/VPN Network",
|
|
12216
12424
|
defaultValue: 2,
|
|
12217
12425
|
int: true,
|
|
@@ -12223,6 +12431,7 @@ const settingsMap = {
|
|
|
12223
12431
|
}),
|
|
12224
12432
|
signupNetworkAlertMaxPerAsn: makeNumberSetting({
|
|
12225
12433
|
key: "signupNetworkAlertMaxPerAsn",
|
|
12434
|
+
abuseControl: "signup",
|
|
12226
12435
|
name: "Signup Network Alert: Max Signups per Network (any ASN)",
|
|
12227
12436
|
defaultValue: 0,
|
|
12228
12437
|
int: true,
|
|
@@ -12253,6 +12462,7 @@ const settingsMap = {
|
|
|
12253
12462
|
}),
|
|
12254
12463
|
paymentRiskAutoRefundEnabled: makeBooleanSetting({
|
|
12255
12464
|
key: "paymentRiskAutoRefundEnabled",
|
|
12465
|
+
abuseControl: "payments",
|
|
12256
12466
|
name: "Payment Risk: Act on Early Fraud Warnings",
|
|
12257
12467
|
defaultValue: true,
|
|
12258
12468
|
category: "Users",
|
|
@@ -12261,6 +12471,7 @@ const settingsMap = {
|
|
|
12261
12471
|
}),
|
|
12262
12472
|
paymentRiskAutoRefundMinUnspentPercent: makeNumberSetting({
|
|
12263
12473
|
key: "paymentRiskAutoRefundMinUnspentPercent",
|
|
12474
|
+
abuseControl: "payments",
|
|
12264
12475
|
name: "Payment Risk: Refund Only Above Unspent %",
|
|
12265
12476
|
defaultValue: 0,
|
|
12266
12477
|
int: true,
|
|
@@ -12272,6 +12483,7 @@ const settingsMap = {
|
|
|
12272
12483
|
}),
|
|
12273
12484
|
paymentRiskCheckoutMaxBlockedAttempts: makeNumberSetting({
|
|
12274
12485
|
key: "paymentRiskCheckoutMaxBlockedAttempts",
|
|
12486
|
+
abuseControl: "payments",
|
|
12275
12487
|
name: "Payment Risk: Refuse Checkout After Radar Blocks",
|
|
12276
12488
|
defaultValue: 3,
|
|
12277
12489
|
int: true,
|
|
@@ -12283,6 +12495,7 @@ const settingsMap = {
|
|
|
12283
12495
|
}),
|
|
12284
12496
|
paymentRiskCheckoutBlockedWindowMinutes: makeNumberSetting({
|
|
12285
12497
|
key: "paymentRiskCheckoutBlockedWindowMinutes",
|
|
12498
|
+
abuseControl: "payments",
|
|
12286
12499
|
name: "Payment Risk: Radar Block Window (minutes)",
|
|
12287
12500
|
defaultValue: 1440,
|
|
12288
12501
|
int: true,
|
|
@@ -12294,6 +12507,7 @@ const settingsMap = {
|
|
|
12294
12507
|
}),
|
|
12295
12508
|
paymentRiskLinkedAccountActions: makeBooleanSetting({
|
|
12296
12509
|
key: "paymentRiskLinkedAccountActions",
|
|
12510
|
+
abuseControl: "payments",
|
|
12297
12511
|
name: "Payment Risk: Act on Linked Accounts",
|
|
12298
12512
|
defaultValue: true,
|
|
12299
12513
|
category: "Users",
|
|
@@ -12302,6 +12516,7 @@ const settingsMap = {
|
|
|
12302
12516
|
}),
|
|
12303
12517
|
signupMinSubmitMs: makeNumberSetting({
|
|
12304
12518
|
key: "signupMinSubmitMs",
|
|
12519
|
+
abuseControl: "signup",
|
|
12305
12520
|
name: "Signup Minimum Submit Time (ms)",
|
|
12306
12521
|
defaultValue: 1500,
|
|
12307
12522
|
min: 0,
|
|
@@ -12312,6 +12527,7 @@ const settingsMap = {
|
|
|
12312
12527
|
}),
|
|
12313
12528
|
signupBotChecksEnabled: makeBooleanSetting({
|
|
12314
12529
|
key: "signupBotChecksEnabled",
|
|
12530
|
+
abuseControl: "signup",
|
|
12315
12531
|
name: "Signup Bot Checks",
|
|
12316
12532
|
defaultValue: true,
|
|
12317
12533
|
description: "Records risk signals (hidden field filled, missing or invalid form token, too-fast submit) at signup and places flagged new accounts in the restricted tier. Turn OFF to stop recording signals.",
|
|
@@ -14868,7 +15084,8 @@ const GenericDeductReasons = [
|
|
|
14868
15084
|
"optihashi_cost_chargeup",
|
|
14869
15085
|
"credit_expiry",
|
|
14870
15086
|
"abuse_clawback",
|
|
14871
|
-
"referral_reward_takeback"
|
|
15087
|
+
"referral_reward_takeback",
|
|
15088
|
+
"balance_cap_cleanup"
|
|
14872
15089
|
];
|
|
14873
15090
|
const GENERIC_DEDUCT_REASON_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
14874
15091
|
const GENERIC_DEDUCT_REASON_REGISTRY_KEY = Symbol.for("b4m.credit.genericDeductReasons");
|
|
@@ -15080,21 +15297,176 @@ const CREDIT_DEDUCT_TRANSACTION_TYPES = [
|
|
|
15080
15297
|
const NON_AI_DEDUCT_TRANSACTION_TYPES = ["transfer_credit", "generic_deduct"];
|
|
15081
15298
|
CREDIT_DEDUCT_TRANSACTION_TYPES.filter((t) => !NON_AI_DEDUCT_TRANSACTION_TYPES.includes(t));
|
|
15082
15299
|
CREDIT_DEDUCT_TRANSACTION_TYPES.filter((t) => t !== "transfer_credit");
|
|
15083
|
-
const
|
|
15300
|
+
const ImageUsageCounter = z$1.discriminatedUnion("status", [
|
|
15301
|
+
z$1.object({
|
|
15302
|
+
status: z$1.literal("reported"),
|
|
15303
|
+
value: z$1.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER)
|
|
15304
|
+
}).strict(),
|
|
15305
|
+
z$1.object({ status: z$1.literal("not_reported") }).strict(),
|
|
15306
|
+
z$1.object({ status: z$1.literal("invalid") }).strict()
|
|
15307
|
+
]);
|
|
15308
|
+
const issues = [
|
|
15309
|
+
"usage_missing",
|
|
15310
|
+
"usage_invalid",
|
|
15311
|
+
"counter_invalid",
|
|
15312
|
+
"input_partition_mismatch",
|
|
15313
|
+
"output_partition_mismatch",
|
|
15314
|
+
"total_mismatch",
|
|
15315
|
+
"capture_invalid"
|
|
15316
|
+
];
|
|
15317
|
+
const ImageProviderUsage = z$1.object({
|
|
15318
|
+
version: z$1.literal(1),
|
|
15319
|
+
provider: z$1.literal("openai"),
|
|
15320
|
+
providerSource: z$1.literal("adapter"),
|
|
15321
|
+
endpointProvenance: z$1.enum(["native_openai", "unverified"]),
|
|
15322
|
+
api: z$1.literal("images"),
|
|
15323
|
+
method: z$1.enum([
|
|
15324
|
+
"generate",
|
|
15325
|
+
"edit",
|
|
15326
|
+
"variation",
|
|
15327
|
+
"unknown"
|
|
15328
|
+
]),
|
|
15329
|
+
attemptId: z$1.string().regex(/^[A-Za-z0-9._:-]{1,128}$/),
|
|
15330
|
+
requestedModel: z$1.string().regex(/^[A-Za-z0-9._:-]{1,128}$/).optional(),
|
|
15331
|
+
modelSource: z$1.literal("request"),
|
|
15332
|
+
input: ImageUsageCounter,
|
|
15333
|
+
output: ImageUsageCounter,
|
|
15334
|
+
total: ImageUsageCounter,
|
|
15335
|
+
inputText: ImageUsageCounter,
|
|
15336
|
+
inputImage: ImageUsageCounter,
|
|
15337
|
+
outputText: ImageUsageCounter,
|
|
15338
|
+
outputImage: ImageUsageCounter,
|
|
15339
|
+
issues: z$1.array(z$1.enum(issues)).max(issues.length)
|
|
15340
|
+
}).strict();
|
|
15341
|
+
const identity$1 = z$1.string().min(1).max(256);
|
|
15342
|
+
const tokenCount = z$1.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
15343
|
+
const rate = z$1.number().finite().nonnegative();
|
|
15344
|
+
const capabilitySchema = z$1.object({
|
|
15345
|
+
version: z$1.literal(1),
|
|
15346
|
+
provider: z$1.literal("openai"),
|
|
15347
|
+
endpoint: z$1.literal("https://api.openai.com/v1"),
|
|
15348
|
+
api: z$1.enum(["chat", "responses"]),
|
|
15349
|
+
policy: z$1.literal("explicit-cache-write-v1"),
|
|
15350
|
+
contractId: identity$1,
|
|
15351
|
+
chatWriteDefault: z$1.enum(["unknown", "documented_zero"])
|
|
15352
|
+
}).strict().refine((value) => value.api === "chat" || value.chatWriteDefault === "unknown", { message: "Only native Chat permits the documented default" });
|
|
15353
|
+
const nativeCounterSchema = z$1.object({
|
|
15354
|
+
provenance: z$1.enum([
|
|
15355
|
+
"reported",
|
|
15356
|
+
"not_reported",
|
|
15357
|
+
"invalid"
|
|
15358
|
+
]),
|
|
15359
|
+
value: tokenCount.optional()
|
|
15360
|
+
}).strict().refine((counter) => counter.provenance === "reported" === (counter.value !== void 0));
|
|
15361
|
+
const nativeRatesSchema = z$1.object({
|
|
15362
|
+
input: rate,
|
|
15363
|
+
output: rate,
|
|
15364
|
+
cachedRead: rate,
|
|
15365
|
+
write30m: rate,
|
|
15366
|
+
write12h: rate
|
|
15367
|
+
}).strict();
|
|
15368
|
+
const OpenAiNativeUsageAttempt = z$1.object({
|
|
15369
|
+
attemptId: identity$1,
|
|
15370
|
+
api: z$1.literal("responses"),
|
|
15371
|
+
endpoint: z$1.enum(["native_openai", "unsupported"]),
|
|
15372
|
+
capturedAt: z$1.iso.datetime(),
|
|
15373
|
+
terminalStatus: z$1.enum([
|
|
15374
|
+
"pending",
|
|
15375
|
+
"completed",
|
|
15376
|
+
"incomplete",
|
|
15377
|
+
"failed",
|
|
15378
|
+
"error"
|
|
15379
|
+
]),
|
|
15380
|
+
contractStatus: z$1.enum([
|
|
15381
|
+
"unsupported",
|
|
15382
|
+
"admitted",
|
|
15383
|
+
"invalid_context"
|
|
15384
|
+
]),
|
|
15385
|
+
contractId: identity$1.optional(),
|
|
15386
|
+
requestedModel: identity$1.optional(),
|
|
15387
|
+
returnedModel: identity$1.optional(),
|
|
15388
|
+
actualServiceTier: identity$1.optional(),
|
|
15389
|
+
inclusiveInput: nativeCounterSchema,
|
|
15390
|
+
output: nativeCounterSchema,
|
|
15391
|
+
cachedReads: nativeCounterSchema,
|
|
15392
|
+
cacheWrites: nativeCounterSchema,
|
|
15393
|
+
writes30m: nativeCounterSchema,
|
|
15394
|
+
writes12h: nativeCounterSchema,
|
|
15395
|
+
partitionStatus: z$1.enum([
|
|
15396
|
+
"unknown",
|
|
15397
|
+
"complete",
|
|
15398
|
+
"aggregate_writes_only"
|
|
15399
|
+
]),
|
|
15400
|
+
issues: z$1.array(identity$1).max(16),
|
|
15401
|
+
rateBinding: z$1.discriminatedUnion("status", [z$1.object({
|
|
15402
|
+
status: z$1.literal("unresolved"),
|
|
15403
|
+
reason: identity$1
|
|
15404
|
+
}).strict(), z$1.object({
|
|
15405
|
+
status: z$1.literal("resolved"),
|
|
15406
|
+
units: z$1.literal("usd_per_token"),
|
|
15407
|
+
returnedModel: identity$1,
|
|
15408
|
+
actualServiceTier: identity$1,
|
|
15409
|
+
maxInputTokens: tokenCount,
|
|
15410
|
+
rates: nativeRatesSchema,
|
|
15411
|
+
priceSourceId: identity$1,
|
|
15412
|
+
identityContractId: identity$1,
|
|
15413
|
+
capturedAt: z$1.iso.datetime(),
|
|
15414
|
+
effectiveAt: z$1.iso.datetime()
|
|
15415
|
+
}).strict()])
|
|
15416
|
+
}).strict();
|
|
15417
|
+
const OpenAiNativeUsageObservations = z$1.object({
|
|
15418
|
+
version: z$1.literal(1),
|
|
15419
|
+
coverage: z$1.literal("app_visible_attempts"),
|
|
15420
|
+
truncated: z$1.boolean(),
|
|
15421
|
+
invalidCapture: z$1.boolean(),
|
|
15422
|
+
attempts: z$1.array(OpenAiNativeUsageAttempt).max(32)
|
|
15423
|
+
}).strict();
|
|
15424
|
+
const ratesSchema = z$1.object({
|
|
15425
|
+
input: rate,
|
|
15426
|
+
output: rate,
|
|
15427
|
+
cachedRead: rate,
|
|
15428
|
+
write30m: rate.optional(),
|
|
15429
|
+
write12h: rate.optional()
|
|
15430
|
+
}).strict();
|
|
15431
|
+
const contextTierSchema = z$1.object({
|
|
15432
|
+
maxInputTokens: tokenCount.positive(),
|
|
15433
|
+
rates: ratesSchema
|
|
15434
|
+
}).strict();
|
|
15435
|
+
const serviceTierSchema = z$1.object({
|
|
15436
|
+
serviceTier: identity$1,
|
|
15437
|
+
contextTiers: z$1.array(contextTierSchema).min(1).max(32)
|
|
15438
|
+
}).strict().refine((value) => value.contextTiers.every((tier, index, tiers) => index === 0 || tiers[index - 1].maxInputTokens < tier.maxInputTokens), { message: "Context thresholds must be strictly increasing" });
|
|
15439
|
+
z$1.object({
|
|
15440
|
+
version: z$1.literal(1),
|
|
15441
|
+
units: z$1.literal("usd_per_token"),
|
|
15442
|
+
capability: capabilitySchema,
|
|
15443
|
+
wireModel: identity$1,
|
|
15444
|
+
allowedReturnedModels: z$1.array(identity$1).min(1).max(32),
|
|
15445
|
+
identityContractId: identity$1,
|
|
15446
|
+
priceSourceId: identity$1,
|
|
15447
|
+
capturedAt: z$1.iso.datetime(),
|
|
15448
|
+
effectiveAt: z$1.iso.datetime(),
|
|
15449
|
+
serviceTiers: z$1.array(serviceTierSchema).min(1).max(16)
|
|
15450
|
+
}).strict().refine((value) => new Set(value.allowedReturnedModels).size === value.allowedReturnedModels.length, { message: "Returned model identities must be unique" }).refine((value) => new Set(value.serviceTiers.map((tier) => tier.serviceTier)).size === value.serviceTiers.length, { message: "Service tiers must be unique" }).refine((value) => Date.parse(value.effectiveAt) <= Date.parse(value.capturedAt), { message: "Rates must be effective when captured" });
|
|
15451
|
+
const identity = z$1.string().min(1).max(128);
|
|
15084
15452
|
const PlatformAttribution = z$1.object({
|
|
15085
15453
|
kind: z$1.literal("platform_operation"),
|
|
15086
|
-
operation: z$1.
|
|
15454
|
+
operation: z$1.enum([
|
|
15455
|
+
"sre_diagnosis",
|
|
15456
|
+
"image_prompt_resolution",
|
|
15457
|
+
"release_highlights"
|
|
15458
|
+
]),
|
|
15087
15459
|
environment: z$1.enum([
|
|
15088
15460
|
"production",
|
|
15089
15461
|
"staging",
|
|
15090
15462
|
"development",
|
|
15091
15463
|
"test"
|
|
15092
15464
|
]),
|
|
15093
|
-
logicalJobId: identity
|
|
15094
|
-
executionId: identity
|
|
15465
|
+
logicalJobId: identity,
|
|
15466
|
+
executionId: identity
|
|
15095
15467
|
}).strict();
|
|
15096
15468
|
z$1.object({
|
|
15097
|
-
providerCallId: identity
|
|
15469
|
+
providerCallId: identity,
|
|
15098
15470
|
attribution: PlatformAttribution,
|
|
15099
15471
|
provider: z$1.string().min(1).max(128),
|
|
15100
15472
|
model: z$1.string().min(1).max(256),
|
|
@@ -15207,7 +15579,9 @@ const USAGE_EVENT_OPERATIONS = [
|
|
|
15207
15579
|
"assistant_brief",
|
|
15208
15580
|
"delegated_item",
|
|
15209
15581
|
"document_obligation",
|
|
15210
|
-
"org_feedback_summary"
|
|
15582
|
+
"org_feedback_summary",
|
|
15583
|
+
"quest_export_summary",
|
|
15584
|
+
"lake_inconsistency_detection"
|
|
15211
15585
|
];
|
|
15212
15586
|
/**
|
|
15213
15587
|
* How a request was run, for the admin usage receipt. Metadata only by contract: never prompt or
|
|
@@ -15355,6 +15729,8 @@ const AttributedUsageEvent = z$1.object({
|
|
|
15355
15729
|
turnUsageTruncated: z$1.boolean().optional(),
|
|
15356
15730
|
/** The part of cacheWriteTokens written with the 1-hour TTL, priced at rates.cacheWrite1h. Absent when none. */
|
|
15357
15731
|
cacheWrite1hTokens: z$1.number().optional(),
|
|
15732
|
+
openAiUsageObservations: OpenAiNativeUsageObservations.optional(),
|
|
15733
|
+
imageProviderUsage: ImageProviderUsage.optional(),
|
|
15358
15734
|
/** How the request ran, for the admin usage receipt (see UsageEventRequestMeta). */
|
|
15359
15735
|
requestMeta: UsageEventRequestMeta.optional(),
|
|
15360
15736
|
/** The completion run this call's spend belongs to (see UsageEventRun). */
|
|
@@ -15801,7 +16177,13 @@ z$1.object({
|
|
|
15801
16177
|
* Only meaningful for a principal INSIDE the lake's organization: membership never crosses
|
|
15802
16178
|
* organizations (epic decision 12), so this is not a cross-org mechanism.
|
|
15803
16179
|
*/
|
|
15804
|
-
expiresAt: z$1.date().nullish()
|
|
16180
|
+
expiresAt: z$1.date().nullish(),
|
|
16181
|
+
/**
|
|
16182
|
+
* When the recipient agreed to hold this grant: set when they accept a grant offer, or choose to
|
|
16183
|
+
* keep a grant from before offers existed. Absent on a cross-org grant means it was never agreed
|
|
16184
|
+
* to, which is what the recipient's one-time notice lists.
|
|
16185
|
+
*/
|
|
16186
|
+
recipientAcknowledgedAt: z$1.date().nullish()
|
|
15805
16187
|
});
|
|
15806
16188
|
/** One prefix-arm content tag a lake held on a file, as captured at removal for later restore. */
|
|
15807
16189
|
const LakeMembershipRemovalContentTag = z$1.object({
|
|
@@ -15932,6 +16314,9 @@ const LAKE_CONFIG_FIELD_AUDIT = {
|
|
|
15932
16314
|
purgeClaimId: "excluded",
|
|
15933
16315
|
purgeStartedAt: "excluded",
|
|
15934
16316
|
lakeMemoryExtractionAt: "excluded",
|
|
16317
|
+
lakeMemoryCoverageGeneration: "excluded",
|
|
16318
|
+
lakeMemoryCoverageScopeKey: "excluded",
|
|
16319
|
+
lakeMemoryPassStartedAt: "excluded",
|
|
15935
16320
|
lakeMemoryCursor: "excluded",
|
|
15936
16321
|
lakeMemoryPurgedAt: "excluded",
|
|
15937
16322
|
inconsistencyReport: "excluded",
|
|
@@ -15987,6 +16372,32 @@ z$1.object({
|
|
|
15987
16372
|
onBehalfOfUserId: z$1.string().optional()
|
|
15988
16373
|
}).optional()
|
|
15989
16374
|
});
|
|
16375
|
+
z$1.object({
|
|
16376
|
+
dataLakeId: z$1.string(),
|
|
16377
|
+
/** The lake's org at offer time; accept refuses if the lake has moved since. */
|
|
16378
|
+
organizationId: z$1.string().nullish(),
|
|
16379
|
+
offeredByUserId: z$1.string(),
|
|
16380
|
+
recipientUserId: z$1.string(),
|
|
16381
|
+
role: z$1.enum(["curator", "reader"]),
|
|
16382
|
+
/** The expiry the GRANT will carry once accepted; null = never expires. Not the offer's expiry. */
|
|
16383
|
+
grantExpiresAt: z$1.date().nullish(),
|
|
16384
|
+
status: z$1.enum([
|
|
16385
|
+
"pending",
|
|
16386
|
+
"accepted",
|
|
16387
|
+
"declined",
|
|
16388
|
+
"cancelled",
|
|
16389
|
+
"expired"
|
|
16390
|
+
]),
|
|
16391
|
+
/** When the offer itself lapses if unanswered. */
|
|
16392
|
+
expiresAt: z$1.date(),
|
|
16393
|
+
resolvedAt: z$1.date().nullish(),
|
|
16394
|
+
/** Resolved by the route at offer time, so the eventual audit row names the offering principal. */
|
|
16395
|
+
auditPrincipal: z$1.object({
|
|
16396
|
+
principalKind: z$1.enum(LAKE_CONFIG_CHANGE_PRINCIPAL_KINDS),
|
|
16397
|
+
principalId: z$1.string(),
|
|
16398
|
+
onBehalfOfUserId: z$1.string().optional()
|
|
16399
|
+
}).optional()
|
|
16400
|
+
});
|
|
15990
16401
|
/**
|
|
15991
16402
|
* Who INITIATED the write: an automated ingestion pipeline (today, a Google Drive connector
|
|
15992
16403
|
* sync) or a person acting through an interactive door (a session, or an API key acting on a
|
|
@@ -16206,7 +16617,9 @@ const AuditTargetSchema = z$1.object({
|
|
|
16206
16617
|
"system",
|
|
16207
16618
|
"curatedCatalog",
|
|
16208
16619
|
"adminRole",
|
|
16209
|
-
"space"
|
|
16620
|
+
"space",
|
|
16621
|
+
"statusIncident",
|
|
16622
|
+
"statusComponent"
|
|
16210
16623
|
]),
|
|
16211
16624
|
id: z$1.string(),
|
|
16212
16625
|
displayName: z$1.string()
|
|
@@ -16238,7 +16651,8 @@ const AdminAuditCategorySchema = z$1.enum([
|
|
|
16238
16651
|
"account",
|
|
16239
16652
|
"org",
|
|
16240
16653
|
"settings",
|
|
16241
|
-
"support"
|
|
16654
|
+
"support",
|
|
16655
|
+
"status"
|
|
16242
16656
|
]);
|
|
16243
16657
|
const AdminAuditSeveritySchema = z$1.enum([
|
|
16244
16658
|
"info",
|
|
@@ -16943,45 +17357,6 @@ function completionsSupportsToolSearch(model) {
|
|
|
16943
17357
|
return servedByClaudeAdapter(model) && supportsToolSearch(model);
|
|
16944
17358
|
}
|
|
16945
17359
|
const PROMPT_CACHE_TTLS = ["5m", "1h"];
|
|
16946
|
-
const identity = z$1.string().min(1).max(256);
|
|
16947
|
-
const tokenCount = z$1.number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
16948
|
-
const rate = z$1.number().finite().nonnegative();
|
|
16949
|
-
const capabilitySchema = z$1.object({
|
|
16950
|
-
version: z$1.literal(1),
|
|
16951
|
-
provider: z$1.literal("openai"),
|
|
16952
|
-
endpoint: z$1.literal("https://api.openai.com/v1"),
|
|
16953
|
-
api: z$1.enum(["chat", "responses"]),
|
|
16954
|
-
policy: z$1.literal("explicit-cache-write-v1"),
|
|
16955
|
-
contractId: identity,
|
|
16956
|
-
chatWriteDefault: z$1.enum(["unknown", "documented_zero"])
|
|
16957
|
-
}).strict().refine((value) => value.api === "chat" || value.chatWriteDefault === "unknown", { message: "Only native Chat permits the documented default" });
|
|
16958
|
-
const ratesSchema = z$1.object({
|
|
16959
|
-
input: rate,
|
|
16960
|
-
output: rate,
|
|
16961
|
-
cachedRead: rate,
|
|
16962
|
-
write30m: rate.optional(),
|
|
16963
|
-
write12h: rate.optional()
|
|
16964
|
-
}).strict();
|
|
16965
|
-
const contextTierSchema = z$1.object({
|
|
16966
|
-
maxInputTokens: tokenCount.positive(),
|
|
16967
|
-
rates: ratesSchema
|
|
16968
|
-
}).strict();
|
|
16969
|
-
const serviceTierSchema = z$1.object({
|
|
16970
|
-
serviceTier: identity,
|
|
16971
|
-
contextTiers: z$1.array(contextTierSchema).min(1).max(32)
|
|
16972
|
-
}).strict().refine((value) => value.contextTiers.every((tier, index, tiers) => index === 0 || tiers[index - 1].maxInputTokens < tier.maxInputTokens), { message: "Context thresholds must be strictly increasing" });
|
|
16973
|
-
z$1.object({
|
|
16974
|
-
version: z$1.literal(1),
|
|
16975
|
-
units: z$1.literal("usd_per_token"),
|
|
16976
|
-
capability: capabilitySchema,
|
|
16977
|
-
wireModel: identity,
|
|
16978
|
-
allowedReturnedModels: z$1.array(identity).min(1).max(32),
|
|
16979
|
-
identityContractId: identity,
|
|
16980
|
-
priceSourceId: identity,
|
|
16981
|
-
capturedAt: z$1.iso.datetime(),
|
|
16982
|
-
effectiveAt: z$1.iso.datetime(),
|
|
16983
|
-
serviceTiers: z$1.array(serviceTierSchema).min(1).max(16)
|
|
16984
|
-
}).strict().refine((value) => new Set(value.allowedReturnedModels).size === value.allowedReturnedModels.length, { message: "Returned model identities must be unique" }).refine((value) => new Set(value.serviceTiers.map((tier) => tier.serviceTier)).size === value.serviceTiers.length, { message: "Service tiers must be unique" }).refine((value) => Date.parse(value.effectiveAt) <= Date.parse(value.capturedAt), { message: "Rates must be effective when captured" });
|
|
16985
17360
|
z.enum([
|
|
16986
17361
|
"openai",
|
|
16987
17362
|
"test",
|
|
@@ -17111,7 +17486,7 @@ const generatedAudioResponseSchema = extendGeneratedAudioResponseSchema({});
|
|
|
17111
17486
|
/**
|
|
17112
17487
|
* 413 body: the audio was generated and billed, exceeds the response ceiling, and
|
|
17113
17488
|
* offloading it to storage failed too. Written, never thrown, so it carries no
|
|
17114
|
-
* `
|
|
17489
|
+
* `request_id`.
|
|
17115
17490
|
*/
|
|
17116
17491
|
const generatedAudioTooLargeSchema = z.object({ error: z.string() });
|
|
17117
17492
|
/**
|
|
@@ -19170,6 +19545,12 @@ z$1.object({
|
|
|
19170
19545
|
citables: z$1.array(CitableSourceSchema).optional(),
|
|
19171
19546
|
contextTelemetry: ContextTelemetrySchema.optional()
|
|
19172
19547
|
});
|
|
19548
|
+
const PublicLakeScopeSchema = z$1.enum(["all", "followed"]);
|
|
19549
|
+
const FOLLOW_OFF_NOTE = "While lake following is switched off on the deployment there is no follow set, so `followed` behaves as `all`.";
|
|
19550
|
+
/** Description of `public_lakes` on a request that retrieves from lakes. */
|
|
19551
|
+
const PUBLIC_LAKES_RETRIEVAL_DESCRIPTION = `Which public lakes unscoped lake retrieval may read for an API-key caller. \`all\` (the default) keeps every public lake; \`followed\` keeps only public lakes you follow (\`POST /api/v1/data-lakes/{id}/follow\`). Lakes you own or reach through an organization, share or plan are never dropped. Ignored for a signed-in browser session. ${FOLLOW_OFF_NOTE}`;
|
|
19552
|
+
/** Description of `public_lakes` on `GET /api/v1/data-lakes`. */
|
|
19553
|
+
const PUBLIC_LAKES_LIST_DESCRIPTION = "`all` (the default) lists every public lake. `followed` drops public lakes you reach only because they are public and that you do not follow (`access_reason: 'public'`); every other row stays. " + FOLLOW_OFF_NOTE;
|
|
19173
19554
|
/**
|
|
19174
19555
|
* Request schema for POST /api/chat - the simplified external chat surface.
|
|
19175
19556
|
*
|
|
@@ -19213,7 +19594,8 @@ const SimplifiedChatRequestSchema = z$1.object({
|
|
|
19213
19594
|
skip_auto_offers: z$1.boolean().optional().describe("Suppress tools the server would otherwise attach on its own for this session (the knowledge-base search offer, in-app view navigation, blog drafting/editing/publishing, skill invocation, and every tool from a connected MCP server). Native tools you request explicitly in `tools` are unaffected, but an MCP server tool cannot be named through this field, so with this flag set a caller with an MCP server connected sees none of its tools regardless of `tools`. One system-prompt block goes with them: withholding in-app view navigation also drops the view-registry block that exists only to describe it. No other prompt content changes. This does not switch off retrieval: a session with forced knowledge retrieval still retrieves, and documents already attached to the session are still placed in the prompt directly. Any promptMode suppresses these too, so false has no effect alongside one."),
|
|
19214
19595
|
includePromptDetails: z$1.boolean().optional(),
|
|
19215
19596
|
includeSystemPrompt: z$1.boolean().optional(),
|
|
19216
|
-
systemPrompt: z$1.string().max(PROMPT_TEXT_MAX).optional().describe("System-prompt text for this request only, never persisted. Rendered as a defended block appended after every other system-prompt source, with prose instructing the model to defer to organization, session and data-lake guidance. Over the cap is a 422, never truncated.")
|
|
19597
|
+
systemPrompt: z$1.string().max(PROMPT_TEXT_MAX).optional().describe("System-prompt text for this request only, never persisted. Rendered as a defended block appended after every other system-prompt source, with prose instructing the model to defer to organization, session and data-lake guidance. Over the cap is a 422, never truncated."),
|
|
19598
|
+
public_lakes: PublicLakeScopeSchema.optional().describe(PUBLIC_LAKES_RETRIEVAL_DESCRIPTION)
|
|
19217
19599
|
});
|
|
19218
19600
|
/**
|
|
19219
19601
|
* Async ACK returned on the default (wait:false) path of POST /api/chat. The
|
|
@@ -19331,14 +19713,7 @@ const ChatQuestPollResultSchema = z$1.object({
|
|
|
19331
19713
|
*/
|
|
19332
19714
|
const ApiErrorSchema = z$1.object({
|
|
19333
19715
|
error: z$1.string(),
|
|
19334
|
-
request_id: z$1.string().optional()
|
|
19335
|
-
/**
|
|
19336
|
-
* Deprecated, sunset 2026-12-01. The `name` of whatever was thrown - our own error
|
|
19337
|
-
* classes usually, a library/driver class name on an unhandled 500 - added to every
|
|
19338
|
-
* body by apps/client's errorHandler. Documented here so the runtime and the spec
|
|
19339
|
-
* agree while it is still served; do not build on it. See CONVENTIONS.md section 1.
|
|
19340
|
-
*/
|
|
19341
|
-
name: z$1.string().optional()
|
|
19716
|
+
request_id: z$1.string().optional()
|
|
19342
19717
|
});
|
|
19343
19718
|
/**
|
|
19344
19719
|
* Error envelope for the 422 a credit-metered endpoint returns for two unrelated
|
|
@@ -19348,8 +19723,8 @@ const ApiErrorSchema = z$1.object({
|
|
|
19348
19723
|
*
|
|
19349
19724
|
* Derived from `ApiErrorSchema` rather than re-declaring `error`/`request_id`:
|
|
19350
19725
|
* both of those 422s are *thrown*, so errorHandler serves the body and adds
|
|
19351
|
-
* `
|
|
19352
|
-
*
|
|
19726
|
+
* `request_id`. Extending is what keeps that documented here instead of leaving a
|
|
19727
|
+
* bespoke copy behind to drift.
|
|
19353
19728
|
*
|
|
19354
19729
|
* Also covers `spend_cap_exceeded`; the name is a published OpenAPI component, so it stays.
|
|
19355
19730
|
*/
|
|
@@ -19585,8 +19960,7 @@ const TTS_ERROR_CODES = [
|
|
|
19585
19960
|
* on the conditions that carry a classifier; an ordinary validation 422 has none.
|
|
19586
19961
|
*
|
|
19587
19962
|
* Extends `ApiErrorSchema` because what decides whether a body carries the fields
|
|
19588
|
-
* errorHandler adds - `request_id
|
|
19589
|
-
* whether the body was THROWN, not which status it wears, and three of these four
|
|
19963
|
+
* errorHandler adds - `request_id` - is whether the body was THROWN, not which status it wears, and three of these four
|
|
19590
19964
|
* statuses are reachable both ways:
|
|
19591
19965
|
*
|
|
19592
19966
|
* - 401: thrown by apiKeyAuth on a rejected key; written by `auth` when no
|
|
@@ -19599,8 +19973,8 @@ const TTS_ERROR_CODES = [
|
|
|
19599
19973
|
* - 429: thrown by apiKeyRateLimit; written by the handler on an upstream 429.
|
|
19600
19974
|
* - 502: only ever written.
|
|
19601
19975
|
*
|
|
19602
|
-
* So
|
|
19603
|
-
* wrong for the first three. The 502 does advertise
|
|
19976
|
+
* So it is genuinely optional here, and splitting this per status would be
|
|
19977
|
+
* wrong for the first three. The 502 does advertise it without ever sending it;
|
|
19604
19978
|
* that is not worth a fourth error schema on one route, and `request_id` missing from
|
|
19605
19979
|
* this handler's written bodies is a gap in the handler rather than something to
|
|
19606
19980
|
* enshrine in a schema.
|
|
@@ -19621,7 +19995,7 @@ const ttsErrorResponseSchema = ApiErrorSchema.extend({
|
|
|
19621
19995
|
* that predates the offload.
|
|
19622
19996
|
*
|
|
19623
19997
|
* Not derived from `ApiErrorSchema`: every 413 on this route is written, never
|
|
19624
|
-
* thrown, so `
|
|
19998
|
+
* thrown, so `request_id` is genuinely absent rather than optional - a stronger claim than
|
|
19625
19999
|
* `ttsErrorResponseSchema` can make for its own statuses, see the note there (a
|
|
19626
20000
|
* provider 413 is folded onto a 422 by documentedStatusForUpstream4xx). An oversized
|
|
19627
20001
|
* *request* body is another 413 that never reaches this schema at all - Next's own
|
|
@@ -19961,6 +20335,27 @@ const hasBlankTagPrefixSegment = (prefix) => {
|
|
|
19961
20335
|
return (prefix.endsWith(":") ? prefix.slice(0, -1) : prefix).split(":").some((part) => !/[\p{L}\p{N}\p{P}\p{S}\p{M}]/u.test(part.replace(INVISIBLE_INK, "")));
|
|
19962
20336
|
};
|
|
19963
20337
|
const DATA_LAKE_SLUG_REGEX = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
20338
|
+
/**
|
|
20339
|
+
* DataLakeConfig plus the fields only a lake's EDITORS may read. Returned exclusively by the
|
|
20340
|
+
* actor-aware list projections (listDataLakes / listAllDataLakes), which populate the extra
|
|
20341
|
+
* fields per lake and only when `canManage` holds for the requesting caller.
|
|
20342
|
+
*
|
|
20343
|
+
* This is a separate type on purpose: DataLakeConfig is the shared shape the access filters and
|
|
20344
|
+
* the tag/registry projections all operate on, and several of those have no actor to gate on.
|
|
20345
|
+
* `toDataLakeConfig` is therefore structurally unable to carry an editor-only field - the
|
|
20346
|
+
* invariant that keeps the prompt text out of every actor-less projection (see
|
|
20347
|
+
* getAccessibleDataLakePrompts, which reads it off the raw documents for the same reason).
|
|
20348
|
+
*/
|
|
20349
|
+
/** Why a lake is on the caller's list (GET /api/data-lakes), in precedence order. */
|
|
20350
|
+
const LAKE_ACCESS_REASONS = [
|
|
20351
|
+
"owner",
|
|
20352
|
+
"manager",
|
|
20353
|
+
"organization",
|
|
20354
|
+
"shared",
|
|
20355
|
+
"tag",
|
|
20356
|
+
"followed",
|
|
20357
|
+
"public"
|
|
20358
|
+
];
|
|
19964
20359
|
const DATA_LAKES = [{
|
|
19965
20360
|
id: "opti-knowledge",
|
|
19966
20361
|
slug: "opti-knowledge",
|
|
@@ -22903,6 +23298,7 @@ const StreamedChatCompletionAction = z$1.object({
|
|
|
22903
23298
|
})),
|
|
22904
23299
|
sources: z$1.array(z$1.object({
|
|
22905
23300
|
url: z$1.string(),
|
|
23301
|
+
type: z$1.string(),
|
|
22906
23302
|
title: z$1.string(),
|
|
22907
23303
|
description: z$1.string(),
|
|
22908
23304
|
status: z$1.enum([
|
|
@@ -23934,7 +24330,19 @@ const OptiHashiRunUpdatedAction = z$1.object({
|
|
|
23934
24330
|
runId: z$1.string(),
|
|
23935
24331
|
status: z$1.string()
|
|
23936
24332
|
});
|
|
24333
|
+
/**
|
|
24334
|
+
* Server -> Client: a short-lived message from another person in a shared session, such as where
|
|
24335
|
+
* they are pointing. Relayed, never stored; `payload` is the sending feature's own shape.
|
|
24336
|
+
*/
|
|
24337
|
+
const SessionSignalAction = z$1.object({
|
|
24338
|
+
action: z$1.literal("session_signal"),
|
|
24339
|
+
sessionId: z$1.string(),
|
|
24340
|
+
/** The user id of the person it came from. */
|
|
24341
|
+
from: z$1.string(),
|
|
24342
|
+
payload: z$1.record(z$1.string(), z$1.unknown())
|
|
24343
|
+
});
|
|
23937
24344
|
z$1.discriminatedUnion("action", [
|
|
24345
|
+
SessionSignalAction,
|
|
23938
24346
|
SessionHandoffAction,
|
|
23939
24347
|
GenerationJobUpdatedAction,
|
|
23940
24348
|
StudioJobCompletedAction,
|
|
@@ -24153,7 +24561,8 @@ const AgentExecutionStartRequestSchema = z$1.object({
|
|
|
24153
24561
|
* iteration, and nothing on this transport renders an artifact back to a human.
|
|
24154
24562
|
*/
|
|
24155
24563
|
enable_artifacts: z$1.boolean().optional(),
|
|
24156
|
-
confidence_overrides: z$1.array(z$1.number().min(0).max(1)).min(1).max(100).optional().describe("Admin only. Scripted per-iteration confidence scores (0 to 1) that replace the real score at the confidence gate: entry i scores iteration i + 1, and iterations past the end use the real score. The gate pauses the run for review on a streak of consecutive evaluated iterations below its threshold (currently 2), so script one low entry per iteration you want in the streak. Only iterations that ran tools are evaluated, scripted or not, and a finished run never pauses. A non-admin caller gets 403.")
|
|
24564
|
+
confidence_overrides: z$1.array(z$1.number().min(0).max(1)).min(1).max(100).optional().describe("Admin only. Scripted per-iteration confidence scores (0 to 1) that replace the real score at the confidence gate: entry i scores iteration i + 1, and iterations past the end use the real score. The gate pauses the run for review on a streak of consecutive evaluated iterations below its threshold (currently 2), so script one low entry per iteration you want in the streak. Only iterations that ran tools are evaluated, scripted or not, and a finished run never pauses. A non-admin caller gets 403."),
|
|
24565
|
+
public_lakes: PublicLakeScopeSchema.optional().describe(`${PUBLIC_LAKES_RETRIEVAL_DESCRIPTION} Inherited by any subagent this run dispatches.`)
|
|
24157
24566
|
});
|
|
24158
24567
|
/**
|
|
24159
24568
|
* 202 ACK for `POST /api/v1/agent-executions`. The run is fire-and-forget: nothing is
|
|
@@ -24282,7 +24691,8 @@ const SessionTurnRequestSchema = z$1.object({
|
|
|
24282
24691
|
"surface"
|
|
24283
24692
|
]).optional().describe("How much of the system stack to place in front of the model. Unset keeps the full stack the web app uses."),
|
|
24284
24693
|
organization_id: z$1.string().nullable().optional().describe("Organization to bill. `null` bills personal credits; omitted uses the caller default."),
|
|
24285
|
-
client_submitted_at: z$1.number().optional().describe("Epoch ms when the client submitted the message, for the turn timing log.")
|
|
24694
|
+
client_submitted_at: z$1.number().optional().describe("Epoch ms when the client submitted the message, for the turn timing log."),
|
|
24695
|
+
public_lakes: PublicLakeScopeSchema.optional().describe(PUBLIC_LAKES_RETRIEVAL_DESCRIPTION)
|
|
24286
24696
|
});
|
|
24287
24697
|
/**
|
|
24288
24698
|
* Event fields are snake_case (CONVENTIONS.md section 2), except in `meta` and `error`: those are the
|
|
@@ -26549,12 +26959,24 @@ const dataLakeResponseSchema = z$2.object(passthroughShape({
|
|
|
26549
26959
|
purgeStartedAt: true,
|
|
26550
26960
|
lakeMemoryEnabled: true,
|
|
26551
26961
|
lakeMemoryExtractionAt: true,
|
|
26962
|
+
lakeMemoryCoverageGeneration: true,
|
|
26963
|
+
lakeMemoryCoverageScopeKey: true,
|
|
26964
|
+
lakeMemoryPassStartedAt: true,
|
|
26552
26965
|
lakeMemoryCursor: true,
|
|
26553
26966
|
lakeMemoryPurgedAt: true,
|
|
26554
26967
|
origin: true,
|
|
26555
26968
|
pendingConnector: true,
|
|
26556
26969
|
modelInconsistencyRunAt: true
|
|
26557
26970
|
}));
|
|
26971
|
+
dataLakeResponseSchema.extend({ viewer: z$2.object(passthroughShape({
|
|
26972
|
+
canManage: true,
|
|
26973
|
+
canManageSettings: true,
|
|
26974
|
+
canRebuild: true,
|
|
26975
|
+
isOwn: true,
|
|
26976
|
+
pendingProposalCount: true,
|
|
26977
|
+
accessReason: true,
|
|
26978
|
+
isFollowed: true
|
|
26979
|
+
})) });
|
|
26558
26980
|
z$2.object({ data: z$2.array(dataLakeResponseSchema) });
|
|
26559
26981
|
z$2.object({ data: z$2.array(z$2.object(passthroughShape({
|
|
26560
26982
|
id: true,
|
|
@@ -29043,9 +29465,42 @@ const DataLakeResourceSchema = z$1.object({
|
|
|
29043
29465
|
total_size_bytes: z$1.number().nonnegative(),
|
|
29044
29466
|
last_sync_at: z$1.string().nullable(),
|
|
29045
29467
|
created_at: z$1.string().nullable(),
|
|
29046
|
-
updated_at: z$1.string().nullable()
|
|
29468
|
+
updated_at: z$1.string().nullable(),
|
|
29469
|
+
access_reason: z$1.enum(LAKE_ACCESS_REASONS).describe("Why the caller can reach this lake, the first that applies in this order: `owner`, `manager`, `organization` (through their organization), `shared` (an access grant), `tag` (they hold its access tag or entitlement), `followed` (a public lake they follow), `public` (a public lake they do not follow). `followed` appears only on deployments where following is enabled."),
|
|
29470
|
+
is_followed: z$1.boolean().optional().describe("Whether the caller follows this lake. Present only on deployments where following is enabled.")
|
|
29047
29471
|
});
|
|
29472
|
+
const ListDataLakesQuerySchema = PaginationQuerySchema.extend({ public_lakes: PublicLakeScopeSchema.default("all").describe(PUBLIC_LAKES_LIST_DESCRIPTION) });
|
|
29048
29473
|
const ListDataLakesResponseSchema = paginatedResponseSchema(DataLakeResourceSchema);
|
|
29474
|
+
/** The caller's follow state for one lake after a follow or unfollow. */
|
|
29475
|
+
const DataLakeFollowResponseSchema = z$1.object({
|
|
29476
|
+
lake_id: z$1.string(),
|
|
29477
|
+
followed: z$1.boolean()
|
|
29478
|
+
});
|
|
29479
|
+
/**
|
|
29480
|
+
* One public lake in the discovery catalog. The owner is a display name only, never an email: the
|
|
29481
|
+
* catalog is readable across organizations.
|
|
29482
|
+
*/
|
|
29483
|
+
const PublicDataLakeCardSchema = z$1.object({
|
|
29484
|
+
id: z$1.string(),
|
|
29485
|
+
name: z$1.string(),
|
|
29486
|
+
slug: z$1.string(),
|
|
29487
|
+
description: z$1.string().nullable(),
|
|
29488
|
+
owner_display_name: z$1.string().nullable(),
|
|
29489
|
+
file_count: z$1.number().int().nonnegative(),
|
|
29490
|
+
total_size_bytes: z$1.number().nonnegative(),
|
|
29491
|
+
is_own: z$1.boolean(),
|
|
29492
|
+
can_manage: z$1.boolean(),
|
|
29493
|
+
last_updated_at: z$1.string().nullable(),
|
|
29494
|
+
trusted_sites: z$1.array(z$1.string()).optional().describe("Up to 3 Always use sites from the lake's research configs. Present only on deployments where following is enabled."),
|
|
29495
|
+
follower_count: z$1.number().int().nonnegative().optional().describe("How many users follow the lake. Present only on deployments where following is enabled."),
|
|
29496
|
+
is_followed: z$1.boolean().optional().describe("Whether the caller follows the lake. Present only on deployments where following is enabled.")
|
|
29497
|
+
});
|
|
29498
|
+
/** The catalog pages at most 50 lakes at a time, below the shared 100 cap. */
|
|
29499
|
+
const ListPublicDataLakesQuerySchema = PaginationQuerySchema.extend({
|
|
29500
|
+
limit: z$1.coerce.number().int().min(1).max(50).default(25),
|
|
29501
|
+
search: z$1.string().min(1).max(200).optional().describe("Matches lake names and descriptions, ignoring case.")
|
|
29502
|
+
});
|
|
29503
|
+
const ListPublicDataLakesResponseSchema = paginatedResponseSchema(PublicDataLakeCardSchema);
|
|
29049
29504
|
/** `id` is a lake id or its slug; an unknown value of either shape is a 404, never a 422. */
|
|
29050
29505
|
const DataLakeIdParamSchema = z$1.object({ id: z$1.string().min(1) });
|
|
29051
29506
|
/**
|
|
@@ -29380,6 +29835,15 @@ const ResearchConfigParamSchema = z$1.object({
|
|
|
29380
29835
|
id: z$1.string().min(1),
|
|
29381
29836
|
config_id: z$1.string().min(1)
|
|
29382
29837
|
});
|
|
29838
|
+
const MoveResearchSiteRequestSchema = z$1.object({
|
|
29839
|
+
domain: z$1.string().min(1).max(2048).describe("A site host or address, such as `example.com`."),
|
|
29840
|
+
list: z$1.enum([
|
|
29841
|
+
"trusted",
|
|
29842
|
+
"review",
|
|
29843
|
+
"blocked",
|
|
29844
|
+
"none"
|
|
29845
|
+
]).describe("`trusted` (Always use), `review` (Ask me first), `blocked` (Never use), or `none` to take it off all three.")
|
|
29846
|
+
}).strict();
|
|
29383
29847
|
const ResearchRunParamSchema = z$1.object({
|
|
29384
29848
|
id: z$1.string().min(1),
|
|
29385
29849
|
run_id: z$1.string().min(1)
|
|
@@ -29786,12 +30250,21 @@ const ListProjectsResponseSchema = paginatedResponseSchema(ProjectResourceSchema
|
|
|
29786
30250
|
* and a path-param schema failure would answer 422.
|
|
29787
30251
|
*/
|
|
29788
30252
|
const ProjectIdParamSchema = z$1.object({ id: z$1.string().min(1) });
|
|
30253
|
+
const PROJECT_NAME_REQUIRED_MESSAGE = "Project name is required.";
|
|
30254
|
+
/**
|
|
30255
|
+
* Rejects empty names and names with no visible character. Does not trim, so a padded name passes
|
|
30256
|
+
* through unchanged. `abort` keeps an empty name to a single issue.
|
|
30257
|
+
*/
|
|
30258
|
+
const ProjectNameSchema = z$1.string().min(1, {
|
|
30259
|
+
message: PROJECT_NAME_REQUIRED_MESSAGE,
|
|
30260
|
+
abort: true
|
|
30261
|
+
}).regex(/[^\s\u0000-\u001F\u007F-\u009F\u00AD\u034F\u061C\u115F\u1160\u17B4\u17B5\u180B-\u180F\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2800\u3164\uFE00-\uFE0F\uFEFF\uFFA0\uFFF0-\uFFFB\uDC00-\uDFFF\uDB40]/, PROJECT_NAME_REQUIRED_MESSAGE);
|
|
29789
30262
|
/**
|
|
29790
30263
|
* Strict, so a camelCase `sessionIds`/`fileIds` (the SPA route's spelling) is a 422 rather than
|
|
29791
30264
|
* silently dropped, which would create a project without the content the caller meant to attach.
|
|
29792
30265
|
*/
|
|
29793
30266
|
const CreateProjectRequestSchema = z$1.object({
|
|
29794
|
-
name:
|
|
30267
|
+
name: ProjectNameSchema.describe("Unique among your live projects."),
|
|
29795
30268
|
description: z$1.string().min(1),
|
|
29796
30269
|
organization_id: z$1.string().min(1).optional().describe("Organization context for new content. Requires membership; immutable after creation."),
|
|
29797
30270
|
session_ids: z$1.array(z$1.string().min(1)).max(500).optional().describe("Sessions to group in the project. Each must be readable by the caller."),
|
|
@@ -29799,7 +30272,7 @@ const CreateProjectRequestSchema = z$1.object({
|
|
|
29799
30272
|
}).strict();
|
|
29800
30273
|
/** Strict for the same reason as the create body. Omitted fields are left unchanged. */
|
|
29801
30274
|
const UpdateProjectRequestSchema = z$1.object({
|
|
29802
|
-
name:
|
|
30275
|
+
name: ProjectNameSchema.optional().describe("Unique among your live projects."),
|
|
29803
30276
|
description: z$1.string().min(1).optional()
|
|
29804
30277
|
}).strict();
|
|
29805
30278
|
/**
|
|
@@ -32351,7 +32824,7 @@ defineEndpoint({
|
|
|
32351
32824
|
}
|
|
32352
32825
|
} }
|
|
32353
32826
|
});
|
|
32354
|
-
const JWT_ONLY_NOTE$
|
|
32827
|
+
const JWT_ONLY_NOTE$4 = "Authenticate with a JWT access token of the signed-in user: an API key cannot answer an approval. The caller must own the session the action belongs to; anyone else gets `404`, exactly like a missing action. Nothing in a push notification authorizes this call. ";
|
|
32355
32828
|
const LIFECYCLE = "An approval is answered once and only while it is current: it lapses 15 minutes after it was raised, and a newer approval on the same quest replaces it.";
|
|
32356
32829
|
const CONFLICT = "The action was replaced by a newer one (`errorCode: action_replaced`), lapsed (`action_expired`, and it is cleared), or was already answered (`action_already_resolved`). Also a custom connector tool that is no longer offered. Do not retry; review the quest for a newer approval.";
|
|
32357
32830
|
const REQUEST_EXAMPLE = { pendingActionTs: 17672256e5 };
|
|
@@ -32360,7 +32833,7 @@ defineEndpoint({
|
|
|
32360
32833
|
path: "/api/v1/pending-actions/{questId}/approve",
|
|
32361
32834
|
operationId: "approvePendingAction",
|
|
32362
32835
|
summary: "Approve an agent action",
|
|
32363
|
-
description: "Approves the tool call an agent is waiting on and runs it. " + LIFECYCLE + " " + JWT_ONLY_NOTE$
|
|
32836
|
+
description: "Approves the tool call an agent is waiting on and runs it. " + LIFECYCLE + " " + JWT_ONLY_NOTE$4,
|
|
32364
32837
|
tags: ["AI"],
|
|
32365
32838
|
auth: "jwtOnly",
|
|
32366
32839
|
pathParams: PendingActionParamSchema,
|
|
@@ -32415,7 +32888,7 @@ defineEndpoint({
|
|
|
32415
32888
|
path: "/api/v1/pending-actions/{questId}/deny",
|
|
32416
32889
|
operationId: "denyPendingAction",
|
|
32417
32890
|
summary: "Deny an agent action",
|
|
32418
|
-
description: "Declines the tool call an agent is waiting on; nothing runs. " + LIFECYCLE + " " + JWT_ONLY_NOTE$
|
|
32891
|
+
description: "Declines the tool call an agent is waiting on; nothing runs. " + LIFECYCLE + " " + JWT_ONLY_NOTE$4,
|
|
32419
32892
|
tags: ["AI"],
|
|
32420
32893
|
auth: "jwtOnly",
|
|
32421
32894
|
pathParams: PendingActionParamSchema,
|
|
@@ -32453,13 +32926,13 @@ defineEndpoint({
|
|
|
32453
32926
|
body: REQUEST_EXAMPLE
|
|
32454
32927
|
}
|
|
32455
32928
|
});
|
|
32456
|
-
const JWT_ONLY_NOTE$
|
|
32929
|
+
const JWT_ONLY_NOTE$3 = "Authenticate with a JWT access token of the signed-in user. A brief is readable only by the user it was composed for; anyone else gets `404`, exactly like a missing brief. Nothing in a push notification authorizes this call. ";
|
|
32457
32930
|
defineEndpoint({
|
|
32458
32931
|
method: "post",
|
|
32459
32932
|
path: "/api/v1/briefs",
|
|
32460
32933
|
operationId: "composeBrief",
|
|
32461
32934
|
summary: "Compose a brief",
|
|
32462
|
-
description: "Asks the assistant to compose a brief of what happened since the last one, what it handled and what needs a decision. Composition is asynchronous: the response is the brief in `composing` status, and a `brief_ready` push (or polling `GET /api/v1/briefs/{id}`) signals `ready` or `failed`. Idempotent while a brief is composing: the same brief is returned instead of starting another. " + JWT_ONLY_NOTE$
|
|
32935
|
+
description: "Asks the assistant to compose a brief of what happened since the last one, what it handled and what needs a decision. Composition is asynchronous: the response is the brief in `composing` status, and a `brief_ready` push (or polling `GET /api/v1/briefs/{id}`) signals `ready` or `failed`. Idempotent while a brief is composing: the same brief is returned instead of starting another. " + JWT_ONLY_NOTE$3,
|
|
32463
32936
|
tags: ["AI"],
|
|
32464
32937
|
auth: "jwtOnly",
|
|
32465
32938
|
responses: {
|
|
@@ -32486,7 +32959,7 @@ defineEndpoint({
|
|
|
32486
32959
|
path: "/api/v1/briefs/follow-ups",
|
|
32487
32960
|
operationId: "composeFollowUpBrief",
|
|
32488
32961
|
summary: "Compose follow-ups from a dictated memo",
|
|
32489
|
-
description: "Turns a dictated memo (the transcript of a voice note after a meeting or call) into a brief whose decisions propose follow-ups: action items, a follow-up email draft and reminders, each carrying `followUp` in `pending` state. Nothing is sent or scheduled until you approve a decision. Composition is asynchronous like `POST /api/v1/briefs`: the response is the brief in `composing` status, then a `brief_ready` push (or polling `GET /api/v1/briefs/{id}`) signals `ready` or `failed`. Every call starts a new brief, and a follow-up brief does not change the window the next activity brief covers. " + JWT_ONLY_NOTE$
|
|
32962
|
+
description: "Turns a dictated memo (the transcript of a voice note after a meeting or call) into a brief whose decisions propose follow-ups: action items, a follow-up email draft and reminders, each carrying `followUp` in `pending` state. Nothing is sent or scheduled until you approve a decision. Composition is asynchronous like `POST /api/v1/briefs`: the response is the brief in `composing` status, then a `brief_ready` push (or polling `GET /api/v1/briefs/{id}`) signals `ready` or `failed`. Every call starts a new brief, and a follow-up brief does not change the window the next activity brief covers. " + JWT_ONLY_NOTE$3,
|
|
32490
32963
|
tags: ["AI"],
|
|
32491
32964
|
auth: "jwtOnly",
|
|
32492
32965
|
request: BriefFollowUpRequestSchema,
|
|
@@ -32522,7 +32995,7 @@ defineEndpoint({
|
|
|
32522
32995
|
path: "/api/v1/briefs",
|
|
32523
32996
|
operationId: "listBriefs",
|
|
32524
32997
|
summary: "List briefs",
|
|
32525
|
-
description: "Lists your most recent briefs (up to 20), newest first. A brief composed from a dictated memo is not listed; read it by id. " + JWT_ONLY_NOTE$
|
|
32998
|
+
description: "Lists your most recent briefs (up to 20), newest first. A brief composed from a dictated memo is not listed; read it by id. " + JWT_ONLY_NOTE$3,
|
|
32526
32999
|
tags: ["AI"],
|
|
32527
33000
|
auth: "jwtOnly",
|
|
32528
33001
|
responses: {
|
|
@@ -32549,7 +33022,7 @@ defineEndpoint({
|
|
|
32549
33022
|
path: "/api/v1/briefs/{id}",
|
|
32550
33023
|
operationId: "getBrief",
|
|
32551
33024
|
summary: "Get a brief",
|
|
32552
|
-
description: "Reads one brief. Decision items that reference an agent approval carry its `questId` and `pendingActionTs`; answer it through the pending-actions endpoints. Items triaged from an ingested email carry a `source`, and an email decision may carry a `draftReply` for you to review; nothing sends it. " + JWT_ONLY_NOTE$
|
|
33025
|
+
description: "Reads one brief. Decision items that reference an agent approval carry its `questId` and `pendingActionTs`; answer it through the pending-actions endpoints. Items triaged from an ingested email carry a `source`, and an email decision may carry a `draftReply` for you to review; nothing sends it. " + JWT_ONLY_NOTE$3,
|
|
32553
33026
|
tags: ["AI"],
|
|
32554
33027
|
auth: "jwtOnly",
|
|
32555
33028
|
pathParams: BriefIdParamSchema,
|
|
@@ -32724,7 +33197,7 @@ defineEndpoint({
|
|
|
32724
33197
|
path: "/api/v1/briefs/{id}/decisions/{decisionId}/reply",
|
|
32725
33198
|
operationId: "replyToBriefDecision",
|
|
32726
33199
|
summary: "Reply to a brief question",
|
|
32727
|
-
description: "Answers a decision item that carries a `question`: the reply is sent to the agent as your next message in that notebook, starting an agent run. A question can be answered from the brief once; a second reply, or one after the conversation moved on (`state` other than `open`), is `409` with `errorCode: \"question_closed\"`. A decision that is an approval is `404` here; answer it through the pending-actions endpoints. " + JWT_ONLY_NOTE$
|
|
33200
|
+
description: "Answers a decision item that carries a `question`: the reply is sent to the agent as your next message in that notebook, starting an agent run. A question can be answered from the brief once; a second reply, or one after the conversation moved on (`state` other than `open`), is `409` with `errorCode: \"question_closed\"`. A decision that is an approval is `404` here; answer it through the pending-actions endpoints. " + JWT_ONLY_NOTE$3,
|
|
32728
33201
|
tags: ["AI"],
|
|
32729
33202
|
auth: "jwtOnly",
|
|
32730
33203
|
pathParams: BriefDecisionParamsSchema,
|
|
@@ -32795,7 +33268,7 @@ defineEndpoint({
|
|
|
32795
33268
|
path: "/api/v1/briefs/{id}/decisions/{decisionId}",
|
|
32796
33269
|
operationId: "editBriefDecision",
|
|
32797
33270
|
summary: "Edit a proposed follow-up",
|
|
32798
|
-
description: "Changes a follow-up decision (one carrying `followUp`) while it is still `pending`: `text` on any kind, `draftReply` fields only on a `followUpEmail`, `remindAt` only on a `reminder`. The response is the updated decision. Once the follow-up is approved or dismissed it cannot change; that is `409` with `errorCode: \"decision_closed\"`. " + JWT_ONLY_NOTE$
|
|
33271
|
+
description: "Changes a follow-up decision (one carrying `followUp`) while it is still `pending`: `text` on any kind, `draftReply` fields only on a `followUpEmail`, `remindAt` only on a `reminder`. The response is the updated decision. Once the follow-up is approved or dismissed it cannot change; that is `409` with `errorCode: \"decision_closed\"`. " + JWT_ONLY_NOTE$3,
|
|
32799
33272
|
tags: ["AI"],
|
|
32800
33273
|
auth: "jwtOnly",
|
|
32801
33274
|
pathParams: BriefDecisionParamsSchema,
|
|
@@ -32822,7 +33295,7 @@ defineEndpoint({
|
|
|
32822
33295
|
path: "/api/v1/briefs/{id}/decisions/{decisionId}/resolve",
|
|
32823
33296
|
operationId: "resolveBriefDecision",
|
|
32824
33297
|
summary: "Approve or dismiss a proposed follow-up",
|
|
32825
|
-
description: "Approves or dismisses a `pending` follow-up decision, once; the response is the updated decision. Approving records your approval and nothing more: the server never sends a `followUpEmail` (hand the approved `draftReply` to the device mail app) and needs `draftReply.to` to be an email address first. An approved `reminder` needs a `remindAt` and is listed in the first brief composed at or after it; with a brief schedule on, the next scheduled brief is moved earlier to that time. A second approve or dismiss is `409` with `errorCode: \"decision_closed\"`. " + JWT_ONLY_NOTE$
|
|
33298
|
+
description: "Approves or dismisses a `pending` follow-up decision, once; the response is the updated decision. Approving records your approval and nothing more: the server never sends a `followUpEmail` (hand the approved `draftReply` to the device mail app) and needs `draftReply.to` to be an email address first. An approved `reminder` needs a `remindAt` and is listed in the first brief composed at or after it; with a brief schedule on, the next scheduled brief is moved earlier to that time. A second approve or dismiss is `409` with `errorCode: \"decision_closed\"`. " + JWT_ONLY_NOTE$3,
|
|
32826
33299
|
tags: ["AI"],
|
|
32827
33300
|
auth: "jwtOnly",
|
|
32828
33301
|
pathParams: BriefDecisionParamsSchema,
|
|
@@ -33135,13 +33608,13 @@ defineEndpoint({
|
|
|
33135
33608
|
body: { status: "confirmed" }
|
|
33136
33609
|
}
|
|
33137
33610
|
});
|
|
33138
|
-
const JWT_ONLY_NOTE$
|
|
33611
|
+
const JWT_ONLY_NOTE$2 = "Authenticate with a JWT access token only: the token is bound to the signed-in session that registers it, and API keys have no session. ";
|
|
33139
33612
|
defineEndpoint({
|
|
33140
33613
|
method: "post",
|
|
33141
33614
|
path: "/api/v1/push-tokens",
|
|
33142
33615
|
operationId: "registerPushToken",
|
|
33143
33616
|
summary: "Register a device push token",
|
|
33144
|
-
description: "Registers a push token for the signed-in device so the server can notify it. Idempotent: re-registering the same token refreshes it and rebinds it to the calling user and session, which is how a token moves when a different account signs in on the same device. The token is removed automatically when the registering session ends. `platform` selects the delivery service: `ios` (APNs) or `android` (FCM; send `production` as the environment). " + JWT_ONLY_NOTE$
|
|
33617
|
+
description: "Registers a push token for the signed-in device so the server can notify it. Idempotent: re-registering the same token refreshes it and rebinds it to the calling user and session, which is how a token moves when a different account signs in on the same device. The token is removed automatically when the registering session ends. `platform` selects the delivery service: `ios` (APNs) or `android` (FCM; send `production` as the environment). " + JWT_ONLY_NOTE$2 + "A token with no session claim (legacy access token) is refused with `401`; sign in again.",
|
|
33145
33618
|
tags: ["Account"],
|
|
33146
33619
|
auth: "jwtOnly",
|
|
33147
33620
|
request: PushTokenRegisterRequestSchema,
|
|
@@ -33182,7 +33655,7 @@ defineEndpoint({
|
|
|
33182
33655
|
path: "/api/v1/push-tokens",
|
|
33183
33656
|
operationId: "unregisterPushToken",
|
|
33184
33657
|
summary: "Unregister a device push token",
|
|
33185
|
-
description: "Removes a push token so the server stops notifying it. Succeeds whether or not the token was registered, so a client can call it unconditionally on sign-out. Only the token owner can remove it: a token registered by another user is left in place and the call still succeeds. " + JWT_ONLY_NOTE$
|
|
33658
|
+
description: "Removes a push token so the server stops notifying it. Succeeds whether or not the token was registered, so a client can call it unconditionally on sign-out. Only the token owner can remove it: a token registered by another user is left in place and the call still succeeds. " + JWT_ONLY_NOTE$2,
|
|
33186
33659
|
tags: ["Account"],
|
|
33187
33660
|
auth: "jwtOnly",
|
|
33188
33661
|
request: PushTokenUnregisterRequestSchema,
|
|
@@ -35909,11 +36382,11 @@ defineEndpoint({
|
|
|
35909
36382
|
path: "/api/v1/data-lakes",
|
|
35910
36383
|
operationId: "listDataLakes",
|
|
35911
36384
|
summary: "List data lakes",
|
|
35912
|
-
description: "Lists the data lakes the caller can reach as a member: lakes they own, lakes shared with them through an organization or an access grant, public lakes, and the built-in lakes their plan entitles them to. Platform-administrator reach is deliberately NOT applied here, so an admin key lists its owner's own lakes rather than every lake on the platform. Only `draft` and `active` lakes are listed. Cursor-paginated (see the pagination convention): pass `next_cursor` back as `cursor` until it is `null`.",
|
|
36385
|
+
description: "Lists the data lakes the caller can reach as a member: lakes they own, lakes shared with them through an organization or an access grant, public lakes, and the built-in lakes their plan entitles them to. Each lake carries `access_reason`, which says why it is listed. By default every public lake is listed, followed or not; pass `public_lakes=followed` to drop public lakes you do not follow. Platform-administrator reach is deliberately NOT applied here, so an admin key lists its owner's own lakes rather than every lake on the platform. Only `draft` and `active` lakes are listed. Cursor-paginated (see the pagination convention): pass `next_cursor` back as `cursor` until it is `null`.",
|
|
35913
36386
|
tags: ["Data Lakes"],
|
|
35914
36387
|
auth: "apiKeyOrJwt",
|
|
35915
36388
|
scopes: DATA_LAKE_READ_API_KEY_SCOPES,
|
|
35916
|
-
queryParams:
|
|
36389
|
+
queryParams: ListDataLakesQuerySchema,
|
|
35917
36390
|
emitsRateLimitHeaders: true,
|
|
35918
36391
|
responses: {
|
|
35919
36392
|
200: {
|
|
@@ -35925,7 +36398,7 @@ defineEndpoint({
|
|
|
35925
36398
|
schema: ScopeForbiddenErrorSchema
|
|
35926
36399
|
},
|
|
35927
36400
|
422: {
|
|
35928
|
-
description: "`limit` is out of range, or `cursor` is malformed or was issued by a different endpoint. A cursor is opaque: pass back exactly the `next_cursor` you were given.",
|
|
36401
|
+
description: "`limit` is out of range, `public_lakes` is not `all` or `followed`, or `cursor` is malformed or was issued by a different endpoint. A cursor is opaque: pass back exactly the `next_cursor` you were given.",
|
|
35929
36402
|
schema: ApiErrorSchema
|
|
35930
36403
|
},
|
|
35931
36404
|
429: {
|
|
@@ -36138,6 +36611,111 @@ defineEndpoint({
|
|
|
36138
36611
|
}
|
|
36139
36612
|
}
|
|
36140
36613
|
});
|
|
36614
|
+
defineEndpoint({
|
|
36615
|
+
method: "post",
|
|
36616
|
+
path: "/api/v1/data-lakes/{id}/follow",
|
|
36617
|
+
operationId: "followDataLake",
|
|
36618
|
+
summary: "Follow a public data lake",
|
|
36619
|
+
description: `Follows a public, active lake the caller can read, so the assistant can use it without being pointed at it where following is enabled. Takes no body. Idempotent: following a lake already followed succeeds and changes nothing. Takes the lake id, not its slug. Following is the caller's own choice and is not recorded in the lake's History. Following is recorded whether or not this deployment has following enabled; where it is not, a follow changes nothing a caller can observe until it is.`,
|
|
36620
|
+
tags: ["Data Lakes"],
|
|
36621
|
+
auth: "apiKeyOrJwt",
|
|
36622
|
+
scopes: DATA_LAKE_WRITE_API_KEY_SCOPES,
|
|
36623
|
+
pathParams: DataLakeIdParamSchema,
|
|
36624
|
+
emitsRateLimitHeaders: true,
|
|
36625
|
+
responses: {
|
|
36626
|
+
200: {
|
|
36627
|
+
description: "The caller follows the lake.",
|
|
36628
|
+
schema: DataLakeFollowResponseSchema
|
|
36629
|
+
},
|
|
36630
|
+
403: {
|
|
36631
|
+
description: `The API key lacks \`datalake:write\`, ${FEATURE_DISABLED_NOTE$1}.`,
|
|
36632
|
+
schema: ScopeForbiddenErrorSchema
|
|
36633
|
+
},
|
|
36634
|
+
404: {
|
|
36635
|
+
description: "No public, active lake with that id is visible to the caller. A private lake, a draft or archived lake, a lake the caller cannot read, an unknown id and a malformed id all get this same 404.",
|
|
36636
|
+
schema: ApiErrorSchema
|
|
36637
|
+
},
|
|
36638
|
+
429: {
|
|
36639
|
+
description: "Per-user rate limit exceeded.",
|
|
36640
|
+
schema: ApiErrorSchema
|
|
36641
|
+
}
|
|
36642
|
+
},
|
|
36643
|
+
codeSample: {
|
|
36644
|
+
authToken: "b4m_live_<key>",
|
|
36645
|
+
streaming: false,
|
|
36646
|
+
body: {}
|
|
36647
|
+
}
|
|
36648
|
+
});
|
|
36649
|
+
defineEndpoint({
|
|
36650
|
+
method: "delete",
|
|
36651
|
+
path: "/api/v1/data-lakes/{id}/follow",
|
|
36652
|
+
operationId: "unfollowDataLake",
|
|
36653
|
+
summary: "Unfollow a data lake",
|
|
36654
|
+
description: "Stops following a lake. Succeeds for any well-formed lake id, including a lake the caller does not follow or cannot see, and checks no lake access, so it reveals nothing about the id. Takes the lake id, not its slug: a slug or malformed id gets the same not-found error as follow. Unfollowing never removes a lake the caller reaches some other way, such as their own lake or one shared with them.",
|
|
36655
|
+
tags: ["Data Lakes"],
|
|
36656
|
+
auth: "apiKeyOrJwt",
|
|
36657
|
+
scopes: DATA_LAKE_WRITE_API_KEY_SCOPES,
|
|
36658
|
+
pathParams: DataLakeIdParamSchema,
|
|
36659
|
+
emitsRateLimitHeaders: true,
|
|
36660
|
+
responses: {
|
|
36661
|
+
200: {
|
|
36662
|
+
description: "The caller does not follow the lake.",
|
|
36663
|
+
schema: DataLakeFollowResponseSchema
|
|
36664
|
+
},
|
|
36665
|
+
403: {
|
|
36666
|
+
description: `The API key lacks \`datalake:write\`, ${FEATURE_DISABLED_NOTE$1}.`,
|
|
36667
|
+
schema: ScopeForbiddenErrorSchema
|
|
36668
|
+
},
|
|
36669
|
+
404: {
|
|
36670
|
+
description: "The id is not a well-formed lake id, such as a slug. A well-formed id never gets this 404.",
|
|
36671
|
+
schema: ApiErrorSchema
|
|
36672
|
+
},
|
|
36673
|
+
429: {
|
|
36674
|
+
description: "Per-user rate limit exceeded.",
|
|
36675
|
+
schema: ApiErrorSchema
|
|
36676
|
+
}
|
|
36677
|
+
},
|
|
36678
|
+
codeSample: {
|
|
36679
|
+
authToken: "b4m_live_<key>",
|
|
36680
|
+
streaming: false,
|
|
36681
|
+
body: {}
|
|
36682
|
+
}
|
|
36683
|
+
});
|
|
36684
|
+
defineEndpoint({
|
|
36685
|
+
method: "get",
|
|
36686
|
+
path: "/api/v1/public-data-lakes",
|
|
36687
|
+
operationId: "listPublicDataLakes",
|
|
36688
|
+
summary: "Discover public data lakes",
|
|
36689
|
+
description: "Lists the public, active lakes the caller can find, ordered by name, to choose one to follow. A public lake restricted to an access tag or entitlement is listed only to callers who hold it. The owner is shown by display name, never by email. `search` narrows to lakes whose name or description contains it. Cursor-paginated (see the pagination convention): pass `next_cursor` back as `cursor` with the same `search` until it is `null`. `follower_count`, `is_followed` and `trusted_sites` are present only on deployments where following is enabled.",
|
|
36690
|
+
tags: ["Data Lakes"],
|
|
36691
|
+
auth: "apiKeyOrJwt",
|
|
36692
|
+
scopes: DATA_LAKE_READ_API_KEY_SCOPES,
|
|
36693
|
+
queryParams: ListPublicDataLakesQuerySchema,
|
|
36694
|
+
emitsRateLimitHeaders: true,
|
|
36695
|
+
responses: {
|
|
36696
|
+
200: {
|
|
36697
|
+
description: "One page of public lakes, ordered by name.",
|
|
36698
|
+
schema: ListPublicDataLakesResponseSchema
|
|
36699
|
+
},
|
|
36700
|
+
403: {
|
|
36701
|
+
description: `The API key holds none of \`datalake:read\`, \`datalake:write\` or \`datalake:query\`, ${FEATURE_DISABLED_NOTE$1}.`,
|
|
36702
|
+
schema: ScopeForbiddenErrorSchema
|
|
36703
|
+
},
|
|
36704
|
+
422: {
|
|
36705
|
+
description: "`limit` is out of range, `search` is empty or too long, or `cursor` is malformed or was issued by a different endpoint. A cursor is opaque: pass back exactly the `next_cursor` you were given.",
|
|
36706
|
+
schema: ApiErrorSchema
|
|
36707
|
+
},
|
|
36708
|
+
429: {
|
|
36709
|
+
description: "Per-user rate limit exceeded.",
|
|
36710
|
+
schema: ApiErrorSchema
|
|
36711
|
+
}
|
|
36712
|
+
},
|
|
36713
|
+
codeSample: {
|
|
36714
|
+
authToken: "b4m_live_<key>",
|
|
36715
|
+
streaming: false,
|
|
36716
|
+
body: {}
|
|
36717
|
+
}
|
|
36718
|
+
});
|
|
36141
36719
|
/**
|
|
36142
36720
|
* Lake research over the public API: saved research configs, runs, the proposal review queue and
|
|
36143
36721
|
* the config-change history. Each route is the `/api/v1` twin of an SPA route under
|
|
@@ -36333,6 +36911,54 @@ defineEndpoint({
|
|
|
36333
36911
|
body: UPDATE_CONFIG_EXAMPLE
|
|
36334
36912
|
}
|
|
36335
36913
|
});
|
|
36914
|
+
const MOVE_SITE_EXAMPLE = {
|
|
36915
|
+
domain: "example.com",
|
|
36916
|
+
list: "blocked"
|
|
36917
|
+
};
|
|
36918
|
+
defineEndpoint({
|
|
36919
|
+
method: "post",
|
|
36920
|
+
path: "/api/v1/data-lakes/{id}/research/configs/{config_id}/sites",
|
|
36921
|
+
operationId: "moveDataLakeResearchSite",
|
|
36922
|
+
summary: "Move a site between research lists",
|
|
36923
|
+
description: "Puts one site on a config's Always use (`trusted`), Ask me first (`review`) or Never use (`blocked`) list, taking it off the other two, or takes it off all three (`none`). Only the three lists change, so one site can be moved without resending the rest of the config. A move that changes nothing succeeds and records nothing. Each move appears in the lake's History and can usually be undone there.",
|
|
36924
|
+
tags: ["Data Lake Research"],
|
|
36925
|
+
auth: "apiKeyOrJwt",
|
|
36926
|
+
scopes: DATA_LAKE_WRITE_API_KEY_SCOPES,
|
|
36927
|
+
pathParams: ResearchConfigParamSchema,
|
|
36928
|
+
request: MoveResearchSiteRequestSchema,
|
|
36929
|
+
requestExample: MOVE_SITE_EXAMPLE,
|
|
36930
|
+
emitsRateLimitHeaders: true,
|
|
36931
|
+
responses: {
|
|
36932
|
+
200: {
|
|
36933
|
+
description: "The config with its updated lists.",
|
|
36934
|
+
schema: ResearchConfigResponseSchema
|
|
36935
|
+
},
|
|
36936
|
+
400: {
|
|
36937
|
+
description: "The move is refused and nothing changed. The message says why: `domain` is not a site address, the target list already holds its maximum, a parent domain is on Never use and already covers the site, the move would leave the config with no site it may search, or it would let unreviewed results in from a site that is not safe to admit automatically.",
|
|
36938
|
+
schema: ApiErrorSchema
|
|
36939
|
+
},
|
|
36940
|
+
403: {
|
|
36941
|
+
description: WRITE_FORBIDDEN$5,
|
|
36942
|
+
schema: ScopeForbiddenErrorSchema
|
|
36943
|
+
},
|
|
36944
|
+
404: {
|
|
36945
|
+
description: `${NOT_VISIBLE_LAKE} The same 404 answers a config that does not exist in this lake.`,
|
|
36946
|
+
schema: ApiErrorSchema
|
|
36947
|
+
},
|
|
36948
|
+
422: {
|
|
36949
|
+
description: BODY_422$2,
|
|
36950
|
+
schema: ApiErrorSchema
|
|
36951
|
+
},
|
|
36952
|
+
429: {
|
|
36953
|
+
description: RATE_LIMITED$3,
|
|
36954
|
+
schema: ApiErrorSchema
|
|
36955
|
+
}
|
|
36956
|
+
},
|
|
36957
|
+
codeSample: {
|
|
36958
|
+
...codeSample$2,
|
|
36959
|
+
body: MOVE_SITE_EXAMPLE
|
|
36960
|
+
}
|
|
36961
|
+
});
|
|
36336
36962
|
defineEndpoint({
|
|
36337
36963
|
method: "delete",
|
|
36338
36964
|
path: "/api/v1/data-lakes/{id}/research/configs/{config_id}",
|
|
@@ -40079,6 +40705,522 @@ defineEndpoint({
|
|
|
40079
40705
|
body: {}
|
|
40080
40706
|
}
|
|
40081
40707
|
});
|
|
40708
|
+
const DNS_LABEL_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
40709
|
+
const RESERVED_IDNA_PATTERN = /^..--/;
|
|
40710
|
+
const IPV4_LOOKING_PATTERN = /^(?:[0-9]+|0x[0-9a-f]*)$/;
|
|
40711
|
+
/**
|
|
40712
|
+
* An installed app's id, which is also the host of its origin. It must survive a URL host parse
|
|
40713
|
+
* unchanged, so it is a lowercase DNS label that no parser would rewrite as IDNA or IPv4.
|
|
40714
|
+
* Minted by the server; a raw ObjectId is valid unless it happens to be all digits.
|
|
40715
|
+
*/
|
|
40716
|
+
const AppIdSchema = z$1.string().regex(DNS_LABEL_PATTERN, "App id must be a lowercase hostname label (a-z, 0-9, inner hyphens, 1-63 chars)").refine((value) => !RESERVED_IDNA_PATTERN.test(value), "App id must not use a reserved IDNA prefix").refine((value) => !IPV4_LOOKING_PATTERN.test(value), "App id must not parse as an IPv4 number").brand();
|
|
40717
|
+
const ObjectIdStringSchema$5 = z$1.string().regex(/^[a-f0-9]{24}$/, "Not a valid id");
|
|
40718
|
+
/** Artifact versions are positive integers (see ArtifactTypes `version`). */
|
|
40719
|
+
const ArtifactVersionNumberSchema = z$1.int().positive();
|
|
40720
|
+
/** Wire timestamps are ISO 8601 strings with an offset. */
|
|
40721
|
+
const IsoTimestampSchema = z$1.iso.datetime({ offset: true });
|
|
40722
|
+
/** True when no two items share a key; linear in the list length. */
|
|
40723
|
+
function hasUniqueKeys(items, key) {
|
|
40724
|
+
return new Set(items.map(key)).size === items.length;
|
|
40725
|
+
}
|
|
40726
|
+
z$1.enum([
|
|
40727
|
+
"browser",
|
|
40728
|
+
"abilities",
|
|
40729
|
+
"machine"
|
|
40730
|
+
]);
|
|
40731
|
+
const AppFileAccessSchema = z$1.enum(["read", "read_write"]);
|
|
40732
|
+
/**
|
|
40733
|
+
* A capability as an app's manifest REQUESTS it: the kind, plus the mode the app needs. It names
|
|
40734
|
+
* no user resources; those are chosen at consent time and live on the grant.
|
|
40735
|
+
*
|
|
40736
|
+
* Adding a capability: a variant here and in AppGrantedCapabilitySchema, its tier in
|
|
40737
|
+
* APP_CAPABILITY_TIER and its case in appGrantCovers (the compiler flags the last two).
|
|
40738
|
+
*/
|
|
40739
|
+
const AppCapabilityRequestSchema = z$1.discriminatedUnion("kind", [
|
|
40740
|
+
z$1.object({ kind: z$1.literal("notifications") }),
|
|
40741
|
+
z$1.object({ kind: z$1.literal("tray") }),
|
|
40742
|
+
z$1.object({ kind: z$1.literal("global_shortcuts") }),
|
|
40743
|
+
z$1.object({ kind: z$1.literal("always_on_top") }),
|
|
40744
|
+
z$1.object({ kind: z$1.literal("llm") }),
|
|
40745
|
+
z$1.object({ kind: z$1.literal("connectors") }),
|
|
40746
|
+
z$1.object({ kind: z$1.literal("run_programs") }),
|
|
40747
|
+
z$1.object({
|
|
40748
|
+
kind: z$1.literal("file_system"),
|
|
40749
|
+
access: AppFileAccessSchema
|
|
40750
|
+
})
|
|
40751
|
+
]);
|
|
40752
|
+
AppCapabilityRequestSchema.options.map((option) => option.shape.kind.value);
|
|
40753
|
+
/**
|
|
40754
|
+
* A folder the user picked for file access. `root_id` is an opaque handle; the absolute path
|
|
40755
|
+
* behind it stays on the device that picked it and is never sent to the server, so another
|
|
40756
|
+
* device asks the user to pick again.
|
|
40757
|
+
*/
|
|
40758
|
+
const AppFileRootSchema = z$1.object({
|
|
40759
|
+
root_id: z$1.string().min(1).max(128),
|
|
40760
|
+
label: z$1.string().min(1).max(200)
|
|
40761
|
+
});
|
|
40762
|
+
/** How far `run_programs` reaches. Only `unrestricted` exists today; narrower scopes are additive. */
|
|
40763
|
+
const AppProgramScopeSchema = z$1.discriminatedUnion("type", [z$1.object({ type: z$1.literal("unrestricted") })]);
|
|
40764
|
+
/**
|
|
40765
|
+
* A capability as the user GRANTED it: the request's kind and mode plus the scope the user chose.
|
|
40766
|
+
* Kinds without a scope are identical to their request.
|
|
40767
|
+
*/
|
|
40768
|
+
const AppGrantedCapabilitySchema = z$1.discriminatedUnion("kind", [
|
|
40769
|
+
z$1.object({ kind: z$1.literal("notifications") }),
|
|
40770
|
+
z$1.object({ kind: z$1.literal("tray") }),
|
|
40771
|
+
z$1.object({ kind: z$1.literal("global_shortcuts") }),
|
|
40772
|
+
z$1.object({ kind: z$1.literal("always_on_top") }),
|
|
40773
|
+
z$1.object({ kind: z$1.literal("llm") }),
|
|
40774
|
+
z$1.object({
|
|
40775
|
+
kind: z$1.literal("connectors"),
|
|
40776
|
+
connector_ids: z$1.array(z$1.string().min(1).max(128)).min(1).max(100).refine((ids) => hasUniqueKeys(ids, (id) => id), "Each connector may be granted once")
|
|
40777
|
+
}),
|
|
40778
|
+
z$1.object({
|
|
40779
|
+
kind: z$1.literal("run_programs"),
|
|
40780
|
+
scope: AppProgramScopeSchema
|
|
40781
|
+
}),
|
|
40782
|
+
z$1.object({
|
|
40783
|
+
kind: z$1.literal("file_system"),
|
|
40784
|
+
access: AppFileAccessSchema,
|
|
40785
|
+
roots: z$1.array(AppFileRootSchema).min(1).max(20).refine((roots) => hasUniqueKeys(roots, (root) => root.root_id), "Each root may be granted once")
|
|
40786
|
+
})
|
|
40787
|
+
]);
|
|
40788
|
+
const ONE_PER_KIND$1 = "Each capability kind may appear at most once";
|
|
40789
|
+
/** A manifest's requested capabilities: at most one per kind. */
|
|
40790
|
+
const AppCapabilityRequestSetSchema = z$1.array(AppCapabilityRequestSchema).refine((requests) => hasUniqueKeys(requests, (request) => request.kind), ONE_PER_KIND$1);
|
|
40791
|
+
/** A set of granted capabilities: at most one per kind. */
|
|
40792
|
+
const AppGrantedCapabilitySetSchema = z$1.array(AppGrantedCapabilitySchema).refine((grants) => hasUniqueKeys(grants, (grant) => grant.kind), ONE_PER_KIND$1);
|
|
40793
|
+
const AppBridgeApiVersionSchema = z$1.int().min(1);
|
|
40794
|
+
/**
|
|
40795
|
+
* A file path inside an app bundle, relative to the app origin root: forward slashes, no leading
|
|
40796
|
+
* slash, no empty, `.` or `..` segments. Served as `b4m-app://<appId>/<path>`.
|
|
40797
|
+
*/
|
|
40798
|
+
const AppBundlePathSchema = z$1.string().min(1).max(512).regex(/^[\x20-\x22\x24\x26-\x3e\x40-\x5b\x5d-\x7e]+$/, "Bundle path must be printable ASCII without \\, ?, # or %").refine((path) => path.split("/").every((segment) => segment !== "" && segment !== "." && segment !== ".."), "Bundle path must be relative, with no empty, \".\" or \"..\" segments");
|
|
40799
|
+
const NonBlankStringSchema = (max) => z$1.string().max(max).regex(/\S/, "Must not be blank");
|
|
40800
|
+
/** An app's manifest, built into its bundle from a pinned artifact version. */
|
|
40801
|
+
const AppManifestSchema = z$1.object({
|
|
40802
|
+
manifest_version: z$1.literal(1),
|
|
40803
|
+
api_version: AppBridgeApiVersionSchema,
|
|
40804
|
+
name: NonBlankStringSchema(80),
|
|
40805
|
+
description: NonBlankStringSchema(500).optional(),
|
|
40806
|
+
/** Bundle-relative path to the app icon (SVG or PNG); absent means the host draws a default. */
|
|
40807
|
+
icon: AppBundlePathSchema.optional(),
|
|
40808
|
+
/** Bundle-relative path of the HTML document the app window opens. */
|
|
40809
|
+
entry: AppBundlePathSchema,
|
|
40810
|
+
capabilities: AppCapabilityRequestSetSchema
|
|
40811
|
+
});
|
|
40812
|
+
/**
|
|
40813
|
+
* A content hash as `<algorithm>:<lowercase hex digest>`. Only sha256 today; the prefix lets a
|
|
40814
|
+
* later algorithm be added without ambiguity.
|
|
40815
|
+
*/
|
|
40816
|
+
const AppContentHashSchema = z$1.string().regex(/^sha256:[0-9a-f]{64}$/, "Content hash must be sha256:<64 hex chars>");
|
|
40817
|
+
const APP_BUNDLE_MAX_FILES = 1e3;
|
|
40818
|
+
const AppBundleFileSchema = z$1.object({
|
|
40819
|
+
path: AppBundlePathSchema,
|
|
40820
|
+
size: z$1.int().nonnegative(),
|
|
40821
|
+
hash: AppContentHashSchema,
|
|
40822
|
+
content_type: z$1.string().min(1).max(255)
|
|
40823
|
+
});
|
|
40824
|
+
/**
|
|
40825
|
+
* An immutable app bundle built from one pinned artifact version. `hash` identifies the bundle
|
|
40826
|
+
* by content (computeAppBundleHash over manifest and files; artifact id and version are not part
|
|
40827
|
+
* of it), and is how installs and grants reference it.
|
|
40828
|
+
*/
|
|
40829
|
+
const AppBundleDescriptorSchema = z$1.object({
|
|
40830
|
+
format_version: z$1.literal(1),
|
|
40831
|
+
hash: AppContentHashSchema,
|
|
40832
|
+
artifact_id: ObjectIdStringSchema$5,
|
|
40833
|
+
artifact_version: ArtifactVersionNumberSchema,
|
|
40834
|
+
manifest: AppManifestSchema,
|
|
40835
|
+
files: z$1.array(AppBundleFileSchema).min(1).max(APP_BUNDLE_MAX_FILES)
|
|
40836
|
+
}).superRefine((bundle, ctx) => {
|
|
40837
|
+
const paths = /* @__PURE__ */ new Set();
|
|
40838
|
+
bundle.files.forEach((file, index) => {
|
|
40839
|
+
if (paths.has(file.path)) ctx.addIssue({
|
|
40840
|
+
code: "custom",
|
|
40841
|
+
message: `Duplicate bundle path: ${file.path}`,
|
|
40842
|
+
path: [
|
|
40843
|
+
"files",
|
|
40844
|
+
index,
|
|
40845
|
+
"path"
|
|
40846
|
+
]
|
|
40847
|
+
});
|
|
40848
|
+
paths.add(file.path);
|
|
40849
|
+
});
|
|
40850
|
+
const { entry, icon } = bundle.manifest;
|
|
40851
|
+
if (!paths.has(entry)) ctx.addIssue({
|
|
40852
|
+
code: "custom",
|
|
40853
|
+
message: "Manifest entry is not in the bundle",
|
|
40854
|
+
path: ["manifest", "entry"]
|
|
40855
|
+
});
|
|
40856
|
+
if (icon !== void 0 && !paths.has(icon)) ctx.addIssue({
|
|
40857
|
+
code: "custom",
|
|
40858
|
+
message: "Manifest icon is not in the bundle",
|
|
40859
|
+
path: ["manifest", "icon"]
|
|
40860
|
+
});
|
|
40861
|
+
});
|
|
40862
|
+
/** Who made a change to an install. */
|
|
40863
|
+
const AppActorSchema = z$1.discriminatedUnion("kind", [
|
|
40864
|
+
z$1.object({
|
|
40865
|
+
kind: z$1.literal("user"),
|
|
40866
|
+
user_id: ObjectIdStringSchema$5
|
|
40867
|
+
}),
|
|
40868
|
+
z$1.object({
|
|
40869
|
+
kind: z$1.literal("org_admin"),
|
|
40870
|
+
user_id: ObjectIdStringSchema$5
|
|
40871
|
+
}),
|
|
40872
|
+
z$1.object({ kind: z$1.literal("system") })
|
|
40873
|
+
]);
|
|
40874
|
+
/** One capability the user approved, who approved it, and the bundle they reviewed. */
|
|
40875
|
+
const AppCapabilityGrantSchema = z$1.object({
|
|
40876
|
+
capability: AppGrantedCapabilitySchema,
|
|
40877
|
+
granted_at: IsoTimestampSchema,
|
|
40878
|
+
granted_by: AppActorSchema,
|
|
40879
|
+
bundle_hash: AppContentHashSchema
|
|
40880
|
+
});
|
|
40881
|
+
/** A request the user turned down, kept so the same request is not asked again on every update. */
|
|
40882
|
+
const AppCapabilityDeclineSchema = z$1.object({
|
|
40883
|
+
capability: AppCapabilityRequestSchema,
|
|
40884
|
+
declined_at: IsoTimestampSchema,
|
|
40885
|
+
bundle_hash: AppContentHashSchema
|
|
40886
|
+
});
|
|
40887
|
+
/**
|
|
40888
|
+
* `active` launches. `disabled` is reversible: the install comes back when the condition ends.
|
|
40889
|
+
* `revoked` is terminal; the record stays so every device can see it and remove the app.
|
|
40890
|
+
*/
|
|
40891
|
+
const InstalledAppStatusSchema = z$1.discriminatedUnion("state", [
|
|
40892
|
+
z$1.object({ state: z$1.literal("active") }),
|
|
40893
|
+
z$1.object({
|
|
40894
|
+
state: z$1.literal("disabled"),
|
|
40895
|
+
reason: z$1.enum([
|
|
40896
|
+
"organization_setting",
|
|
40897
|
+
"access_lost",
|
|
40898
|
+
"org_admin_request"
|
|
40899
|
+
]),
|
|
40900
|
+
disabled_at: IsoTimestampSchema,
|
|
40901
|
+
disabled_by: AppActorSchema
|
|
40902
|
+
}),
|
|
40903
|
+
z$1.object({
|
|
40904
|
+
state: z$1.literal("revoked"),
|
|
40905
|
+
reason: z$1.enum([
|
|
40906
|
+
"user_request",
|
|
40907
|
+
"org_admin_request",
|
|
40908
|
+
"artifact_deleted",
|
|
40909
|
+
"policy"
|
|
40910
|
+
]),
|
|
40911
|
+
revoked_at: IsoTimestampSchema,
|
|
40912
|
+
revoked_by: AppActorSchema
|
|
40913
|
+
})
|
|
40914
|
+
]);
|
|
40915
|
+
const ONE_PER_KIND = "Each capability kind may appear at most once";
|
|
40916
|
+
/**
|
|
40917
|
+
* The server's record of one installed app; desktop only caches it. Personal and organization
|
|
40918
|
+
* installs share this shape: `organization_id` is null for a personal install. The record pins an
|
|
40919
|
+
* artifact version and the bundle built from it; an update moves both together.
|
|
40920
|
+
*/
|
|
40921
|
+
const InstalledAppSchema = z$1.object({
|
|
40922
|
+
app_id: AppIdSchema,
|
|
40923
|
+
owner_id: ObjectIdStringSchema$5,
|
|
40924
|
+
organization_id: ObjectIdStringSchema$5.nullable(),
|
|
40925
|
+
artifact_id: ObjectIdStringSchema$5,
|
|
40926
|
+
artifact_version: ArtifactVersionNumberSchema,
|
|
40927
|
+
bundle_hash: AppContentHashSchema,
|
|
40928
|
+
/** The pinned manifest's name, so a list renders without fetching bundles. */
|
|
40929
|
+
name: AppManifestSchema.shape.name,
|
|
40930
|
+
grants: z$1.array(AppCapabilityGrantSchema).refine((grants) => hasUniqueKeys(grants, (grant) => grant.capability.kind), ONE_PER_KIND),
|
|
40931
|
+
declined: z$1.array(AppCapabilityDeclineSchema).refine((declines) => hasUniqueKeys(declines, (decline) => decline.capability.kind), ONE_PER_KIND),
|
|
40932
|
+
status: InstalledAppStatusSchema,
|
|
40933
|
+
created_at: IsoTimestampSchema,
|
|
40934
|
+
updated_at: IsoTimestampSchema
|
|
40935
|
+
}).refine((record) => {
|
|
40936
|
+
const grantedKinds = new Set(record.grants.map((grant) => grant.capability.kind));
|
|
40937
|
+
return record.declined.every((decline) => !grantedKinds.has(decline.capability.kind));
|
|
40938
|
+
}, {
|
|
40939
|
+
message: "A capability kind cannot be both granted and declined",
|
|
40940
|
+
path: ["declined"]
|
|
40941
|
+
});
|
|
40942
|
+
const InstallAppRequestSchema = z$1.object({
|
|
40943
|
+
artifact_id: ObjectIdStringSchema$5,
|
|
40944
|
+
/** The version the user reviewed; the install pins it and never silently moves to a later one. */
|
|
40945
|
+
artifact_version: ArtifactVersionNumberSchema,
|
|
40946
|
+
/**
|
|
40947
|
+
* The capabilities the user approved, with the scopes they chose. Each must cover a request in
|
|
40948
|
+
* the pinned bundle's manifest; the server records every other request as declined.
|
|
40949
|
+
*/
|
|
40950
|
+
grants: AppGrantedCapabilitySetSchema
|
|
40951
|
+
});
|
|
40952
|
+
const InstalledAppIdParamSchema = z$1.object({ appId: z$1.string().min(1).max(63) });
|
|
40953
|
+
const InstalledAppListResponseSchema = paginatedResponseSchema(InstalledAppSchema);
|
|
40954
|
+
/**
|
|
40955
|
+
* Where to download each bundle file. URLs are short-lived; a client verifies every download
|
|
40956
|
+
* against the file's hash in `bundle.files` before serving it.
|
|
40957
|
+
*/
|
|
40958
|
+
const AppBundleFetchResponseSchema = z$1.object({
|
|
40959
|
+
bundle: AppBundleDescriptorSchema,
|
|
40960
|
+
downloads: z$1.array(z$1.object({
|
|
40961
|
+
path: AppBundlePathSchema,
|
|
40962
|
+
url: z$1.url({ protocol: /^https$/ })
|
|
40963
|
+
})).max(APP_BUNDLE_MAX_FILES),
|
|
40964
|
+
expires_at: IsoTimestampSchema
|
|
40965
|
+
}).refine(({ bundle, downloads }) => {
|
|
40966
|
+
const downloadPaths = new Set(downloads.map((download) => download.path));
|
|
40967
|
+
return downloadPaths.size === downloads.length && downloads.length === bundle.files.length && bundle.files.every((file) => downloadPaths.has(file.path));
|
|
40968
|
+
}, {
|
|
40969
|
+
message: "Downloads must list each bundle file exactly once",
|
|
40970
|
+
path: ["downloads"]
|
|
40971
|
+
});
|
|
40972
|
+
/**
|
|
40973
|
+
* Installed apps: an HTML or React artifact installed from the desktop app as a standalone app.
|
|
40974
|
+
* These contracts are not in CONTRACTS yet; they are registered (and so published in the spec)
|
|
40975
|
+
* together with their handlers.
|
|
40976
|
+
*/
|
|
40977
|
+
const JWT_ONLY_NOTE = "Authenticate with a JWT access token only: installing and running apps is a signed-in desktop feature, and API keys cannot call it. ";
|
|
40978
|
+
const INSTALL_EXAMPLE = {
|
|
40979
|
+
artifact_id: EXAMPLE_RESOURCE_ID,
|
|
40980
|
+
artifact_version: 3,
|
|
40981
|
+
grants: [{ kind: "notifications" }]
|
|
40982
|
+
};
|
|
40983
|
+
defineEndpoint({
|
|
40984
|
+
method: "post",
|
|
40985
|
+
path: "/api/v1/installed-apps",
|
|
40986
|
+
operationId: "installApp",
|
|
40987
|
+
summary: "Install an artifact as an app",
|
|
40988
|
+
description: "Installs one version of an HTML or React artifact as an app for the caller and builds its bundle. The install pins `artifact_version`; later versions never replace it without a new consent. `grants` lists the capabilities the user approved, and each must be one the bundle's manifest requests, and every request left out is recorded as declined. An install belongs to the caller's organization when the artifact does, and is personal otherwise. Building the bundle happens inside this call: a version that cannot be built is a `422`, and a build that fails for a server-side reason is a `500`. " + JWT_ONLY_NOTE,
|
|
40989
|
+
tags: ["Artifacts"],
|
|
40990
|
+
auth: "jwtOnly",
|
|
40991
|
+
request: InstallAppRequestSchema,
|
|
40992
|
+
requestExample: INSTALL_EXAMPLE,
|
|
40993
|
+
responses: {
|
|
40994
|
+
201: {
|
|
40995
|
+
description: "The new install.",
|
|
40996
|
+
schema: InstalledAppSchema
|
|
40997
|
+
},
|
|
40998
|
+
400: {
|
|
40999
|
+
description: "`grants` includes a capability the bundle's manifest does not request.",
|
|
41000
|
+
schema: ApiErrorSchema
|
|
41001
|
+
},
|
|
41002
|
+
401: {
|
|
41003
|
+
description: "Missing or invalid JWT.",
|
|
41004
|
+
schema: ApiErrorSchema
|
|
41005
|
+
},
|
|
41006
|
+
403: {
|
|
41007
|
+
description: "Installed apps are turned off for the organization, or a requested capability needs an artifact the caller owns or that belongs to the caller's organization.",
|
|
41008
|
+
schema: ApiErrorSchema
|
|
41009
|
+
},
|
|
41010
|
+
404: {
|
|
41011
|
+
description: "No artifact with that id and version is visible to the caller.",
|
|
41012
|
+
schema: ApiErrorSchema
|
|
41013
|
+
},
|
|
41014
|
+
409: {
|
|
41015
|
+
description: "The caller already has an install of this artifact that is not revoked. A disabled install counts: it comes back when its condition ends, so a second one would split the app's data.",
|
|
41016
|
+
schema: ApiErrorSchema
|
|
41017
|
+
},
|
|
41018
|
+
422: {
|
|
41019
|
+
description: "The body is invalid, or the artifact version cannot be built into an app bundle (for example, its code does not compile).",
|
|
41020
|
+
schema: ApiErrorSchema
|
|
41021
|
+
},
|
|
41022
|
+
429: {
|
|
41023
|
+
description: "Per-user rate limit exceeded.",
|
|
41024
|
+
schema: ApiErrorSchema
|
|
41025
|
+
}
|
|
41026
|
+
},
|
|
41027
|
+
codeSample: {
|
|
41028
|
+
authToken: "<access_token>",
|
|
41029
|
+
streaming: false,
|
|
41030
|
+
body: INSTALL_EXAMPLE
|
|
41031
|
+
}
|
|
41032
|
+
});
|
|
41033
|
+
defineEndpoint({
|
|
41034
|
+
method: "get",
|
|
41035
|
+
path: "/api/v1/installed-apps",
|
|
41036
|
+
operationId: "listInstalledApps",
|
|
41037
|
+
summary: "List installed apps",
|
|
41038
|
+
description: "Lists the caller's installs in every state (active, disabled and revoked), newest first, so a desktop client can reconcile its local cache. " + JWT_ONLY_NOTE,
|
|
41039
|
+
tags: ["Artifacts"],
|
|
41040
|
+
auth: "jwtOnly",
|
|
41041
|
+
queryParams: PaginationQuerySchema,
|
|
41042
|
+
responses: {
|
|
41043
|
+
200: {
|
|
41044
|
+
description: "One page of installs.",
|
|
41045
|
+
schema: InstalledAppListResponseSchema
|
|
41046
|
+
},
|
|
41047
|
+
401: {
|
|
41048
|
+
description: "Missing or invalid JWT.",
|
|
41049
|
+
schema: ApiErrorSchema
|
|
41050
|
+
},
|
|
41051
|
+
429: {
|
|
41052
|
+
description: "Per-user rate limit exceeded.",
|
|
41053
|
+
schema: ApiErrorSchema
|
|
41054
|
+
}
|
|
41055
|
+
},
|
|
41056
|
+
codeSample: {
|
|
41057
|
+
authToken: "<access_token>",
|
|
41058
|
+
streaming: false
|
|
41059
|
+
}
|
|
41060
|
+
});
|
|
41061
|
+
defineEndpoint({
|
|
41062
|
+
method: "delete",
|
|
41063
|
+
path: "/api/v1/installed-apps/{appId}",
|
|
41064
|
+
operationId: "revokeInstalledApp",
|
|
41065
|
+
summary: "Revoke an installed app",
|
|
41066
|
+
description: "Revokes an install. Revoking is terminal and idempotent: the record stays, in the `revoked` state, so every device can see it and remove the app. The owner can revoke their own install; an organization admin can revoke any install in the organization. " + JWT_ONLY_NOTE,
|
|
41067
|
+
tags: ["Artifacts"],
|
|
41068
|
+
auth: "jwtOnly",
|
|
41069
|
+
pathParams: InstalledAppIdParamSchema,
|
|
41070
|
+
responses: {
|
|
41071
|
+
200: {
|
|
41072
|
+
description: "The install, now revoked.",
|
|
41073
|
+
schema: InstalledAppSchema
|
|
41074
|
+
},
|
|
41075
|
+
401: {
|
|
41076
|
+
description: "Missing or invalid JWT.",
|
|
41077
|
+
schema: ApiErrorSchema
|
|
41078
|
+
},
|
|
41079
|
+
404: {
|
|
41080
|
+
description: "No install with that id is visible to the caller.",
|
|
41081
|
+
schema: ApiErrorSchema
|
|
41082
|
+
},
|
|
41083
|
+
429: {
|
|
41084
|
+
description: "Per-user rate limit exceeded.",
|
|
41085
|
+
schema: ApiErrorSchema
|
|
41086
|
+
}
|
|
41087
|
+
},
|
|
41088
|
+
codeSample: {
|
|
41089
|
+
authToken: "<access_token>",
|
|
41090
|
+
streaming: false
|
|
41091
|
+
}
|
|
41092
|
+
});
|
|
41093
|
+
defineEndpoint({
|
|
41094
|
+
method: "get",
|
|
41095
|
+
path: "/api/v1/installed-apps/{appId}/bundle",
|
|
41096
|
+
operationId: "getInstalledAppBundle",
|
|
41097
|
+
summary: "Get an installed app's bundle",
|
|
41098
|
+
description: "Returns the immutable bundle the install pins: its descriptor (manifest, per-file hashes) and short-lived download URLs for its files. Verify each file against its hash before serving it. " + JWT_ONLY_NOTE,
|
|
41099
|
+
tags: ["Artifacts"],
|
|
41100
|
+
auth: "jwtOnly",
|
|
41101
|
+
pathParams: InstalledAppIdParamSchema,
|
|
41102
|
+
responses: {
|
|
41103
|
+
200: {
|
|
41104
|
+
description: "The bundle and where to download its files.",
|
|
41105
|
+
schema: AppBundleFetchResponseSchema
|
|
41106
|
+
},
|
|
41107
|
+
401: {
|
|
41108
|
+
description: "Missing or invalid JWT.",
|
|
41109
|
+
schema: ApiErrorSchema
|
|
41110
|
+
},
|
|
41111
|
+
403: {
|
|
41112
|
+
description: "The install is revoked or disabled.",
|
|
41113
|
+
schema: ApiErrorSchema
|
|
41114
|
+
},
|
|
41115
|
+
404: {
|
|
41116
|
+
description: "No install with that id is visible to the caller.",
|
|
41117
|
+
schema: ApiErrorSchema
|
|
41118
|
+
},
|
|
41119
|
+
429: {
|
|
41120
|
+
description: "Per-user rate limit exceeded.",
|
|
41121
|
+
schema: ApiErrorSchema
|
|
41122
|
+
}
|
|
41123
|
+
},
|
|
41124
|
+
codeSample: {
|
|
41125
|
+
authToken: "<access_token>",
|
|
41126
|
+
streaming: false
|
|
41127
|
+
}
|
|
41128
|
+
});
|
|
41129
|
+
z$1.object({
|
|
41130
|
+
manifest: z$1.looseObject({ capabilities: z$1.array(z$1.looseObject({ kind: z$1.string() })) }),
|
|
41131
|
+
files: z$1.array(z$1.looseObject({ path: z$1.string() }))
|
|
41132
|
+
}).extend({ hash: z$1.string() });
|
|
41133
|
+
z$1.object({ state: z$1.enum([
|
|
41134
|
+
"active",
|
|
41135
|
+
"disabled",
|
|
41136
|
+
"revoked"
|
|
41137
|
+
]) });
|
|
41138
|
+
z$1.object({
|
|
41139
|
+
app_id: z$1.unknown(),
|
|
41140
|
+
name: z$1.unknown(),
|
|
41141
|
+
status: z$1.unknown()
|
|
41142
|
+
});
|
|
41143
|
+
z$1.object({
|
|
41144
|
+
data: z$1.array(z$1.unknown()),
|
|
41145
|
+
next_cursor: z$1.string().nullable()
|
|
41146
|
+
});
|
|
41147
|
+
const envelopeBase = {
|
|
41148
|
+
apiVersion: AppBridgeApiVersionSchema,
|
|
41149
|
+
id: z$1.string().min(1).max(64)
|
|
41150
|
+
};
|
|
41151
|
+
const NoParamsSchema = z$1.object({}).strict();
|
|
41152
|
+
const AppBridgeHandshakeParamsSchema = z$1.object({
|
|
41153
|
+
/** Every bridge API version the page can speak. */
|
|
41154
|
+
apiVersions: z$1.array(AppBridgeApiVersionSchema).min(1).max(16) });
|
|
41155
|
+
const AppBridgeHandshakeResultSchema = z$1.object({
|
|
41156
|
+
/** The version both sides use from here on. */
|
|
41157
|
+
apiVersion: AppBridgeApiVersionSchema,
|
|
41158
|
+
/** The methods this app may call, given its grants. */
|
|
41159
|
+
methods: z$1.array(z$1.string().min(1))
|
|
41160
|
+
});
|
|
41161
|
+
const AppBridgeAppInfoResultSchema = z$1.object({
|
|
41162
|
+
appId: AppIdSchema,
|
|
41163
|
+
name: AppManifestSchema.shape.name,
|
|
41164
|
+
artifactId: ObjectIdStringSchema$5,
|
|
41165
|
+
artifactVersion: ArtifactVersionNumberSchema,
|
|
41166
|
+
/**
|
|
41167
|
+
* What the user GRANTED this install, with scopes; not what the manifest requested. Folder
|
|
41168
|
+
* labels and connector ids are visible to the page on purpose: an app shows which it can use.
|
|
41169
|
+
*/
|
|
41170
|
+
grantedCapabilities: AppGrantedCapabilitySetSchema
|
|
41171
|
+
});
|
|
41172
|
+
z$1.discriminatedUnion("method", [z$1.object({
|
|
41173
|
+
...envelopeBase,
|
|
41174
|
+
method: z$1.literal("bridge.handshake"),
|
|
41175
|
+
params: AppBridgeHandshakeParamsSchema
|
|
41176
|
+
}), z$1.object({
|
|
41177
|
+
...envelopeBase,
|
|
41178
|
+
method: z$1.literal("app.info"),
|
|
41179
|
+
params: NoParamsSchema
|
|
41180
|
+
})]);
|
|
41181
|
+
const successBase = {
|
|
41182
|
+
...envelopeBase,
|
|
41183
|
+
ok: z$1.literal(true)
|
|
41184
|
+
};
|
|
41185
|
+
const AppBridgeSuccessResponseSchema = z$1.discriminatedUnion("method", [z$1.object({
|
|
41186
|
+
...successBase,
|
|
41187
|
+
method: z$1.literal("bridge.handshake"),
|
|
41188
|
+
result: AppBridgeHandshakeResultSchema
|
|
41189
|
+
}), z$1.object({
|
|
41190
|
+
...successBase,
|
|
41191
|
+
method: z$1.literal("app.info"),
|
|
41192
|
+
result: AppBridgeAppInfoResultSchema
|
|
41193
|
+
})]);
|
|
41194
|
+
const AppBridgeErrorSchema = z$1.object({
|
|
41195
|
+
code: z$1.enum([
|
|
41196
|
+
"invalid_request",
|
|
41197
|
+
"unknown_method",
|
|
41198
|
+
"unsupported_api_version",
|
|
41199
|
+
"capability_not_granted",
|
|
41200
|
+
"user_declined",
|
|
41201
|
+
"internal"
|
|
41202
|
+
]),
|
|
41203
|
+
message: z$1.string().max(1e3)
|
|
41204
|
+
});
|
|
41205
|
+
/** A failed call. It carries no `method`, since an unknown or malformed method cannot be echoed. */
|
|
41206
|
+
const AppBridgeErrorResponseSchema = z$1.object({
|
|
41207
|
+
...envelopeBase,
|
|
41208
|
+
ok: z$1.literal(false),
|
|
41209
|
+
error: AppBridgeErrorSchema
|
|
41210
|
+
});
|
|
41211
|
+
z$1.union([AppBridgeSuccessResponseSchema, AppBridgeErrorResponseSchema]);
|
|
41212
|
+
z$1.object({
|
|
41213
|
+
...envelopeBase,
|
|
41214
|
+
progress: z$1.object({
|
|
41215
|
+
seq: z$1.int().nonnegative(),
|
|
41216
|
+
data: z$1.unknown()
|
|
41217
|
+
})
|
|
41218
|
+
});
|
|
41219
|
+
z$1.discriminatedUnion("event", [z$1.object({
|
|
41220
|
+
apiVersion: AppBridgeApiVersionSchema,
|
|
41221
|
+
event: z$1.literal("app.grantsChanged"),
|
|
41222
|
+
data: z$1.object({ grantedCapabilities: AppGrantedCapabilitySetSchema })
|
|
41223
|
+
})]);
|
|
40082
41224
|
/**
|
|
40083
41225
|
* The fence language the model writes to place an inline map of search-result places in a reply.
|
|
40084
41226
|
*
|
|
@@ -41558,7 +42700,9 @@ const shadowDetectionVerdictEntrySchema = z$1.object({
|
|
|
41558
42700
|
"automation"
|
|
41559
42701
|
]).optional(),
|
|
41560
42702
|
/** The account whose suspension or reinstatement recorded this entry; absent on reviews and older entries. */
|
|
41561
|
-
accountId: z$1.string().optional()
|
|
42703
|
+
accountId: z$1.string().optional(),
|
|
42704
|
+
/** The users bulk batch that recorded this entry; its undo removes the entry while it is still the latest. */
|
|
42705
|
+
batchId: z$1.string().optional()
|
|
41562
42706
|
});
|
|
41563
42707
|
const shadowDetectionItemSchema = z$1.object({
|
|
41564
42708
|
id: z$1.string(),
|
|
@@ -42363,6 +43507,11 @@ const stripWww = (hostname) => {
|
|
|
42363
43507
|
return rest.includes(".") ? rest : hostname;
|
|
42364
43508
|
};
|
|
42365
43509
|
/**
|
|
43510
|
+
* Dot-separated LDH labels; an IDN has already been punycoded to `xn--` by the URL parser. An inner
|
|
43511
|
+
* underscore is allowed because real source hosts use it and the URL parser accepts it.
|
|
43512
|
+
*/
|
|
43513
|
+
const HOSTNAME_PATTERN = /^[a-z0-9]([a-z0-9_-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9_-]*[a-z0-9])?)*$/;
|
|
43514
|
+
/**
|
|
42366
43515
|
* Reduce one free-text list entry to the hostname the source filter compares against, or '' when it
|
|
42367
43516
|
* cannot be one. The field arrives as a mix of `example.net`, `*.example.net`, `https://example.net/blog`
|
|
42368
43517
|
* and pasted URLs with a port or trailing dot. One `new URL` drops scheme, credentials, port, path and
|
|
@@ -42373,7 +43522,8 @@ const normalizeDomainEntry = (value) => {
|
|
|
42373
43522
|
const bare = value.trim().replace(/^[a-z][a-z0-9+.-]*:\/\//i, "").replace(/^[*.]+/, "");
|
|
42374
43523
|
if (!bare) return "";
|
|
42375
43524
|
try {
|
|
42376
|
-
|
|
43525
|
+
const hostname = new URL(`https://${bare}`).hostname.replace(/\.$/, "");
|
|
43526
|
+
return HOSTNAME_PATTERN.test(hostname) ? stripWww(hostname) : "";
|
|
42377
43527
|
} catch {
|
|
42378
43528
|
return "";
|
|
42379
43529
|
}
|
|
@@ -43614,7 +44764,7 @@ const VIEW_REGISTRY = [
|
|
|
43614
44764
|
id: "admin.security_dashboard",
|
|
43615
44765
|
section: "admin",
|
|
43616
44766
|
label: "Security Dashboard",
|
|
43617
|
-
description: "Security views: Incident (queues, alarms, payments), Firewall (traffic and blocked requests)
|
|
44767
|
+
description: "Security views: Incident (queues, alarms, payments), Firewall (traffic and blocked requests), Scans (scheduled security scan results) and Abuse controls (every abuse-limiting setting by group)",
|
|
43618
44768
|
navigationType: "tab",
|
|
43619
44769
|
target: "26",
|
|
43620
44770
|
keywords: [
|
|
@@ -44464,6 +45614,24 @@ const VIEW_REGISTRY = [
|
|
|
44464
45614
|
],
|
|
44465
45615
|
requiresAdmin: true
|
|
44466
45616
|
},
|
|
45617
|
+
{
|
|
45618
|
+
id: "admin.status_page",
|
|
45619
|
+
section: "admin",
|
|
45620
|
+
label: "Status page",
|
|
45621
|
+
description: "Run incidents on the public status page from draft to resolution, and pin or suppress a component state",
|
|
45622
|
+
navigationType: "tab",
|
|
45623
|
+
target: "86",
|
|
45624
|
+
keywords: [
|
|
45625
|
+
"status page",
|
|
45626
|
+
"incident",
|
|
45627
|
+
"outage",
|
|
45628
|
+
"maintenance",
|
|
45629
|
+
"publish",
|
|
45630
|
+
"pin",
|
|
45631
|
+
"component status"
|
|
45632
|
+
],
|
|
45633
|
+
requiresAdmin: true
|
|
45634
|
+
},
|
|
44467
45635
|
{
|
|
44468
45636
|
id: "admin.ai_operations",
|
|
44469
45637
|
section: "admin",
|
|
@@ -44833,6 +46001,9 @@ dayjs.extend(utc);
|
|
|
44833
46001
|
dayjs.extend(timezone);
|
|
44834
46002
|
dayjs.extend(relativeTime);
|
|
44835
46003
|
dayjs.extend(localizedFormat);
|
|
46004
|
+
function isAxiosError(error) {
|
|
46005
|
+
return typeof error === "object" && error !== null && error.isAxiosError === true;
|
|
46006
|
+
}
|
|
44836
46007
|
/**
|
|
44837
46008
|
* Default retryable errors for LLM API calls
|
|
44838
46009
|
*/
|
|
@@ -45020,18 +46191,20 @@ const ADMIN_PERMISSIONS = [
|
|
|
45020
46191
|
"users:export",
|
|
45021
46192
|
"settings:manage",
|
|
45022
46193
|
"models:curate",
|
|
46194
|
+
"analytics:read",
|
|
46195
|
+
"status:manage",
|
|
45023
46196
|
"credits:self_grant",
|
|
45024
46197
|
"credits:approve_self_grant"
|
|
45025
46198
|
];
|
|
45026
46199
|
const AdminPermissionSchema = z$1.enum(ADMIN_PERMISSIONS);
|
|
45027
46200
|
const AdminPermissionsSchema = z$1.array(AdminPermissionSchema).max(ADMIN_PERMISSIONS.length).refine((ids) => new Set(ids).size === ids.length, "Admin permissions must not repeat");
|
|
45028
46201
|
/**
|
|
45029
|
-
* Permissions
|
|
45030
|
-
*
|
|
46202
|
+
* Permissions only a holder can grant or revoke (assertCanChangeHolderGrantedPermissions), so a delegated admin
|
|
46203
|
+
* without one cannot hand it out. Holding one alone grants no admin access. Full admins hold them like any other.
|
|
45031
46204
|
*/
|
|
45032
|
-
const
|
|
45033
|
-
const
|
|
45034
|
-
ADMIN_PERMISSIONS.filter((permission) => !
|
|
46205
|
+
const HOLDER_GRANTED_ADMIN_PERMISSIONS = ["credits:self_grant", "credits:approve_self_grant"];
|
|
46206
|
+
const isHolderGrantedAdminPermission = (permission) => HOLDER_GRANTED_ADMIN_PERMISSIONS.includes(permission);
|
|
46207
|
+
ADMIN_PERMISSIONS.filter((permission) => !isHolderGrantedAdminPermission(permission));
|
|
45035
46208
|
const AdminRoleIdSchema = z$1.string().regex(/^[0-9a-f]{24}$/i, "Expected an id");
|
|
45036
46209
|
const AdminRoleIdsSchema = z$1.array(AdminRoleIdSchema).max(20).refine((ids) => new Set(ids.map((id) => id.toLowerCase())).size === ids.length, "Admin roles must not repeat");
|
|
45037
46210
|
z$1.object({
|
|
@@ -45653,4 +46826,4 @@ const logger = class Logger {
|
|
|
45653
46826
|
}.getInstance();
|
|
45654
46827
|
logger.setVerbose(process.env.B4M_VERBOSE === "1");
|
|
45655
46828
|
//#endregion
|
|
45656
|
-
export {
|
|
46829
|
+
export { RESEARCH_DROP_REASONS as $, supportedVoiceGenerationVendor as $t, DATA_LAKE_PROPOSAL_STATUSES as A, isExpectedToolError as At, LOCATION_MAP_LANGUAGE as B, obfuscateApiKey as Bt, CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS as C, getEmbeddingModelCapabilities as Ct, CompletionReasoningEffortSchema as D, hasDeliverablePinnedArtifact as Dt, ChatModels as E, googleMapsSearchUrl as Et, EMBEDDING_MODEL_CATALOG as F, isSupportedEmbeddingModel as Ft, ModelBackend as G, replacePromptVariables as Gt, MODEL_DECLINED_MESSAGE as H, planProgress as Ht, EMBEDDING_MODEL_IDS as I, isSupportedFabFileMimeType as It, OpenAIEmbeddingModel as J, servableEmbeddingDimensions as Jt, NotFoundError as K, resolveSettingDefinition as Kt, ExpectedToolError as L, isUserInitiatedAbort as Lt, DEGENERATE_FINISH_REASON as M, isPlaceholderImageSigningSecret as Mt, DecisionTextPartSchema as N, isProviderRefusalStopReason as Nt, CreateArtifactRequestSchema as O, isEarlyStop as Ot, DecisionsRequestSchema as P, isRetryableError as Pt, RESEARCH_COST_CEILING_MICRO_USD_LIMIT as Q, stripToolArtifactMarkup as Qt, ImageJobSchema as R, joinReplySlots as Rt, CONFIDENCE_GATE_MODES as S, generatedAudioResponseSchema as St, CUSTOM_MCP_DATA_NOTICE as T, getQuestErrorCode as Tt, MODEL_INFO_FIELD_GROUP_OF as U, questReplyText as Ut, LOW_CONFIDENCE_COMPLETION_MODES as V, planLeaves as Vt, McpServerName as W, reasoningChannelOf as Wt, PermissionDeniedError as X, splitEquals as Xt, PROMPT_TEXT_MAX as Y, signImageUrl as Yt, ProjectNameSchema as Z, stripDeliveredArtifactBlocks as Zt, AudioMimeType as _, APP_NAME as _n, createReasoningWithholder as _t, htmlFirstH1 as a, withRetry as an, RESEARCH_UNLISTED_SOURCES as at, BedrockEmbeddingModel as b, filterToolArtifactMarkup as bt, AGENT_QUEST_MANIFEST as c, DELEGATION_PAYLOAD_SCHEMA_NAME as cn, SupportedFabFileMimeTypes as ct, ARTIFACT_REMOVED_PLACEHOLDER as d, actorKindSchema as dn, VoyageAIEmbeddingModel as dt, tokenEstimateMultiplier as en, RESEARCH_FEED_URL_MAX_CHARS as et, AdminAiStoredConfigSchema as f, delegationPayloadSchema as fn, WORK_ITEM_STATUSES as ft, ArtifactTypeSchema as g, splitSkillMdFrontmatter as gn, createMutex as gt, ApiKeyType as h, readSkillMdSourceUrl as hn, completionsSupportsToolSearch as ht, htmlErrorTitle as i, visibleReplyText as in, RESEARCH_SOURCES as it, DEFAULT_TTS_PROVIDER as j, isPlaceholderApiKey as jt, CreateImageJobResponseSchema as k, isEnforceCreditsLocked as kt, AGENT_QUEST_MCP_URI as l, actorColorIndex as ln, UnprocessableEntityError as lt, ApiKeyScope as m, frontmatterHasSourceStamp as mn, buildPromptContext as mt, SESSION_ID_PATTERN as n, ttsRequestSchema as nn, RESEARCH_MIN_RELEVANCE_DEFAULT as nt, escapeArtifactBodyJson as o, withholdsReasoning as on, SEARCH_RESULT_CARDS_LANGUAGE as ot, AiAccessRefusedError as p, selfClaimedActorKindSchema as pn, assertAuthOriginMatchesApiKey as pt, OllamaEmbeddingModel as q, secureParameters as qt, isValidSessionId as r, ttsResponseTooLargeSchema as rn, RESEARCH_SCHEDULE_CADENCES as rt, AGENT_QUEST_ID as s, ACTOR_COLOR_SLOTS as sn, SLUG_OWNED_BY_OTHER as st, logger as t, ttsBase64ResponseSchema as tn, RESEARCH_ITEM_RULE_ACTIONS as tt, ARTIFACT_DELIVERED_PLACEHOLDER as u, actorKindMarker as un, VisibilitySchema as ut, BRIEFCASE_CATALOG_QUERIES as v, WEBSITE_URL as vn, createThinkMarkerEscaper as vt, CREDIT_DEDUCT_TRANSACTION_TYPES as w, getMcpProviderMetadata as wt, BriefcasePromptIdSchema as x, fromCliTodos as xt, BadGatewayError as y, escapeThinkMarkers as yt, ImageModels as z, normalizeDomainEntry as zt };
|