vercel-api-js 1.34.1 → 1.34.3

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.
@@ -4907,1128 +4907,8 @@ const userEventSchema = z__namespace.object({
4907
4907
  integrationName: z__namespace.string().optional(),
4908
4908
  integrationSlug: z__namespace.string(),
4909
4909
  newOwner: z__namespace.object({
4910
- abuse: z__namespace.object({
4911
- blockHistory: z__namespace.array(z__namespace.object({
4912
- abuseAgentRunId: z__namespace.string().optional().describe("Since October 2026. The abuse agent run whose verdict led to this block. Absent on blocks made before the field existed, even agent-led ones."),
4913
- action: z__namespace.enum([
4914
- "blocked",
4915
- "hard-blocked",
4916
- "soft-blocked",
4917
- "unblocked"
4918
- ]),
4919
- actor: z__namespace.string().optional(),
4920
- caseId: z__namespace.string().optional(),
4921
- comment: z__namespace.string().optional(),
4922
- createdAt: z__namespace.number(),
4923
- ineligibleForAppeal: z__namespace.union([
4924
- z__namespace.literal(false),
4925
- z__namespace.literal(true)
4926
- ]).optional(),
4927
- reason: z__namespace.string(),
4928
- statusCode: z__namespace.number().optional(),
4929
- threadId: z__namespace.string().optional().describe("Plain thread ID, recorded separately from `caseId`.")
4930
- })).optional().describe("Since June 2023"),
4931
- gitAuthHistory: z__namespace.array(z__namespace.string()).optional().describe("Since March 2022. Helps abuse checks by tracking git auths. Format: `<platform>:<detail>:<value>`"),
4932
- gitLineageBlocks: z__namespace.number().optional().describe("Since September 2023. How often did this owner trigger an actual git lineage deploy block?"),
4933
- gitLineageBlocksDry: z__namespace.number().optional().describe("Since September 2023. How often did this owner trigger a git lineage deploy block dry run?"),
4934
- history: z__namespace.array(z__namespace.object({
4935
- at: z__namespace.number(),
4936
- by: z__namespace.string(),
4937
- byId: z__namespace.string(),
4938
- reason: z__namespace.string(),
4939
- scanner: z__namespace.string()
4940
- })).optional().describe("(scanner history). Since November 2021. First element is newest."),
4941
- registeredShaBlock: z__namespace.object({
4942
- createdAt: z__namespace.string(),
4943
- createdBy: z__namespace.string(),
4944
- sha: z__namespace.string()
4945
- }).optional().describe("Since September 2026. The git SHA a non-cascading hard block of this owner auto-registered in the lineage blocklist, so unblocking can disable the row that block created. Lives on the owner rather than a project block because this registration path runs only when the block did not cascade, leaving the owner's single project unblocked and with no block record to carry it. Absent means the block registered nothing, which includes the case where registration was skipped because the SHA already belonged to an earlier block. Unblock must clear only what is named here."),
4946
- scanner: z__namespace.string().optional().describe("Since November 2021. Guides the abuse scanner in build container."),
4947
- scheduledBlock: z__namespace.object({
4948
- caseId: z__namespace.string().optional().describe("Absent from the automated evaluation path, which has no case."),
4949
- createdAt: z__namespace.number().describe("Unix ms timestamp of when the marker was written."),
4950
- executeAt: z__namespace.number().describe("Unix ms timestamp of the scheduled EventBridge execution."),
4951
- reason: z__namespace.string().describe("Violation reason (string value of the `Violation` enum)."),
4952
- scheduleName: z__namespace.string().optional().describe("EventBridge schedule name, persisted so the pending event can be cancelled."),
4953
- source: z__namespace.string().describe("What triggered the scheduled block (string value of `TeamBlockSource`).")
4954
- }).optional().describe('Since June 2026. A hard block that is scheduled (the delay varies by source; see `executeAt`) but not yet executed. Powers admin visibility, scheduler dedup, and cancellation. Cleared on execution or when the team is unblocked/reviewed before `executeAt`; the executor treats its absence as "block cancelled".'),
4955
- scheduledUnblockAt: z__namespace.string().optional().describe('Since December 2025. UTC timestamp string of when an auto-unblock is scheduled. Format: "Wed, 03 Dec 2025 20:32:13 GMT"'),
4956
- updatedAt: z__namespace.number().describe("Since November 2021"),
4957
- creationIp: z__namespace.string().optional(),
4958
- creationUserAgent: z__namespace.string().optional(),
4959
- removedPhoneNumbers: z__namespace.string().optional()
4960
- }).optional(),
4961
- acceptanceState: z__namespace.string().optional(),
4962
- acceptedAt: z__namespace.number().optional(),
4963
- activeDashboardViews: z__namespace.array(z__namespace.object({
4964
- favoritesViewPreference: z__namespace.enum([
4965
- "closed",
4966
- "open"
4967
- ]).nullish(),
4968
- recentsViewPreference: z__namespace.enum([
4969
- "closed",
4970
- "open"
4971
- ]).nullish(),
4972
- scopeId: z__namespace.string(),
4973
- viewPreference: z__namespace.enum([
4974
- "cards",
4975
- "list"
4976
- ]).nullish()
4977
- })).optional(),
4978
- avatar: z__namespace.string().optional(),
4979
- billing: z__namespace.object({
4980
- plan: z__namespace.enum([
4981
- "enterprise",
4982
- "hobby",
4983
- "pro"
4984
- ])
4985
- }),
4986
- blocked: z__namespace.number().nullable(),
4987
- blockReason: z__namespace.string().optional(),
4988
- created: z__namespace.number().optional(),
4989
- createdAt: z__namespace.number(),
4990
- credentials: z__namespace.array(z__namespace.union([
4991
- z__namespace.strictObject({
4992
- id: z__namespace.string(),
4993
- type: z__namespace.enum([
4994
- "apple",
4995
- "bitbucket",
4996
- "chatgpt",
4997
- "github-oauth",
4998
- "github-oauth-limited",
4999
- "gitlab",
5000
- "google",
5001
- "vercel"
5002
- ])
5003
- }),
5004
- z__namespace.strictObject({
5005
- host: z__namespace.string(),
5006
- id: z__namespace.string(),
5007
- type: z__namespace.enum([
5008
- "github-oauth-custom-host"
5009
- ])
5010
- })
5011
- ])).optional(),
5012
- customerId: z__namespace.string().nullish(),
5013
- dataCache: z__namespace.object({
5014
- excessBillingEnabled: z__namespace.union([
5015
- z__namespace.literal(false),
5016
- z__namespace.literal(true)
5017
- ]).optional()
5018
- }).optional(),
5019
- defaultTeamId: z__namespace.string().optional(),
5020
- deletedAt: z__namespace.number().nullish(),
5021
- deploymentSecret: z__namespace.string(),
5022
- dismissedTeams: z__namespace.array(z__namespace.string()).optional(),
5023
- dismissedToasts: z__namespace.array(z__namespace.object({
5024
- dismissals: z__namespace.array(z__namespace.object({
5025
- createdAt: z__namespace.number(),
5026
- scopeId: z__namespace.string()
5027
- })),
5028
- name: z__namespace.string()
5029
- })).optional(),
5030
- email: z__namespace.string(),
5031
- emailDomains: z__namespace.array(z__namespace.string()).optional(),
5032
- emailNotifications: z__namespace.object({
5033
- rules: z__namespace.object({}).catchall(z__namespace.object({
5034
- email: z__namespace.string()
5035
- })).optional()
5036
- }).optional(),
5037
- enablePreviewFeedback: z__namespace.enum([
5038
- "default",
5039
- "default-force",
5040
- "off",
5041
- "off-force",
5042
- "on",
5043
- "on-force"
5044
- ]).optional().describe("Whether the Vercel Toolbar is enabled for preview deployments."),
5045
- favoriteProjectsAndSpaces: z__namespace.array(z__namespace.object({
5046
- projectId: z__namespace.string(),
5047
- teamId: z__namespace.string()
5048
- })).optional(),
5049
- featureBlocks: z__namespace.object({
5050
- blob: z__namespace.union([
5051
- z__namespace.strictObject({
5052
- blockedFrom: z__namespace.number().optional(),
5053
- blockedUntil: z__namespace.number().optional(),
5054
- blockReason: z__namespace.enum([
5055
- "limits_exceeded"
5056
- ]),
5057
- updatedAt: z__namespace.number(),
5058
- overageReason: z__namespace.enum([
5059
- "analyticsUsage",
5060
- "artifacts",
5061
- "bandwidth",
5062
- "blobDataTransfer",
5063
- "blobTotalAdvancedRequests",
5064
- "blobTotalAvgSizeInBytes",
5065
- "blobTotalGetResponseObjectSizeInBytes",
5066
- "blobTotalSimpleRequests",
5067
- "connectDataTransfer",
5068
- "dataCacheRead",
5069
- "dataCacheWrite",
5070
- "edgeConfigRead",
5071
- "edgeConfigWrite",
5072
- "edgeFunctionExecutionUnits",
5073
- "edgeMiddlewareInvocations",
5074
- "edgeRequest",
5075
- "edgeRequestAdditionalCpuDuration",
5076
- "elasticConcurrencyBuildSlots",
5077
- "fastDataTransfer",
5078
- "fastOriginTransfer",
5079
- "fluidCpuDuration",
5080
- "fluidDuration",
5081
- "functionDuration",
5082
- "functionInvocation",
5083
- "imageOptimizationCacheRead",
5084
- "imageOptimizationCacheWrite",
5085
- "imageOptimizationTransformation",
5086
- "logDrainsVolume",
5087
- "monitoringMetric",
5088
- "observabilityEvent",
5089
- "onDemandConcurrencyMinutes",
5090
- "runtimeCacheRead",
5091
- "runtimeCacheWrite",
5092
- "serverlessFunctionExecution",
5093
- "sourceImages",
5094
- "wafOwaspExcessBytes",
5095
- "wafOwaspRequests",
5096
- "wafRateLimitRequest",
5097
- "webAnalyticsEvent"
5098
- ])
5099
- }),
5100
- z__namespace.strictObject({
5101
- blockedFrom: z__namespace.number().optional(),
5102
- blockedUntil: z__namespace.number().optional(),
5103
- blockReason: z__namespace.enum([
5104
- "admin_override",
5105
- "hard_blocked"
5106
- ]),
5107
- updatedAt: z__namespace.number()
5108
- })
5109
- ]).optional(),
5110
- connexForwardTriggers: z__namespace.object({
5111
- blockedFrom: z__namespace.number().optional(),
5112
- blockedUntil: z__namespace.number().optional(),
5113
- blockReason: z__namespace.enum([
5114
- "admin_override",
5115
- "hard_blocked",
5116
- "limits_exceeded"
5117
- ]),
5118
- updatedAt: z__namespace.number()
5119
- }).optional(),
5120
- connexTokenRequests: z__namespace.object({
5121
- blockedFrom: z__namespace.number().optional(),
5122
- blockedUntil: z__namespace.number().optional(),
5123
- blockReason: z__namespace.enum([
5124
- "admin_override",
5125
- "hard_blocked",
5126
- "limits_exceeded"
5127
- ]),
5128
- updatedAt: z__namespace.number()
5129
- }).optional(),
5130
- dataCache: z__namespace.object({
5131
- blockedFrom: z__namespace.number().optional(),
5132
- blockedUntil: z__namespace.number().optional(),
5133
- blockReason: z__namespace.enum([
5134
- "admin_override",
5135
- "hard_blocked",
5136
- "limits_exceeded"
5137
- ]),
5138
- updatedAt: z__namespace.number()
5139
- }).optional(),
5140
- imageOptimizationTransformation: z__namespace.object({
5141
- blockedFrom: z__namespace.number().optional(),
5142
- blockedUntil: z__namespace.number().optional(),
5143
- blockReason: z__namespace.enum([
5144
- "admin_override",
5145
- "hard_blocked",
5146
- "limits_exceeded"
5147
- ]),
5148
- updatedAt: z__namespace.number()
5149
- }).optional(),
5150
- kmsOperations: z__namespace.object({
5151
- blockedFrom: z__namespace.number().optional(),
5152
- blockedUntil: z__namespace.number().optional(),
5153
- blockReason: z__namespace.enum([
5154
- "admin_override",
5155
- "hard_blocked",
5156
- "limits_exceeded"
5157
- ]),
5158
- updatedAt: z__namespace.number()
5159
- }).optional(),
5160
- microfrontendsRequest: z__namespace.object({
5161
- blockedFrom: z__namespace.number().optional(),
5162
- blockedUntil: z__namespace.number().optional(),
5163
- blockReason: z__namespace.enum([
5164
- "admin_override",
5165
- "hard_blocked",
5166
- "limits_exceeded"
5167
- ]),
5168
- updatedAt: z__namespace.number()
5169
- }).optional(),
5170
- monitoring: z__namespace.object({
5171
- blockedFrom: z__namespace.number().optional(),
5172
- blockedUntil: z__namespace.number().optional(),
5173
- blockReason: z__namespace.enum([
5174
- "admin_override",
5175
- "hard_blocked",
5176
- "limits_exceeded"
5177
- ]),
5178
- updatedAt: z__namespace.number(),
5179
- blockType: z__namespace.enum([
5180
- "hard",
5181
- "soft"
5182
- ])
5183
- }).optional().describe("A soft block indicates a temporary pause in data collection (ex limit exceeded for the current cycle) A hard block indicates a stoppage in data collection that requires manual intervention (ex upgrading a pro trial)"),
5184
- observabilityPlus: z__namespace.object({
5185
- blockedFrom: z__namespace.number().optional(),
5186
- blockedUntil: z__namespace.number().optional(),
5187
- blockReason: z__namespace.enum([
5188
- "admin_override",
5189
- "hard_blocked",
5190
- "limits_exceeded"
5191
- ]),
5192
- updatedAt: z__namespace.number(),
5193
- blockType: z__namespace.enum([
5194
- "hard",
5195
- "soft"
5196
- ])
5197
- }).optional(),
5198
- postgres: z__namespace.union([
5199
- z__namespace.strictObject({
5200
- blockedFrom: z__namespace.number().optional(),
5201
- blockedUntil: z__namespace.number().optional(),
5202
- blockReason: z__namespace.enum([
5203
- "limits_exceeded"
5204
- ]),
5205
- updatedAt: z__namespace.number(),
5206
- overageReason: z__namespace.enum([
5207
- "analyticsUsage",
5208
- "artifacts",
5209
- "bandwidth",
5210
- "blobDataTransfer",
5211
- "blobTotalAdvancedRequests",
5212
- "blobTotalAvgSizeInBytes",
5213
- "blobTotalGetResponseObjectSizeInBytes",
5214
- "blobTotalSimpleRequests",
5215
- "connectDataTransfer",
5216
- "dataCacheRead",
5217
- "dataCacheWrite",
5218
- "edgeConfigRead",
5219
- "edgeConfigWrite",
5220
- "edgeFunctionExecutionUnits",
5221
- "edgeMiddlewareInvocations",
5222
- "edgeRequest",
5223
- "edgeRequestAdditionalCpuDuration",
5224
- "elasticConcurrencyBuildSlots",
5225
- "fastDataTransfer",
5226
- "fastOriginTransfer",
5227
- "fluidCpuDuration",
5228
- "fluidDuration",
5229
- "functionDuration",
5230
- "functionInvocation",
5231
- "imageOptimizationCacheRead",
5232
- "imageOptimizationCacheWrite",
5233
- "imageOptimizationTransformation",
5234
- "logDrainsVolume",
5235
- "monitoringMetric",
5236
- "observabilityEvent",
5237
- "onDemandConcurrencyMinutes",
5238
- "runtimeCacheRead",
5239
- "runtimeCacheWrite",
5240
- "serverlessFunctionExecution",
5241
- "sourceImages",
5242
- "wafOwaspExcessBytes",
5243
- "wafOwaspRequests",
5244
- "wafRateLimitRequest",
5245
- "webAnalyticsEvent"
5246
- ])
5247
- }),
5248
- z__namespace.strictObject({
5249
- blockedFrom: z__namespace.number().optional(),
5250
- blockedUntil: z__namespace.number().optional(),
5251
- blockReason: z__namespace.enum([
5252
- "admin_override",
5253
- "hard_blocked"
5254
- ]),
5255
- updatedAt: z__namespace.number()
5256
- })
5257
- ]).optional(),
5258
- redis: z__namespace.union([
5259
- z__namespace.strictObject({
5260
- blockedFrom: z__namespace.number().optional(),
5261
- blockedUntil: z__namespace.number().optional(),
5262
- blockReason: z__namespace.enum([
5263
- "limits_exceeded"
5264
- ]),
5265
- updatedAt: z__namespace.number(),
5266
- overageReason: z__namespace.enum([
5267
- "analyticsUsage",
5268
- "artifacts",
5269
- "bandwidth",
5270
- "blobDataTransfer",
5271
- "blobTotalAdvancedRequests",
5272
- "blobTotalAvgSizeInBytes",
5273
- "blobTotalGetResponseObjectSizeInBytes",
5274
- "blobTotalSimpleRequests",
5275
- "connectDataTransfer",
5276
- "dataCacheRead",
5277
- "dataCacheWrite",
5278
- "edgeConfigRead",
5279
- "edgeConfigWrite",
5280
- "edgeFunctionExecutionUnits",
5281
- "edgeMiddlewareInvocations",
5282
- "edgeRequest",
5283
- "edgeRequestAdditionalCpuDuration",
5284
- "elasticConcurrencyBuildSlots",
5285
- "fastDataTransfer",
5286
- "fastOriginTransfer",
5287
- "fluidCpuDuration",
5288
- "fluidDuration",
5289
- "functionDuration",
5290
- "functionInvocation",
5291
- "imageOptimizationCacheRead",
5292
- "imageOptimizationCacheWrite",
5293
- "imageOptimizationTransformation",
5294
- "logDrainsVolume",
5295
- "monitoringMetric",
5296
- "observabilityEvent",
5297
- "onDemandConcurrencyMinutes",
5298
- "runtimeCacheRead",
5299
- "runtimeCacheWrite",
5300
- "serverlessFunctionExecution",
5301
- "sourceImages",
5302
- "wafOwaspExcessBytes",
5303
- "wafOwaspRequests",
5304
- "wafRateLimitRequest",
5305
- "webAnalyticsEvent"
5306
- ])
5307
- }),
5308
- z__namespace.strictObject({
5309
- blockedFrom: z__namespace.number().optional(),
5310
- blockedUntil: z__namespace.number().optional(),
5311
- blockReason: z__namespace.enum([
5312
- "admin_override",
5313
- "hard_blocked"
5314
- ]),
5315
- updatedAt: z__namespace.number()
5316
- })
5317
- ]).optional(),
5318
- sandboxStorage: z__namespace.object({
5319
- blockedFrom: z__namespace.number().optional(),
5320
- blockedUntil: z__namespace.number().optional(),
5321
- blockReason: z__namespace.enum([
5322
- "admin_override",
5323
- "hard_blocked",
5324
- "limits_exceeded"
5325
- ]),
5326
- updatedAt: z__namespace.number()
5327
- }).optional(),
5328
- sourceImages: z__namespace.object({
5329
- blockedFrom: z__namespace.number().optional(),
5330
- blockedUntil: z__namespace.number().optional(),
5331
- blockReason: z__namespace.enum([
5332
- "admin_override",
5333
- "hard_blocked",
5334
- "limits_exceeded"
5335
- ]),
5336
- updatedAt: z__namespace.number()
5337
- }).optional(),
5338
- speedInsightsFree: z__namespace.object({
5339
- blockedFrom: z__namespace.number().optional(),
5340
- blockedUntil: z__namespace.number().optional(),
5341
- blockReason: z__namespace.enum([
5342
- "admin_override",
5343
- "hard_blocked",
5344
- "limits_exceeded"
5345
- ]),
5346
- updatedAt: z__namespace.number()
5347
- }).optional().describe("Pauses Speed Insights free data-point ingestion when the team-wide free allocation is exhausted. The block lasts at least 14 days and is extended while rolling usage stays above half of the allocation."),
5348
- tracing: z__namespace.object({
5349
- blockedFrom: z__namespace.number().optional(),
5350
- blockedUntil: z__namespace.number().optional(),
5351
- blockReason: z__namespace.enum([
5352
- "admin_override",
5353
- "hard_blocked",
5354
- "limits_exceeded"
5355
- ]),
5356
- updatedAt: z__namespace.number()
5357
- }).optional(),
5358
- vcr: z__namespace.object({
5359
- blockedFrom: z__namespace.number().optional(),
5360
- blockedUntil: z__namespace.number().optional(),
5361
- blockReason: z__namespace.enum([
5362
- "admin_override",
5363
- "hard_blocked",
5364
- "limits_exceeded"
5365
- ]),
5366
- updatedAt: z__namespace.number()
5367
- }).optional(),
5368
- webAnalytics: z__namespace.object({
5369
- blockedFrom: z__namespace.number().optional(),
5370
- blockedUntil: z__namespace.number().optional(),
5371
- blockReason: z__namespace.enum([
5372
- "admin_override",
5373
- "hard_blocked",
5374
- "limits_exceeded"
5375
- ]),
5376
- updatedAt: z__namespace.number(),
5377
- graceEmailSentAt: z__namespace.number().optional()
5378
- }).optional(),
5379
- workflowEvents: z__namespace.object({
5380
- blockedFrom: z__namespace.number().optional(),
5381
- blockedUntil: z__namespace.number().optional(),
5382
- blockReason: z__namespace.enum([
5383
- "admin_override",
5384
- "hard_blocked",
5385
- "limits_exceeded"
5386
- ]),
5387
- updatedAt: z__namespace.number()
5388
- }).optional(),
5389
- workflowStorageWrite: z__namespace.object({
5390
- blockedFrom: z__namespace.number().optional(),
5391
- blockedUntil: z__namespace.number().optional(),
5392
- blockReason: z__namespace.enum([
5393
- "admin_override",
5394
- "hard_blocked",
5395
- "limits_exceeded"
5396
- ]),
5397
- updatedAt: z__namespace.number()
5398
- }).optional()
5399
- }).optional().describe("Information about which features are blocked for a user. Blocks can be either soft (the user can still access the feature, but with a warning, e.g. prompting an upgrade) or hard (the user cannot access the feature at all)."),
5400
4910
  id: z__namespace.string(),
5401
- importFlowGitNamespace: z__namespace.union([
5402
- z__namespace.string(),
5403
- z__namespace.number()
5404
- ]).nullish(),
5405
- importFlowGitNamespaceId: z__namespace.union([
5406
- z__namespace.string(),
5407
- z__namespace.number()
5408
- ]).nullish(),
5409
- importFlowGitProvider: z__namespace.enum([
5410
- "bitbucket",
5411
- "cursor-origin",
5412
- "github",
5413
- "github-custom-host",
5414
- "github-limited",
5415
- "gitlab",
5416
- "vercel"
5417
- ]).nullish(),
5418
- isDomainReseller: z__namespace.union([
5419
- z__namespace.literal(false),
5420
- z__namespace.literal(true)
5421
- ]).optional(),
5422
- isEnterpriseManaged: z__namespace.union([
5423
- z__namespace.literal(false),
5424
- z__namespace.literal(true)
5425
- ]).optional().describe("Indicates that the underlying user entity is a managed user for the enterprise it's associated with The intention is that this field is only set to true for users that are provisioned by the enterprise which means that the domain associated with the user's email is the same domain associated with the team Allowing us to query information about the user's team at login time through the domain verification service"),
5426
- isMFAEnforced: z__namespace.union([
5427
- z__namespace.literal(false),
5428
- z__namespace.literal(true)
5429
- ]).optional().describe("Whether MFA is enforced for this user. Set to true when the user has a"),
5430
- isZeitPub: z__namespace.union([
5431
- z__namespace.literal(false),
5432
- z__namespace.literal(true)
5433
- ]).optional(),
5434
- maxActiveSlots: z__namespace.number().optional(),
5435
- maxTrials: z__namespace.number().optional().describe("Introduced 2022-04-19 Number of maximum trials to allocate to a user. When undefined, defaults to MAX_TRIALS in utils/api-teams/user-has-trial-available.ts. This is set to trialTeamIds + 1 by services/api-backoffice/src/handlers/add-additional-trial.ts."),
5436
- mfaConfiguration: z__namespace.object({
5437
- enabled: z__namespace.union([
5438
- z__namespace.literal(false),
5439
- z__namespace.literal(true)
5440
- ]),
5441
- enabledAt: z__namespace.number().optional(),
5442
- history: z__namespace.array(z__namespace.object({
5443
- action: z__namespace.enum([
5444
- "disabled",
5445
- "enabled"
5446
- ]).describe("The action that occurred"),
5447
- actorId: z__namespace.string().describe("ID of the actor who made the change - For user actions: the user's own ID - For admin actions: the admin's user ID"),
5448
- actorType: z__namespace.enum([
5449
- "admin",
5450
- "user"
5451
- ]).describe("Type of actor"),
5452
- method: z__namespace.enum([
5453
- "admin_removal",
5454
- "passkey",
5455
- "self_serve_recovery",
5456
- "totp",
5457
- "unknown",
5458
- "user_disabled"
5459
- ]).describe("Method used for the state change - 'totp': User set up TOTP authenticator - 'passkey': User registered a passkey - 'user_disabled': User disabled their own MFA - 'admin_removal': Admin removed MFA via backoffice - 'self_serve_recovery': User disabled their own MFA through the self-serve MFA disable recovery flow (a \"Locked Out User\" with only a passkey) - 'unknown': Method unknown (for pre-tracking events)"),
5460
- reason: z__namespace.string().optional().describe('Optional: Additional context or reason e.g., "Account recovery request - ticket #12345"'),
5461
- timestamp: z__namespace.number().nullable().describe("Unix timestamp (milliseconds) when the change occurred. May be null for events that occurred before history tracking was implemented.")
5462
- })).optional().describe("History of MFA state changes (enabled/disabled events). Most recent events first."),
5463
- recoveryCodes: z__namespace.array(z__namespace.string()),
5464
- totp: z__namespace.object({
5465
- createdAt: z__namespace.number(),
5466
- secret: z__namespace.string()
5467
- }).optional()
5468
- }).optional().describe("MFA configuration. When enabled, the user will be required to provide a second factor of authentication when logging in."),
5469
- name: z__namespace.string().optional(),
5470
- northstarMigration: z__namespace.object({
5471
- endTime: z__namespace.number().describe("The migration end time timestamp for this user."),
5472
- integrationClients: z__namespace.number().describe("The number of integration clients migrated for this user."),
5473
- integrationConfigurations: z__namespace.number().describe("The number of integration configurations migrated for this user."),
5474
- projects: z__namespace.number().describe("The number of projects migrated for this user."),
5475
- startTime: z__namespace.number().describe("The migration start time timestamp for this user."),
5476
- stores: z__namespace.number().describe("The number of stores migrated for this user."),
5477
- teamId: z__namespace.string().describe("The ID of the team we created for this user.")
5478
- }).optional().describe("An archive of information about the Northstar migration, derived from the old (deprecated) property, `northstarMigrationEvents`."),
5479
- opportunityId: z__namespace.string().optional().describe("The salesforce opportunity ID that this user is linked to. This is used to automatically associate a team of the user's choosing with the opportunity."),
5480
- orbCustomerId: z__namespace.string().nullish(),
5481
- overageMetadata: z__namespace.object({
5482
- dailyOverageSummaryEmailSentAt: z__namespace.number().optional().describe("Tracks the last time we sent a daily summary email."),
5483
- firstTimeOnDemandNotificationSentAt: z__namespace.number().optional().describe("Tracks if the first time on-demand overage email has been sent."),
5484
- increasedOnDemandEmailAttemptedAt: z__namespace.number().optional().describe("Tracks the last time we attempted to send an increased on-demand email. This check is to limit the number of attempts per day."),
5485
- increasedOnDemandEmailSentAt: z__namespace.number().optional().describe("Tracks the last time we sent a increased on-demand email."),
5486
- overageSummaryExpiresAt: z__namespace.number().optional().describe("Tracks when the overage summary email will stop auto-sending. We currently lock the user into email for a month after the last on-demand usage."),
5487
- weeklyOverageSummaryEmailSentAt: z__namespace.number().optional().describe("Tracks the last time we sent a weekly summary email.")
5488
- }).optional().describe("Contains the timestamps for usage summary emails."),
5489
- overageUsageAlerts: z__namespace.object({
5490
- analyticsUsage: z__namespace.object({
5491
- blockedAt: z__namespace.number().nullish(),
5492
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5493
- currentThreshold: z__namespace.number(),
5494
- warningAt: z__namespace.number().nullish()
5495
- }).optional(),
5496
- artifacts: z__namespace.object({
5497
- blockedAt: z__namespace.number().nullish(),
5498
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5499
- currentThreshold: z__namespace.number(),
5500
- warningAt: z__namespace.number().nullish()
5501
- }).optional(),
5502
- bandwidth: z__namespace.object({
5503
- blockedAt: z__namespace.number().nullish(),
5504
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5505
- currentThreshold: z__namespace.number(),
5506
- warningAt: z__namespace.number().nullish()
5507
- }).optional(),
5508
- blobDataTransfer: z__namespace.object({
5509
- blockedAt: z__namespace.number().nullish(),
5510
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5511
- currentThreshold: z__namespace.number(),
5512
- warningAt: z__namespace.number().nullish()
5513
- }).optional(),
5514
- blobTotalAdvancedRequests: z__namespace.object({
5515
- blockedAt: z__namespace.number().nullish(),
5516
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5517
- currentThreshold: z__namespace.number(),
5518
- warningAt: z__namespace.number().nullish()
5519
- }).optional(),
5520
- blobTotalAvgSizeInBytes: z__namespace.object({
5521
- blockedAt: z__namespace.number().nullish(),
5522
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5523
- currentThreshold: z__namespace.number(),
5524
- warningAt: z__namespace.number().nullish()
5525
- }).optional(),
5526
- blobTotalGetResponseObjectSizeInBytes: z__namespace.object({
5527
- blockedAt: z__namespace.number().nullish(),
5528
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5529
- currentThreshold: z__namespace.number(),
5530
- warningAt: z__namespace.number().nullish()
5531
- }).optional(),
5532
- blobTotalSimpleRequests: z__namespace.object({
5533
- blockedAt: z__namespace.number().nullish(),
5534
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5535
- currentThreshold: z__namespace.number(),
5536
- warningAt: z__namespace.number().nullish()
5537
- }).optional(),
5538
- connectDataTransfer: z__namespace.object({
5539
- blockedAt: z__namespace.number().nullish(),
5540
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5541
- currentThreshold: z__namespace.number(),
5542
- warningAt: z__namespace.number().nullish()
5543
- }).optional(),
5544
- dataCacheRead: z__namespace.object({
5545
- blockedAt: z__namespace.number().nullish(),
5546
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5547
- currentThreshold: z__namespace.number(),
5548
- warningAt: z__namespace.number().nullish()
5549
- }).optional(),
5550
- dataCacheWrite: z__namespace.object({
5551
- blockedAt: z__namespace.number().nullish(),
5552
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5553
- currentThreshold: z__namespace.number(),
5554
- warningAt: z__namespace.number().nullish()
5555
- }).optional(),
5556
- edgeConfigRead: z__namespace.object({
5557
- blockedAt: z__namespace.number().nullish(),
5558
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5559
- currentThreshold: z__namespace.number(),
5560
- warningAt: z__namespace.number().nullish()
5561
- }).optional(),
5562
- edgeConfigWrite: z__namespace.object({
5563
- blockedAt: z__namespace.number().nullish(),
5564
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5565
- currentThreshold: z__namespace.number(),
5566
- warningAt: z__namespace.number().nullish()
5567
- }).optional(),
5568
- edgeFunctionExecutionUnits: z__namespace.object({
5569
- blockedAt: z__namespace.number().nullish(),
5570
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5571
- currentThreshold: z__namespace.number(),
5572
- warningAt: z__namespace.number().nullish()
5573
- }).optional(),
5574
- edgeMiddlewareInvocations: z__namespace.object({
5575
- blockedAt: z__namespace.number().nullish(),
5576
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5577
- currentThreshold: z__namespace.number(),
5578
- warningAt: z__namespace.number().nullish()
5579
- }).optional(),
5580
- edgeRequest: z__namespace.object({
5581
- blockedAt: z__namespace.number().nullish(),
5582
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5583
- currentThreshold: z__namespace.number(),
5584
- warningAt: z__namespace.number().nullish()
5585
- }).optional(),
5586
- edgeRequestAdditionalCpuDuration: z__namespace.object({
5587
- blockedAt: z__namespace.number().nullish(),
5588
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5589
- currentThreshold: z__namespace.number(),
5590
- warningAt: z__namespace.number().nullish()
5591
- }).optional(),
5592
- elasticConcurrencyBuildSlots: z__namespace.object({
5593
- blockedAt: z__namespace.number().nullish(),
5594
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5595
- currentThreshold: z__namespace.number(),
5596
- warningAt: z__namespace.number().nullish()
5597
- }).optional(),
5598
- fastDataTransfer: z__namespace.object({
5599
- blockedAt: z__namespace.number().nullish(),
5600
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5601
- currentThreshold: z__namespace.number(),
5602
- warningAt: z__namespace.number().nullish()
5603
- }).optional(),
5604
- fastOriginTransfer: z__namespace.object({
5605
- blockedAt: z__namespace.number().nullish(),
5606
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5607
- currentThreshold: z__namespace.number(),
5608
- warningAt: z__namespace.number().nullish()
5609
- }).optional(),
5610
- fluidCpuDuration: z__namespace.object({
5611
- blockedAt: z__namespace.number().nullish(),
5612
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5613
- currentThreshold: z__namespace.number(),
5614
- warningAt: z__namespace.number().nullish()
5615
- }).optional(),
5616
- fluidDuration: z__namespace.object({
5617
- blockedAt: z__namespace.number().nullish(),
5618
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5619
- currentThreshold: z__namespace.number(),
5620
- warningAt: z__namespace.number().nullish()
5621
- }).optional(),
5622
- functionDuration: z__namespace.object({
5623
- blockedAt: z__namespace.number().nullish(),
5624
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5625
- currentThreshold: z__namespace.number(),
5626
- warningAt: z__namespace.number().nullish()
5627
- }).optional(),
5628
- functionInvocation: z__namespace.object({
5629
- blockedAt: z__namespace.number().nullish(),
5630
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5631
- currentThreshold: z__namespace.number(),
5632
- warningAt: z__namespace.number().nullish()
5633
- }).optional(),
5634
- imageOptimizationCacheRead: z__namespace.object({
5635
- blockedAt: z__namespace.number().nullish(),
5636
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5637
- currentThreshold: z__namespace.number(),
5638
- warningAt: z__namespace.number().nullish()
5639
- }).optional(),
5640
- imageOptimizationCacheWrite: z__namespace.object({
5641
- blockedAt: z__namespace.number().nullish(),
5642
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5643
- currentThreshold: z__namespace.number(),
5644
- warningAt: z__namespace.number().nullish()
5645
- }).optional(),
5646
- imageOptimizationTransformation: z__namespace.object({
5647
- blockedAt: z__namespace.number().nullish(),
5648
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5649
- currentThreshold: z__namespace.number(),
5650
- warningAt: z__namespace.number().nullish()
5651
- }).optional(),
5652
- logDrainsVolume: z__namespace.object({
5653
- blockedAt: z__namespace.number().nullish(),
5654
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5655
- currentThreshold: z__namespace.number(),
5656
- warningAt: z__namespace.number().nullish()
5657
- }).optional(),
5658
- monitoringMetric: z__namespace.object({
5659
- blockedAt: z__namespace.number().nullish(),
5660
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5661
- currentThreshold: z__namespace.number(),
5662
- warningAt: z__namespace.number().nullish()
5663
- }).optional(),
5664
- observabilityEvent: z__namespace.object({
5665
- blockedAt: z__namespace.number().nullish(),
5666
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5667
- currentThreshold: z__namespace.number(),
5668
- warningAt: z__namespace.number().nullish()
5669
- }).optional(),
5670
- onDemandConcurrencyMinutes: z__namespace.object({
5671
- blockedAt: z__namespace.number().nullish(),
5672
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5673
- currentThreshold: z__namespace.number(),
5674
- warningAt: z__namespace.number().nullish()
5675
- }).optional(),
5676
- runtimeCacheRead: z__namespace.object({
5677
- blockedAt: z__namespace.number().nullish(),
5678
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5679
- currentThreshold: z__namespace.number(),
5680
- warningAt: z__namespace.number().nullish()
5681
- }).optional(),
5682
- runtimeCacheWrite: z__namespace.object({
5683
- blockedAt: z__namespace.number().nullish(),
5684
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5685
- currentThreshold: z__namespace.number(),
5686
- warningAt: z__namespace.number().nullish()
5687
- }).optional(),
5688
- serverlessFunctionExecution: z__namespace.object({
5689
- blockedAt: z__namespace.number().nullish(),
5690
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5691
- currentThreshold: z__namespace.number(),
5692
- warningAt: z__namespace.number().nullish()
5693
- }).optional(),
5694
- sourceImages: z__namespace.object({
5695
- blockedAt: z__namespace.number().nullish(),
5696
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5697
- currentThreshold: z__namespace.number(),
5698
- warningAt: z__namespace.number().nullish()
5699
- }).optional(),
5700
- wafOwaspExcessBytes: z__namespace.object({
5701
- blockedAt: z__namespace.number().nullish(),
5702
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5703
- currentThreshold: z__namespace.number(),
5704
- warningAt: z__namespace.number().nullish()
5705
- }).optional(),
5706
- wafOwaspRequests: z__namespace.object({
5707
- blockedAt: z__namespace.number().nullish(),
5708
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5709
- currentThreshold: z__namespace.number(),
5710
- warningAt: z__namespace.number().nullish()
5711
- }).optional(),
5712
- wafRateLimitRequest: z__namespace.object({
5713
- blockedAt: z__namespace.number().nullish(),
5714
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5715
- currentThreshold: z__namespace.number(),
5716
- warningAt: z__namespace.number().nullish()
5717
- }).optional(),
5718
- webAnalyticsEvent: z__namespace.object({
5719
- blockedAt: z__namespace.number().nullish(),
5720
- blockGracePeriodStartedAt: z__namespace.number().nullish(),
5721
- currentThreshold: z__namespace.number(),
5722
- warningAt: z__namespace.number().nullish()
5723
- }).optional()
5724
- }).optional(),
5725
- phoneNumber: z__namespace.string().optional(),
5726
- platformVersion: z__namespace.number().nullable(),
5727
- preferredScopesAndGitNamespaces: z__namespace.array(z__namespace.object({
5728
- gitNamespaceId: z__namespace.union([
5729
- z__namespace.string(),
5730
- z__namespace.number()
5731
- ]).nullable(),
5732
- scopeId: z__namespace.string()
5733
- })).optional(),
5734
- preventAutoBlocking: z__namespace.union([
5735
- z__namespace.number(),
5736
- z__namespace.union([
5737
- z__namespace.literal(false),
5738
- z__namespace.literal(true)
5739
- ])
5740
- ]).optional(),
5741
- projectCardWidgetPreferences: z__namespace.array(z__namespace.object({
5742
- config: z__namespace.object({
5743
- url: z__namespace.string()
5744
- }).optional(),
5745
- projectId: z__namespace.string(),
5746
- widget: z__namespace.enum([
5747
- "analytics-online",
5748
- "analytics-page-views",
5749
- "analytics-visitors",
5750
- "firewall-allowed",
5751
- "firewall-denied",
5752
- "observability-alert",
5753
- "observability-edge-requests",
5754
- "observability-error-rate",
5755
- "observability-function-invocations",
5756
- "shortcut",
5757
- "speed-insights-cls",
5758
- "speed-insights-lcp",
5759
- "speed-insights-res"
5760
- ])
5761
- })).optional(),
5762
- projectDomainsLimit: z__namespace.number().optional().describe("Overrides our DEFAULT project domains limit per account or per project."),
5763
- remoteCaching: z__namespace.object({
5764
- enabled: z__namespace.union([
5765
- z__namespace.literal(false),
5766
- z__namespace.literal(true)
5767
- ]).optional()
5768
- }).optional().describe("Represents configuration for remote caching"),
5769
- removedAliasesAt: z__namespace.number().optional(),
5770
- removedBillingSubscriptionAt: z__namespace.number().optional(),
5771
- removedConfigurationsAt: z__namespace.number().optional(),
5772
- removedDeploymentsAt: z__namespace.number().optional(),
5773
- removedDomiansAt: z__namespace.number().optional(),
5774
- removedEdgeConfigsAt: z__namespace.number().optional(),
5775
- removedEventsAt: z__namespace.number().optional(),
5776
- removedProjectsAt: z__namespace.number().optional(),
5777
- removedSecretsAt: z__namespace.number().optional(),
5778
- removedSharedEnvVarsAt: z__namespace.number().optional(),
5779
- resourceConfig: z__namespace.object({
5780
- awsAccountIds: z__namespace.array(z__namespace.string()).optional(),
5781
- awsAccountType: z__namespace.string().optional(),
5782
- blobStores: z__namespace.number().optional(),
5783
- buildEntitlements: z__namespace.object({
5784
- enhancedBuilds: z__namespace.union([
5785
- z__namespace.literal(false),
5786
- z__namespace.literal(true)
5787
- ]).optional()
5788
- }).optional(),
5789
- buildQueue: z__namespace.object({
5790
- configuration: z__namespace.enum([
5791
- "SKIP_NAMESPACE_QUEUE",
5792
- "WAIT_FOR_NAMESPACE_QUEUE"
5793
- ]).optional()
5794
- }).optional(),
5795
- bulkRedirectsFreeLimitOverride: z__namespace.number().optional(),
5796
- cfZoneName: z__namespace.string().optional(),
5797
- concurrentBuilds: z__namespace.number().optional(),
5798
- cronJobsPerProject: z__namespace.number().optional(),
5799
- customEnvironmentsPerProject: z__namespace.number().optional(),
5800
- edgeConfigs: z__namespace.number().optional(),
5801
- edgeConfigSize: z__namespace.number().optional(),
5802
- edgeFunctionExecutionTimeoutMs: z__namespace.number().optional(),
5803
- edgeFunctionMaxSizeBytes: z__namespace.number().optional(),
5804
- elasticConcurrencyEnabled: z__namespace.union([
5805
- z__namespace.literal(false),
5806
- z__namespace.literal(true)
5807
- ]).optional(),
5808
- flagsExplorerOverridesThreshold: z__namespace.number().optional(),
5809
- flagsExplorerUnlimitedOverrides: z__namespace.union([
5810
- z__namespace.literal(false),
5811
- z__namespace.literal(true)
5812
- ]).optional(),
5813
- imageOptimizationType: z__namespace.string().optional(),
5814
- integrationStores: z__namespace.number().optional(),
5815
- kvDatabases: z__namespace.number().optional(),
5816
- microfrontendGroupsPerTeam: z__namespace.number().optional(),
5817
- microfrontendProjectsPerGroup: z__namespace.number().optional(),
5818
- nodeType: z__namespace.string().optional(),
5819
- postgresDatabases: z__namespace.number().optional(),
5820
- security: z__namespace.object({
5821
- customRules: z__namespace.number().optional(),
5822
- ipBlocks: z__namespace.number().optional(),
5823
- ipBypass: z__namespace.number().optional(),
5824
- rateLimit: z__namespace.number().optional()
5825
- }).optional(),
5826
- serverlessFunctionMaxDuration: z__namespace.number().optional(),
5827
- serverlessFunctionMaxMemorySize: z__namespace.number().optional(),
5828
- buildMachine: z__namespace.object({
5829
- default: z__namespace.enum([
5830
- "basic",
5831
- "elastic",
5832
- "enhanced",
5833
- "standard",
5834
- "turbo"
5835
- ]).optional().describe('Default build machine type for new deployments. This must be used in combination with the buildEntitlements field. It is respected over Vercel\'s notion of the default build machine, and was originally implemented to allow Teams to "downgrade". - Hobby customers cannot set this, because they only have access to one machine type - Pro customers get Turbo machines by default, so this field is effectively for downgrading - ENT customers cannot set this (yet), because their default is based on their contract. https://linear.app/vercel/project/self-serve-build-machines-for-enterprise-customers-0cbc357e26d2/overview')
5836
- }).optional().describe("Build machine configuration recorded on a team or user `resourceConfig`. This is deliberately separate from the build machine config recorded on a deployment (`DeploymentBuildMachine` in `@api/deployments-types`). A team/user only expresses its default machine for new deployments; the per-build fields (`purchaseType`, `defaultPurchaseType`, `machineSelectionType`, `cores`, `memory`) are recorded on the deployment record when a build actually runs and never belong on a team/user document.")
5837
- }).optional(),
5838
- resourceLimits: z__namespace.object({}).catchall(z__namespace.union([
5839
- z__namespace.strictObject({
5840
- duration: z__namespace.number(),
5841
- max: z__namespace.number()
5842
- }),
5843
- z__namespace.strictObject({
5844
- maxRate: z__namespace.number().optional(),
5845
- minRate: z__namespace.number().optional(),
5846
- stepPerMinute: z__namespace.number().optional()
5847
- })
5848
- ])).optional().describe("User | Team resource limits. Each entry overrides either a token-bucket rate limit or a ramp admission limit, never both."),
5849
- secondaryEmails: z__namespace.array(z__namespace.object({
5850
- email: z__namespace.string(),
5851
- verified: z__namespace.union([
5852
- z__namespace.literal(false),
5853
- z__namespace.literal(true)
5854
- ])
5855
- })).optional(),
5856
- sfdcId: z__namespace.string().optional(),
5857
- siftRoute: z__namespace.object({
5858
- name: z__namespace.enum([
5859
- "string"
5860
- ])
5861
- }).optional(),
5862
- siftScore: z__namespace.number().optional(),
5863
- siftScores: z__namespace.object({}).catchall(z__namespace.object({
5864
- reasons: z__namespace.array(z__namespace.object({
5865
- name: z__namespace.string(),
5866
- value: z__namespace.string()
5867
- })),
5868
- score: z__namespace.number()
5869
- })).optional(),
5870
- softBlock: z__namespace.object({
5871
- blockedAt: z__namespace.number(),
5872
- blockedDueToOverageType: z__namespace.enum([
5873
- "analyticsUsage",
5874
- "artifacts",
5875
- "bandwidth",
5876
- "blobDataTransfer",
5877
- "blobTotalAdvancedRequests",
5878
- "blobTotalAvgSizeInBytes",
5879
- "blobTotalGetResponseObjectSizeInBytes",
5880
- "blobTotalSimpleRequests",
5881
- "connectDataTransfer",
5882
- "dataCacheRead",
5883
- "dataCacheWrite",
5884
- "edgeConfigRead",
5885
- "edgeConfigWrite",
5886
- "edgeFunctionExecutionUnits",
5887
- "edgeMiddlewareInvocations",
5888
- "edgeRequest",
5889
- "edgeRequestAdditionalCpuDuration",
5890
- "elasticConcurrencyBuildSlots",
5891
- "fastDataTransfer",
5892
- "fastOriginTransfer",
5893
- "fluidCpuDuration",
5894
- "fluidDuration",
5895
- "functionDuration",
5896
- "functionInvocation",
5897
- "imageOptimizationCacheRead",
5898
- "imageOptimizationCacheWrite",
5899
- "imageOptimizationTransformation",
5900
- "logDrainsVolume",
5901
- "monitoringMetric",
5902
- "observabilityEvent",
5903
- "onDemandConcurrencyMinutes",
5904
- "runtimeCacheRead",
5905
- "runtimeCacheWrite",
5906
- "serverlessFunctionExecution",
5907
- "sourceImages",
5908
- "wafOwaspExcessBytes",
5909
- "wafOwaspRequests",
5910
- "wafRateLimitRequest",
5911
- "webAnalyticsEvent"
5912
- ]).optional(),
5913
- reason: z__namespace.enum([
5914
- "BLOCKED_FOR_PLATFORM_ABUSE",
5915
- "DOMAIN_OWNER_DELETION_REQUEST",
5916
- "ENTERPRISE_TRIAL_ENDED",
5917
- "ENTERPRISE_UNPAID_INVOICE",
5918
- "EXPOSURE_CAP_EXCEEDED",
5919
- "FAIR_USE_LIMITS_EXCEEDED",
5920
- "SUBSCRIPTION_CANCELED",
5921
- "SUBSCRIPTION_EXPIRED",
5922
- "UNPAID_INVOICE"
5923
- ]),
5924
- unpauseAt: z__namespace.number().optional().describe("Since September 2026. Set only by `billing-usage-alerts` for usage plans with a `blockDurationMs`; its presence marks a pause that expires on its own.")
5925
- }).nullish(),
5926
- speedInsightsFreeUsageAlert: z__namespace.object({
5927
- currentThreshold: z__namespace.number().describe("Highest allocation percentage threshold notified (e.g. 75 or 100)."),
5928
- notifiedAt: z__namespace.number().describe("When the notification for `currentThreshold` was sent.")
5929
- }).optional().describe("Tracks notifications sent for the team-wide Speed Insights free allocation. The allocation is measured over a rolling window (not a billing period), so deduplication is time-based rather than reset at period start."),
5930
- stagingPrefix: z__namespace.string(),
5931
- sysToken: z__namespace.string(),
5932
- teams: z__namespace.array(z__namespace.object({
5933
- accessRequestedAt: z__namespace.number().optional(),
5934
- confirmed: z__namespace.literal(true),
5935
- confirmedAt: z__namespace.number(),
5936
- created: z__namespace.number(),
5937
- createdAt: z__namespace.number(),
5938
- joinedFrom: z__namespace.object({
5939
- commitId: z__namespace.string().optional(),
5940
- dsyncConnectedAt: z__namespace.number().optional(),
5941
- dsyncUserId: z__namespace.string().optional(),
5942
- gitUserId: z__namespace.union([
5943
- z__namespace.string(),
5944
- z__namespace.number()
5945
- ]).optional(),
5946
- gitUserLogin: z__namespace.string().optional(),
5947
- idpUserId: z__namespace.string().optional(),
5948
- origin: z__namespace.enum([
5949
- "account-update",
5950
- "bitbucket",
5951
- "dsync",
5952
- "feedback",
5953
- "github",
5954
- "gitlab",
5955
- "import",
5956
- "link",
5957
- "mail",
5958
- "nsnb-auto-approve",
5959
- "nsnb-hobby-upgrade",
5960
- "nsnb-invite",
5961
- "nsnb-redeploy",
5962
- "nsnb-redeploy-attribution-card",
5963
- "nsnb-request-access",
5964
- "nsnb-viewer-upgrade",
5965
- "organization-teams",
5966
- "saml",
5967
- "teams"
5968
- ]),
5969
- repoId: z__namespace.string().optional(),
5970
- repoPath: z__namespace.string().optional(),
5971
- ssoConnectedAt: z__namespace.number().optional(),
5972
- ssoUserId: z__namespace.string().optional()
5973
- }).optional(),
5974
- role: z__namespace.enum([
5975
- "BILLING",
5976
- "CONTRIBUTOR",
5977
- "DEVELOPER",
5978
- "MEMBER",
5979
- "OWNER",
5980
- "SECURITY",
5981
- "VIEWER",
5982
- "VIEWER_FOR_PLUS"
5983
- ]),
5984
- teamId: z__namespace.string(),
5985
- teamPermissions: z__namespace.array(z__namespace.enum([
5986
- "AiGatewayBudgetManager",
5987
- "AiGatewayCredits",
5988
- "AiGatewaySettings",
5989
- "AiGatewayTranscriptsManager",
5990
- "AiGatewayTranscriptsViewer",
5991
- "AiGatewayUser",
5992
- "ConnectorManager",
5993
- "CreateProject",
5994
- "EnvVariableManager",
5995
- "EnvironmentManager",
5996
- "FullProductionDeployment",
5997
- "IntegrationManager",
5998
- "OrgAdmin",
5999
- "OrgViewer",
6000
- "UsageViewer",
6001
- "V0Builder",
6002
- "V0Chatter",
6003
- "V0Viewer",
6004
- "WorkflowDecryptor"
6005
- ])).optional(),
6006
- teamRoles: z__namespace.array(z__namespace.enum([
6007
- "BILLING",
6008
- "CONTRIBUTOR",
6009
- "DEVELOPER",
6010
- "MEMBER",
6011
- "OWNER",
6012
- "SECURITY",
6013
- "VIEWER",
6014
- "VIEWER_FOR_PLUS"
6015
- ])).optional()
6016
- })).optional().describe("A helper that allows to describe a relationship attribute. It receives the shape of a relationship plus the foreignKey name to make it mandatory in the resulting type."),
6017
- testAccountExpiresAt: z__namespace.number().optional(),
6018
- trialTeamId: z__namespace.string().optional().describe("Deprecated on 2022-04-12 in favor of trialTeamIds and using utils/api-teams/user-has-trial-available.ts."),
6019
- trialTeamIds: z__namespace.array(z__namespace.string()).optional().describe("Introduced 2022-04-12 An array of teamIds (for trial teams created after 2022-04-01), created by the user in question. Used in determining whether the team has a trial available in utils/api-teams/user-has-trial-available.ts."),
6020
- type: z__namespace.enum([
6021
- "user"
6022
- ]),
6023
- updatedAt: z__namespace.number(),
6024
- usageAlerts: z__namespace.object({
6025
- blockingAt: z__namespace.number().nullish(),
6026
- warningAt: z__namespace.number().nullish()
6027
- }).nullish().describe("Contains the timestamps when a user was notified about their usage"),
6028
- username: z__namespace.string(),
6029
- version: z__namespace.enum([
6030
- "northstar"
6031
- ])
4911
+ username: z__namespace.string()
6032
4912
  }).nullable(),
6033
4913
  userId: z__namespace.string()
6034
4914
  }),
@@ -27475,7 +26355,7 @@ const aggregatePageviewsQueryLimitSchema = z__namespace.int().min(1).max(100).op
27475
26355
  3
27476
26356
  ]
27477
26357
  });
27478
- const aggregatePageviewsQueryFilterSchema = z__namespace.string().optional().describe("OData-compliant filter. Encode the value when sending it in a URL.\n\nAllows filtering on one or multiple dimensions. By default, filters for production environment only.\n\nSupported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm.\n\nJSON dimensions filtered by key: flags/<name>, for example flags/beta_banner eq 'true'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.\n\nSupported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.").meta({
26358
+ const aggregatePageviewsQueryFilterSchema = z__namespace.string().max(2048).optional().describe("OData-compliant filter. Encode the value when sending it in a URL.\n\nAllows filtering on one or multiple dimensions. By default, filters for production environment only.\n\nSupported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm.\n\nJSON dimensions filtered by key: flags/<name>, for example flags/beta_banner eq 'true'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.\n\nSupported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.").meta({
27479
26359
  examples: [
27480
26360
  "requestPath eq '/docs'"
27481
26361
  ]
@@ -27544,7 +26424,7 @@ const aggregateEventsQueryLimitSchema = z__namespace.int().min(1).max(100).optio
27544
26424
  3
27545
26425
  ]
27546
26426
  });
27547
- const aggregateEventsQueryFilterSchema = z__namespace.string().optional().describe("OData-compliant filter. Encode the value when sending it in a URL.\n\nAllows filtering on one or multiple dimensions. By default, filters for production environment only.\n\nSupported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm, eventName.\n\nJSON dimensions filtered by key: flags/<name>, eventData/<property>, for example eventData/plan eq 'pro'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.\n\nSupported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.").meta({
26427
+ const aggregateEventsQueryFilterSchema = z__namespace.string().max(2048).optional().describe("OData-compliant filter. Encode the value when sending it in a URL.\n\nAllows filtering on one or multiple dimensions. By default, filters for production environment only.\n\nSupported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm, eventName.\n\nJSON dimensions filtered by key: flags/<name>, eventData/<property>, for example eventData/plan eq 'pro'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.\n\nSupported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.").meta({
27548
26428
  examples: [
27549
26429
  "eventData/plan eq 'pro'"
27550
26430
  ]
@@ -27598,7 +26478,7 @@ const countPageviewsQueryUntilSchema = z__namespace.union([
27598
26478
  "2024-09-08T00:00:00.000Z"
27599
26479
  ]
27600
26480
  });
27601
- const countPageviewsQueryFilterSchema = z__namespace.string().optional().describe("OData-compliant filter. Encode the value when sending it in a URL.\n\nAllows filtering on one or multiple dimensions.\n\nSupported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm.\n\nJSON dimensions filtered by key: flags/<name>, for example flags/beta_banner eq 'true'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.\n\nSupported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.").meta({
26481
+ const countPageviewsQueryFilterSchema = z__namespace.string().max(2048).optional().describe("OData-compliant filter. Encode the value when sending it in a URL.\n\nAllows filtering on one or multiple dimensions.\n\nSupported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm.\n\nJSON dimensions filtered by key: flags/<name>, for example flags/beta_banner eq 'true'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.\n\nSupported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.").meta({
27602
26482
  examples: [
27603
26483
  "route eq '/home'"
27604
26484
  ]
@@ -27652,7 +26532,7 @@ const countEventsQueryUntilSchema = z__namespace.union([
27652
26532
  "2024-09-08T00:00:00.000Z"
27653
26533
  ]
27654
26534
  });
27655
- const countEventsQueryFilterSchema = z__namespace.string().optional().describe("OData-compliant filter. Encode the value when sending it in a URL.\n\nAllows filtering on one or multiple dimensions.\n\nSupported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm, eventName.\n\nJSON dimensions filtered by key: flags/<name>, eventData/<property>, for example eventData/plan eq 'pro'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.\n\nSupported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.").meta({
26535
+ const countEventsQueryFilterSchema = z__namespace.string().max(2048).optional().describe("OData-compliant filter. Encode the value when sending it in a URL.\n\nAllows filtering on one or multiple dimensions.\n\nSupported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm, eventName.\n\nJSON dimensions filtered by key: flags/<name>, eventData/<property>, for example eventData/plan eq 'pro'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.\n\nSupported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.").meta({
27656
26536
  examples: [
27657
26537
  "eventName eq 'signup'"
27658
26538
  ]