@highflame/policy 2.2.7 → 2.2.9

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.
@@ -348,6 +348,30 @@
348
348
  "type": "number",
349
349
  "required": false,
350
350
  "description": "Max secret score across session turns"
351
+ },
352
+ {
353
+ "key": "rpm_remaining_pct",
354
+ "type": "number",
355
+ "required": false,
356
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
357
+ },
358
+ {
359
+ "key": "rpm_exceeded",
360
+ "type": "boolean",
361
+ "required": false,
362
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
363
+ },
364
+ {
365
+ "key": "tpm_remaining_pct",
366
+ "type": "number",
367
+ "required": false,
368
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
369
+ },
370
+ {
371
+ "key": "tpm_exceeded",
372
+ "type": "boolean",
373
+ "required": false,
374
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
351
375
  }
352
376
  ]
353
377
  },
@@ -570,6 +594,30 @@
570
594
  "type": "number",
571
595
  "required": false,
572
596
  "description": "Max secret score across session turns"
597
+ },
598
+ {
599
+ "key": "rpm_remaining_pct",
600
+ "type": "number",
601
+ "required": false,
602
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
603
+ },
604
+ {
605
+ "key": "rpm_exceeded",
606
+ "type": "boolean",
607
+ "required": false,
608
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
609
+ },
610
+ {
611
+ "key": "tpm_remaining_pct",
612
+ "type": "number",
613
+ "required": false,
614
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
615
+ },
616
+ {
617
+ "key": "tpm_exceeded",
618
+ "type": "boolean",
619
+ "required": false,
620
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
573
621
  }
574
622
  ]
575
623
  },
@@ -822,6 +870,30 @@
822
870
  "type": "number",
823
871
  "required": false,
824
872
  "description": "Max secret score across session turns"
873
+ },
874
+ {
875
+ "key": "rpm_remaining_pct",
876
+ "type": "number",
877
+ "required": false,
878
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
879
+ },
880
+ {
881
+ "key": "rpm_exceeded",
882
+ "type": "boolean",
883
+ "required": false,
884
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
885
+ },
886
+ {
887
+ "key": "tpm_remaining_pct",
888
+ "type": "number",
889
+ "required": false,
890
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
891
+ },
892
+ {
893
+ "key": "tpm_exceeded",
894
+ "type": "boolean",
895
+ "required": false,
896
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
825
897
  }
826
898
  ]
827
899
  },
@@ -1002,6 +1074,30 @@
1002
1074
  "type": "number",
1003
1075
  "required": false,
1004
1076
  "description": "Max secret score across session turns"
1077
+ },
1078
+ {
1079
+ "key": "rpm_remaining_pct",
1080
+ "type": "number",
1081
+ "required": false,
1082
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1083
+ },
1084
+ {
1085
+ "key": "rpm_exceeded",
1086
+ "type": "boolean",
1087
+ "required": false,
1088
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
1089
+ },
1090
+ {
1091
+ "key": "tpm_remaining_pct",
1092
+ "type": "number",
1093
+ "required": false,
1094
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1095
+ },
1096
+ {
1097
+ "key": "tpm_exceeded",
1098
+ "type": "boolean",
1099
+ "required": false,
1100
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
1005
1101
  }
1006
1102
  ]
1007
1103
  },
@@ -1182,6 +1278,30 @@
1182
1278
  "type": "number",
1183
1279
  "required": false,
1184
1280
  "description": "Max secret score across session turns"
1281
+ },
1282
+ {
1283
+ "key": "rpm_remaining_pct",
1284
+ "type": "number",
1285
+ "required": false,
1286
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1287
+ },
1288
+ {
1289
+ "key": "rpm_exceeded",
1290
+ "type": "boolean",
1291
+ "required": false,
1292
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
1293
+ },
1294
+ {
1295
+ "key": "tpm_remaining_pct",
1296
+ "type": "number",
1297
+ "required": false,
1298
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1299
+ },
1300
+ {
1301
+ "key": "tpm_exceeded",
1302
+ "type": "boolean",
1303
+ "required": false,
1304
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
1185
1305
  }
1186
1306
  ]
1187
1307
  }
@@ -173,6 +173,12 @@ action call_tool appliesTo {
173
173
  budget_exceeded_session?: Bool,
174
174
  budget_exceeded_daily?: Bool,
175
175
  budget_exceeded_monthly?: Bool,
176
+
177
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
178
+ rpm_remaining_pct?: Long,
179
+ rpm_exceeded?: Bool,
180
+ tpm_remaining_pct?: Long,
181
+ tpm_exceeded?: Bool,
176
182
  },
177
183
  };
178
184
 
@@ -245,6 +251,12 @@ action connect_server appliesTo {
245
251
  budget_exceeded_session?: Bool,
246
252
  budget_exceeded_daily?: Bool,
247
253
  budget_exceeded_monthly?: Bool,
254
+
255
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
256
+ rpm_remaining_pct?: Long,
257
+ rpm_exceeded?: Bool,
258
+ tpm_remaining_pct?: Long,
259
+ tpm_exceeded?: Bool,
248
260
  },
249
261
  };
250
262
 
@@ -326,6 +338,12 @@ action process_prompt appliesTo {
326
338
  budget_exceeded_session?: Bool,
327
339
  budget_exceeded_daily?: Bool,
328
340
  budget_exceeded_monthly?: Bool,
341
+
342
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
343
+ rpm_remaining_pct?: Long,
344
+ rpm_exceeded?: Bool,
345
+ tpm_remaining_pct?: Long,
346
+ tpm_exceeded?: Bool,
329
347
  },
330
348
  };
331
349
 
@@ -387,6 +405,12 @@ action read_file appliesTo {
387
405
  budget_exceeded_session?: Bool,
388
406
  budget_exceeded_daily?: Bool,
389
407
  budget_exceeded_monthly?: Bool,
408
+
409
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
410
+ rpm_remaining_pct?: Long,
411
+ rpm_exceeded?: Bool,
412
+ tpm_remaining_pct?: Long,
413
+ tpm_exceeded?: Bool,
390
414
  },
391
415
  };
392
416
 
@@ -448,6 +472,12 @@ action write_file appliesTo {
448
472
  budget_exceeded_session?: Bool,
449
473
  budget_exceeded_daily?: Bool,
450
474
  budget_exceeded_monthly?: Bool,
475
+
476
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
477
+ rpm_remaining_pct?: Long,
478
+ rpm_exceeded?: Bool,
479
+ tpm_remaining_pct?: Long,
480
+ tpm_exceeded?: Bool,
451
481
  },
452
482
  };
453
483
 
@@ -433,6 +433,30 @@
433
433
  "required": false,
434
434
  "description": "Whether multi-turn injection patterns were detected (attack spread across multiple conversation turns)"
435
435
  },
436
+ {
437
+ "key": "rpm_remaining_pct",
438
+ "type": "number",
439
+ "required": false,
440
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
441
+ },
442
+ {
443
+ "key": "rpm_exceeded",
444
+ "type": "boolean",
445
+ "required": false,
446
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
447
+ },
448
+ {
449
+ "key": "tpm_remaining_pct",
450
+ "type": "number",
451
+ "required": false,
452
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
453
+ },
454
+ {
455
+ "key": "tpm_exceeded",
456
+ "type": "boolean",
457
+ "required": false,
458
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
459
+ },
436
460
  {
437
461
  "key": "session_pii_detected",
438
462
  "type": "boolean",
@@ -703,6 +727,30 @@
703
727
  "required": false,
704
728
  "description": "Whether the token budget has been exceeded. Use this to enforce cost controls on agentic sessions"
705
729
  },
730
+ {
731
+ "key": "rpm_remaining_pct",
732
+ "type": "number",
733
+ "required": false,
734
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
735
+ },
736
+ {
737
+ "key": "rpm_exceeded",
738
+ "type": "boolean",
739
+ "required": false,
740
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
741
+ },
742
+ {
743
+ "key": "tpm_remaining_pct",
744
+ "type": "number",
745
+ "required": false,
746
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
747
+ },
748
+ {
749
+ "key": "tpm_exceeded",
750
+ "type": "boolean",
751
+ "required": false,
752
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
753
+ },
706
754
  {
707
755
  "key": "content_topics",
708
756
  "type": "array",
@@ -973,6 +1021,30 @@
973
1021
  "required": false,
974
1022
  "description": "Whether multi-turn injection patterns were detected across tool calls in the session"
975
1023
  },
1024
+ {
1025
+ "key": "rpm_remaining_pct",
1026
+ "type": "number",
1027
+ "required": false,
1028
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1029
+ },
1030
+ {
1031
+ "key": "rpm_exceeded",
1032
+ "type": "boolean",
1033
+ "required": false,
1034
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
1035
+ },
1036
+ {
1037
+ "key": "tpm_remaining_pct",
1038
+ "type": "number",
1039
+ "required": false,
1040
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1041
+ },
1042
+ {
1043
+ "key": "tpm_exceeded",
1044
+ "type": "boolean",
1045
+ "required": false,
1046
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
1047
+ },
976
1048
  {
977
1049
  "key": "session_pii_detected",
978
1050
  "type": "boolean",
@@ -1189,6 +1261,30 @@
1189
1261
  "required": false,
1190
1262
  "description": "Type of path traversal detected in the file read path"
1191
1263
  },
1264
+ {
1265
+ "key": "rpm_remaining_pct",
1266
+ "type": "number",
1267
+ "required": false,
1268
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1269
+ },
1270
+ {
1271
+ "key": "rpm_exceeded",
1272
+ "type": "boolean",
1273
+ "required": false,
1274
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
1275
+ },
1276
+ {
1277
+ "key": "tpm_remaining_pct",
1278
+ "type": "number",
1279
+ "required": false,
1280
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1281
+ },
1282
+ {
1283
+ "key": "tpm_exceeded",
1284
+ "type": "boolean",
1285
+ "required": false,
1286
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
1287
+ },
1192
1288
  {
1193
1289
  "key": "session_pii_detected",
1194
1290
  "type": "boolean",
@@ -1417,6 +1513,30 @@
1417
1513
  "required": false,
1418
1514
  "description": "Type of path traversal detected in the file write path"
1419
1515
  },
1516
+ {
1517
+ "key": "rpm_remaining_pct",
1518
+ "type": "number",
1519
+ "required": false,
1520
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1521
+ },
1522
+ {
1523
+ "key": "rpm_exceeded",
1524
+ "type": "boolean",
1525
+ "required": false,
1526
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
1527
+ },
1528
+ {
1529
+ "key": "tpm_remaining_pct",
1530
+ "type": "number",
1531
+ "required": false,
1532
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1533
+ },
1534
+ {
1535
+ "key": "tpm_exceeded",
1536
+ "type": "boolean",
1537
+ "required": false,
1538
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
1539
+ },
1420
1540
  {
1421
1541
  "key": "session_pii_detected",
1422
1542
  "type": "boolean",
@@ -1645,6 +1765,30 @@
1645
1765
  "required": false,
1646
1766
  "description": "Risk score for cross-origin escalation in server connection (0-100)"
1647
1767
  },
1768
+ {
1769
+ "key": "rpm_remaining_pct",
1770
+ "type": "number",
1771
+ "required": false,
1772
+ "description": "Remaining RPM (requests per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1773
+ },
1774
+ {
1775
+ "key": "rpm_exceeded",
1776
+ "type": "boolean",
1777
+ "required": false,
1778
+ "description": "Whether the RPM limit has been exceeded. Use this to enforce rate limits via Cedar policy"
1779
+ },
1780
+ {
1781
+ "key": "tpm_remaining_pct",
1782
+ "type": "number",
1783
+ "required": false,
1784
+ "description": "Remaining TPM (tokens per minute) as percentage (0-100). Gateway-metered, Shield-decided (ADR 0014)"
1785
+ },
1786
+ {
1787
+ "key": "tpm_exceeded",
1788
+ "type": "boolean",
1789
+ "required": false,
1790
+ "description": "Whether the TPM limit has been exceeded. Use this to enforce token rate limits via Cedar policy"
1791
+ },
1648
1792
  {
1649
1793
  "key": "session_pii_detected",
1650
1794
  "type": "boolean",
@@ -229,6 +229,12 @@ namespace Guardrails {
229
229
  "budget_exceeded_daily"?: Bool, // Any daily-scoped budget exceeded
230
230
  "budget_exceeded_monthly"?: Bool, // Any monthly-scoped budget exceeded
231
231
 
232
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
233
+ "rpm_remaining_pct"?: Long,
234
+ "rpm_exceeded"?: Bool,
235
+ "tpm_remaining_pct"?: Long,
236
+ "tpm_exceeded"?: Bool,
237
+
232
238
  // Agent Identity — authenticated agent principal metadata (optional)
233
239
  // Present when the request is made by an AI agent (API key or JWT with agent claims).
234
240
  // Empty strings for human user requests. Use these to write agent-specific policies.
@@ -315,6 +321,12 @@ namespace Guardrails {
315
321
  "budget_exceeded_daily"?: Bool,
316
322
  "budget_exceeded_monthly"?: Bool,
317
323
 
324
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
325
+ "rpm_remaining_pct"?: Long,
326
+ "rpm_exceeded"?: Bool,
327
+ "tpm_remaining_pct"?: Long,
328
+ "tpm_exceeded"?: Bool,
329
+
318
330
  // Semantic - Topic Classification (optional)
319
331
  "content_topics"?: Set<String>, // ["controlled_substances", "weapons_manufacturing", ...]
320
332
  "topic_confidence"?: Long, // 0-100
@@ -468,6 +480,12 @@ namespace Guardrails {
468
480
  "budget_exceeded_daily"?: Bool,
469
481
  "budget_exceeded_monthly"?: Bool,
470
482
 
483
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
484
+ "rpm_remaining_pct"?: Long,
485
+ "rpm_exceeded"?: Bool,
486
+ "tpm_remaining_pct"?: Long,
487
+ "tpm_exceeded"?: Bool,
488
+
471
489
  // Agent Identity — authenticated agent principal metadata (optional)
472
490
  "agent_id"?: String,
473
491
  "agent_type"?: String,
@@ -539,6 +557,12 @@ namespace Guardrails {
539
557
  "budget_exceeded_daily"?: Bool,
540
558
  "budget_exceeded_monthly"?: Bool,
541
559
 
560
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
561
+ "rpm_remaining_pct"?: Long,
562
+ "rpm_exceeded"?: Bool,
563
+ "tpm_remaining_pct"?: Long,
564
+ "tpm_exceeded"?: Bool,
565
+
542
566
  // Agent Identity — authenticated agent principal metadata (optional)
543
567
  "agent_id"?: String,
544
568
  "agent_type"?: String,
@@ -610,6 +634,12 @@ namespace Guardrails {
610
634
  "budget_exceeded_daily"?: Bool,
611
635
  "budget_exceeded_monthly"?: Bool,
612
636
 
637
+ // Rate Limiting — gateway-metered, Shield-decided (ADR 0014)
638
+ "rpm_remaining_pct"?: Long,
639
+ "rpm_exceeded"?: Bool,
640
+ "tpm_remaining_pct"?: Long,
641
+ "tpm_exceeded"?: Bool,
642
+
613
643
  // Agent Identity — authenticated agent principal metadata (optional)
614
644
  "agent_id"?: String,
615
645
  "agent_type"?: String,
@@ -90,6 +90,8 @@ export declare const AgentOpsContextKey: {
90
90
  readonly ProfanityScore: "profanity_score";
91
91
  readonly RequestId: "request_id";
92
92
  readonly Role: "role";
93
+ readonly RpmExceeded: "rpm_exceeded";
94
+ readonly RpmRemainingPct: "rpm_remaining_pct";
93
95
  readonly RugPullDetected: "rug_pull_detected";
94
96
  readonly RugPullScore: "rug_pull_score";
95
97
  readonly RugPullType: "rug_pull_type";
@@ -133,6 +135,8 @@ export declare const AgentOpsContextKey: {
133
135
  readonly ToolPoisoningType: "tool_poisoning_type";
134
136
  readonly ToolRiskScore: "tool_risk_score";
135
137
  readonly TopicConfidence: "topic_confidence";
138
+ readonly TpmExceeded: "tpm_exceeded";
139
+ readonly TpmRemainingPct: "tpm_remaining_pct";
136
140
  readonly UserEmail: "user_email";
137
141
  readonly ViolenceScore: "violence_score";
138
142
  readonly WeaponsScore: "weapons_score";
@@ -143,4 +147,4 @@ export type AgentOpsContextKey = (typeof AgentOpsContextKey)[keyof typeof AgentO
143
147
  * The full set of authorable context attribute keys for AgentOps.
144
148
  * Iterate this to enumerate the authorable surface (cockpit, conformance).
145
149
  */
146
- export declare const AgentOpsContextKeys: readonly ["agent_framework", "agent_id", "agent_publisher", "agent_trust_level", "agent_type", "budget_exceeded", "budget_remaining_pct", "code_languages", "code_ratio", "command_injection_detected", "command_injection_score", "command_injection_type", "contains_code", "contains_non_ascii", "content_safety_blocked", "content_safety_score", "content_topics", "content_type", "conversation_turn", "crime_score", "cross_origin_detected", "cross_origin_score", "cross_origin_type", "cwd", "detected_language", "detected_script", "detected_threats", "detector_count", "direction", "encoded_content_detected", "encoded_count", "encoded_score", "encoded_types", "event", "factuality_score", "hallucination_score", "hate_speech_score", "highest_severity", "identity_type", "indirect_injection_score", "indirect_injection_type", "injection_deep_context_score", "injection_pulse_score", "injection_score", "injection_type", "invisible_chars_detected", "invisible_chars_score", "is_english", "is_latin_script", "jailbreak_deep_context_score", "jailbreak_pulse_score", "jailbreak_score", "keyword_categories", "keyword_count", "keyword_matched", "language_confidence", "loop_count", "loop_detected", "loop_tool", "mcp_config_risk", "mcp_risk_score", "mcp_risk_type", "mcp_server", "mcp_server_verified", "mcp_tool", "model_name", "model_provider", "multi_turn_detection", "param_type_violation", "param_type_violations", "path", "path_traversal_detected", "path_traversal_severity", "path_traversal_type", "pattern_type", "phishing_detected", "pii_count", "pii_detected", "pii_score", "pii_types", "principal", "privilege_scope", "profanity_score", "request_id", "role", "rug_pull_detected", "rug_pull_score", "rug_pull_type", "script_confidence", "secret_count", "secret_types", "secrets_detected", "sentiment_score", "sequence_risk", "session_command_injection", "session_cumulative_risk_score", "session_injection_detected", "session_max_command_injection_score", "session_max_injection_score", "session_max_jailbreak_score", "session_max_pii_score", "session_max_secret_score", "session_max_sensitivity", "session_original_request", "session_pii_detected", "session_pii_types", "session_secret_types", "session_secrets_detected", "session_threat_turns", "sexual_score", "source", "sql_injection_detected", "sql_injection_score", "sql_injection_type", "suspicious_pattern", "threat_categories", "threat_count", "timestamp", "tool_category", "tool_is_builtin", "tool_is_sensitive", "tool_name", "tool_operation_classes", "tool_poisoning_detected", "tool_poisoning_score", "tool_poisoning_type", "tool_risk_score", "topic_confidence", "user_email", "violence_score", "weapons_score", "workspace_root"];
150
+ export declare const AgentOpsContextKeys: readonly ["agent_framework", "agent_id", "agent_publisher", "agent_trust_level", "agent_type", "budget_exceeded", "budget_remaining_pct", "code_languages", "code_ratio", "command_injection_detected", "command_injection_score", "command_injection_type", "contains_code", "contains_non_ascii", "content_safety_blocked", "content_safety_score", "content_topics", "content_type", "conversation_turn", "crime_score", "cross_origin_detected", "cross_origin_score", "cross_origin_type", "cwd", "detected_language", "detected_script", "detected_threats", "detector_count", "direction", "encoded_content_detected", "encoded_count", "encoded_score", "encoded_types", "event", "factuality_score", "hallucination_score", "hate_speech_score", "highest_severity", "identity_type", "indirect_injection_score", "indirect_injection_type", "injection_deep_context_score", "injection_pulse_score", "injection_score", "injection_type", "invisible_chars_detected", "invisible_chars_score", "is_english", "is_latin_script", "jailbreak_deep_context_score", "jailbreak_pulse_score", "jailbreak_score", "keyword_categories", "keyword_count", "keyword_matched", "language_confidence", "loop_count", "loop_detected", "loop_tool", "mcp_config_risk", "mcp_risk_score", "mcp_risk_type", "mcp_server", "mcp_server_verified", "mcp_tool", "model_name", "model_provider", "multi_turn_detection", "param_type_violation", "param_type_violations", "path", "path_traversal_detected", "path_traversal_severity", "path_traversal_type", "pattern_type", "phishing_detected", "pii_count", "pii_detected", "pii_score", "pii_types", "principal", "privilege_scope", "profanity_score", "request_id", "role", "rpm_exceeded", "rpm_remaining_pct", "rug_pull_detected", "rug_pull_score", "rug_pull_type", "script_confidence", "secret_count", "secret_types", "secrets_detected", "sentiment_score", "sequence_risk", "session_command_injection", "session_cumulative_risk_score", "session_injection_detected", "session_max_command_injection_score", "session_max_injection_score", "session_max_jailbreak_score", "session_max_pii_score", "session_max_secret_score", "session_max_sensitivity", "session_original_request", "session_pii_detected", "session_pii_types", "session_secret_types", "session_secrets_detected", "session_threat_turns", "sexual_score", "source", "sql_injection_detected", "sql_injection_score", "sql_injection_type", "suspicious_pattern", "threat_categories", "threat_count", "timestamp", "tool_category", "tool_is_builtin", "tool_is_sensitive", "tool_name", "tool_operation_classes", "tool_poisoning_detected", "tool_poisoning_score", "tool_poisoning_type", "tool_risk_score", "topic_confidence", "tpm_exceeded", "tpm_remaining_pct", "user_email", "violence_score", "weapons_score", "workspace_root"];
@@ -92,6 +92,8 @@ export const AgentOpsContextKey = {
92
92
  ProfanityScore: 'profanity_score',
93
93
  RequestId: 'request_id',
94
94
  Role: 'role',
95
+ RpmExceeded: 'rpm_exceeded',
96
+ RpmRemainingPct: 'rpm_remaining_pct',
95
97
  RugPullDetected: 'rug_pull_detected',
96
98
  RugPullScore: 'rug_pull_score',
97
99
  RugPullType: 'rug_pull_type',
@@ -135,6 +137,8 @@ export const AgentOpsContextKey = {
135
137
  ToolPoisoningType: 'tool_poisoning_type',
136
138
  ToolRiskScore: 'tool_risk_score',
137
139
  TopicConfidence: 'topic_confidence',
140
+ TpmExceeded: 'tpm_exceeded',
141
+ TpmRemainingPct: 'tpm_remaining_pct',
138
142
  UserEmail: 'user_email',
139
143
  ViolenceScore: 'violence_score',
140
144
  WeaponsScore: 'weapons_score',
@@ -230,6 +234,8 @@ export const AgentOpsContextKeys = [
230
234
  AgentOpsContextKey.ProfanityScore,
231
235
  AgentOpsContextKey.RequestId,
232
236
  AgentOpsContextKey.Role,
237
+ AgentOpsContextKey.RpmExceeded,
238
+ AgentOpsContextKey.RpmRemainingPct,
233
239
  AgentOpsContextKey.RugPullDetected,
234
240
  AgentOpsContextKey.RugPullScore,
235
241
  AgentOpsContextKey.RugPullType,
@@ -273,6 +279,8 @@ export const AgentOpsContextKeys = [
273
279
  AgentOpsContextKey.ToolPoisoningType,
274
280
  AgentOpsContextKey.ToolRiskScore,
275
281
  AgentOpsContextKey.TopicConfidence,
282
+ AgentOpsContextKey.TpmExceeded,
283
+ AgentOpsContextKey.TpmRemainingPct,
276
284
  AgentOpsContextKey.UserEmail,
277
285
  AgentOpsContextKey.ViolenceScore,
278
286
  AgentOpsContextKey.WeaponsScore,
@@ -33,6 +33,8 @@ export declare const AiGatewayContextKey: {
33
33
  readonly PrivilegeScope: "privilege_scope";
34
34
  readonly ProfanityScore: "profanity_score";
35
35
  readonly Role: "role";
36
+ readonly RpmExceeded: "rpm_exceeded";
37
+ readonly RpmRemainingPct: "rpm_remaining_pct";
36
38
  readonly RugPullDetected: "rug_pull_detected";
37
39
  readonly RugPullScore: "rug_pull_score";
38
40
  readonly SecretCount: "secret_count";
@@ -64,6 +66,8 @@ export declare const AiGatewayContextKey: {
64
66
  readonly ToolPoisoningDetected: "tool_poisoning_detected";
65
67
  readonly ToolPoisoningScore: "tool_poisoning_score";
66
68
  readonly ToolRiskScore: "tool_risk_score";
69
+ readonly TpmExceeded: "tpm_exceeded";
70
+ readonly TpmRemainingPct: "tpm_remaining_pct";
67
71
  readonly ViolenceScore: "violence_score";
68
72
  readonly WeaponsScore: "weapons_score";
69
73
  };
@@ -72,4 +76,4 @@ export type AiGatewayContextKey = (typeof AiGatewayContextKey)[keyof typeof AiGa
72
76
  * The full set of authorable context attribute keys for AiGateway.
73
77
  * Iterate this to enumerate the authorable surface (cockpit, conformance).
74
78
  */
75
- export declare const AiGatewayContextKeys: readonly ["content", "crime_score", "detected_threats", "hate_speech_score", "highest_severity", "indirect_injection_score", "injection_score", "invisible_chars_detected", "invisible_chars_score", "jailbreak_score", "loop_count", "loop_detected", "max_threat_severity", "mcp_config_risk", "mcp_risk_score", "mcp_server", "mcp_server_verified", "mcp_tool", "model_name", "model_provider", "pattern_type", "pii_count", "pii_detected", "pii_score", "pii_types", "privilege_scope", "profanity_score", "role", "rug_pull_detected", "rug_pull_score", "secret_count", "secret_types", "secrets_detected", "sequence_risk", "session_command_injection", "session_cumulative_risk_score", "session_injection_detected", "session_max_command_injection_score", "session_max_injection_score", "session_max_jailbreak_score", "session_max_pii_score", "session_max_secret_score", "session_pii_detected", "session_pii_types", "session_secret_types", "session_secrets_detected", "session_threat_turns", "sexual_score", "suspicious_pattern", "threat_categories", "threat_count", "tool_category", "tool_is_builtin", "tool_is_sensitive", "tool_name", "tool_operation_classes", "tool_poisoning_detected", "tool_poisoning_score", "tool_risk_score", "violence_score", "weapons_score"];
79
+ export declare const AiGatewayContextKeys: readonly ["content", "crime_score", "detected_threats", "hate_speech_score", "highest_severity", "indirect_injection_score", "injection_score", "invisible_chars_detected", "invisible_chars_score", "jailbreak_score", "loop_count", "loop_detected", "max_threat_severity", "mcp_config_risk", "mcp_risk_score", "mcp_server", "mcp_server_verified", "mcp_tool", "model_name", "model_provider", "pattern_type", "pii_count", "pii_detected", "pii_score", "pii_types", "privilege_scope", "profanity_score", "role", "rpm_exceeded", "rpm_remaining_pct", "rug_pull_detected", "rug_pull_score", "secret_count", "secret_types", "secrets_detected", "sequence_risk", "session_command_injection", "session_cumulative_risk_score", "session_injection_detected", "session_max_command_injection_score", "session_max_injection_score", "session_max_jailbreak_score", "session_max_pii_score", "session_max_secret_score", "session_pii_detected", "session_pii_types", "session_secret_types", "session_secrets_detected", "session_threat_turns", "sexual_score", "suspicious_pattern", "threat_categories", "threat_count", "tool_category", "tool_is_builtin", "tool_is_sensitive", "tool_name", "tool_operation_classes", "tool_poisoning_detected", "tool_poisoning_score", "tool_risk_score", "tpm_exceeded", "tpm_remaining_pct", "violence_score", "weapons_score"];
@@ -35,6 +35,8 @@ export const AiGatewayContextKey = {
35
35
  PrivilegeScope: 'privilege_scope',
36
36
  ProfanityScore: 'profanity_score',
37
37
  Role: 'role',
38
+ RpmExceeded: 'rpm_exceeded',
39
+ RpmRemainingPct: 'rpm_remaining_pct',
38
40
  RugPullDetected: 'rug_pull_detected',
39
41
  RugPullScore: 'rug_pull_score',
40
42
  SecretCount: 'secret_count',
@@ -66,6 +68,8 @@ export const AiGatewayContextKey = {
66
68
  ToolPoisoningDetected: 'tool_poisoning_detected',
67
69
  ToolPoisoningScore: 'tool_poisoning_score',
68
70
  ToolRiskScore: 'tool_risk_score',
71
+ TpmExceeded: 'tpm_exceeded',
72
+ TpmRemainingPct: 'tpm_remaining_pct',
69
73
  ViolenceScore: 'violence_score',
70
74
  WeaponsScore: 'weapons_score',
71
75
  };
@@ -102,6 +106,8 @@ export const AiGatewayContextKeys = [
102
106
  AiGatewayContextKey.PrivilegeScope,
103
107
  AiGatewayContextKey.ProfanityScore,
104
108
  AiGatewayContextKey.Role,
109
+ AiGatewayContextKey.RpmExceeded,
110
+ AiGatewayContextKey.RpmRemainingPct,
105
111
  AiGatewayContextKey.RugPullDetected,
106
112
  AiGatewayContextKey.RugPullScore,
107
113
  AiGatewayContextKey.SecretCount,
@@ -133,6 +139,8 @@ export const AiGatewayContextKeys = [
133
139
  AiGatewayContextKey.ToolPoisoningDetected,
134
140
  AiGatewayContextKey.ToolPoisoningScore,
135
141
  AiGatewayContextKey.ToolRiskScore,
142
+ AiGatewayContextKey.TpmExceeded,
143
+ AiGatewayContextKey.TpmRemainingPct,
136
144
  AiGatewayContextKey.ViolenceScore,
137
145
  AiGatewayContextKey.WeaponsScore,
138
146
  ];
@@ -85,6 +85,8 @@ export declare const GuardrailsContextKey: {
85
85
  readonly ProfanityScore: "profanity_score";
86
86
  readonly RequestId: "request_id";
87
87
  readonly Role: "role";
88
+ readonly RpmExceeded: "rpm_exceeded";
89
+ readonly RpmRemainingPct: "rpm_remaining_pct";
88
90
  readonly RugPullDetected: "rug_pull_detected";
89
91
  readonly RugPullScore: "rug_pull_score";
90
92
  readonly RugPullType: "rug_pull_type";
@@ -125,6 +127,8 @@ export declare const GuardrailsContextKey: {
125
127
  readonly ToolPoisoningType: "tool_poisoning_type";
126
128
  readonly ToolRiskScore: "tool_risk_score";
127
129
  readonly TopicConfidence: "topic_confidence";
130
+ readonly TpmExceeded: "tpm_exceeded";
131
+ readonly TpmRemainingPct: "tpm_remaining_pct";
128
132
  readonly ViolenceScore: "violence_score";
129
133
  readonly WeaponsScore: "weapons_score";
130
134
  };
@@ -133,4 +137,4 @@ export type GuardrailsContextKey = (typeof GuardrailsContextKey)[keyof typeof Gu
133
137
  * The full set of authorable context attribute keys for Guardrails.
134
138
  * Iterate this to enumerate the authorable surface (cockpit, conformance).
135
139
  */
136
- export declare const GuardrailsContextKeys: readonly ["agent_framework", "agent_id", "agent_publisher", "agent_trust_level", "agent_type", "budget_exceeded", "budget_remaining_pct", "code_languages", "code_ratio", "command_injection_detected", "command_injection_score", "command_injection_type", "contains_code", "contains_non_ascii", "content_safety_blocked", "content_safety_score", "content_topics", "content_type", "conversation_turn", "crime_score", "cross_origin_detected", "cross_origin_score", "cross_origin_type", "detected_language", "detected_script", "detector_count", "direction", "encoded_content_detected", "encoded_count", "encoded_score", "encoded_types", "factuality_score", "hallucination_score", "hate_speech_score", "highest_severity", "identity_type", "indirect_injection_score", "indirect_injection_type", "injection_deep_context_score", "injection_pulse_score", "injection_score", "injection_type", "invisible_chars_detected", "invisible_chars_score", "is_english", "is_latin_script", "jailbreak_deep_context_score", "jailbreak_pulse_score", "jailbreak_score", "keyword_categories", "keyword_count", "keyword_matched", "language_confidence", "loop_count", "loop_detected", "loop_tool", "mcp_config_risk", "mcp_risk_score", "mcp_risk_type", "mcp_server", "mcp_server_verified", "mcp_tool", "multi_turn_detection", "param_type_violation", "param_type_violations", "path", "path_traversal_detected", "path_traversal_severity", "path_traversal_type", "pattern_type", "phishing_detected", "pii_count", "pii_detected", "pii_score", "pii_types", "principal", "privilege_scope", "profanity_score", "request_id", "role", "rug_pull_detected", "rug_pull_score", "rug_pull_type", "script_confidence", "secret_count", "secret_types", "secrets_detected", "sentiment_score", "sequence_risk", "session_command_injection", "session_cumulative_risk_score", "session_injection_detected", "session_max_command_injection_score", "session_max_injection_score", "session_max_jailbreak_score", "session_max_pii_score", "session_max_secret_score", "session_max_sensitivity", "session_original_request", "session_pii_detected", "session_pii_types", "session_secret_types", "session_secrets_detected", "session_threat_turns", "sexual_score", "sql_injection_detected", "sql_injection_score", "sql_injection_type", "suspicious_pattern", "timestamp", "tool_category", "tool_is_builtin", "tool_is_sensitive", "tool_name", "tool_operation_classes", "tool_poisoning_detected", "tool_poisoning_score", "tool_poisoning_type", "tool_risk_score", "topic_confidence", "violence_score", "weapons_score"];
140
+ export declare const GuardrailsContextKeys: readonly ["agent_framework", "agent_id", "agent_publisher", "agent_trust_level", "agent_type", "budget_exceeded", "budget_remaining_pct", "code_languages", "code_ratio", "command_injection_detected", "command_injection_score", "command_injection_type", "contains_code", "contains_non_ascii", "content_safety_blocked", "content_safety_score", "content_topics", "content_type", "conversation_turn", "crime_score", "cross_origin_detected", "cross_origin_score", "cross_origin_type", "detected_language", "detected_script", "detector_count", "direction", "encoded_content_detected", "encoded_count", "encoded_score", "encoded_types", "factuality_score", "hallucination_score", "hate_speech_score", "highest_severity", "identity_type", "indirect_injection_score", "indirect_injection_type", "injection_deep_context_score", "injection_pulse_score", "injection_score", "injection_type", "invisible_chars_detected", "invisible_chars_score", "is_english", "is_latin_script", "jailbreak_deep_context_score", "jailbreak_pulse_score", "jailbreak_score", "keyword_categories", "keyword_count", "keyword_matched", "language_confidence", "loop_count", "loop_detected", "loop_tool", "mcp_config_risk", "mcp_risk_score", "mcp_risk_type", "mcp_server", "mcp_server_verified", "mcp_tool", "multi_turn_detection", "param_type_violation", "param_type_violations", "path", "path_traversal_detected", "path_traversal_severity", "path_traversal_type", "pattern_type", "phishing_detected", "pii_count", "pii_detected", "pii_score", "pii_types", "principal", "privilege_scope", "profanity_score", "request_id", "role", "rpm_exceeded", "rpm_remaining_pct", "rug_pull_detected", "rug_pull_score", "rug_pull_type", "script_confidence", "secret_count", "secret_types", "secrets_detected", "sentiment_score", "sequence_risk", "session_command_injection", "session_cumulative_risk_score", "session_injection_detected", "session_max_command_injection_score", "session_max_injection_score", "session_max_jailbreak_score", "session_max_pii_score", "session_max_secret_score", "session_max_sensitivity", "session_original_request", "session_pii_detected", "session_pii_types", "session_secret_types", "session_secrets_detected", "session_threat_turns", "sexual_score", "sql_injection_detected", "sql_injection_score", "sql_injection_type", "suspicious_pattern", "timestamp", "tool_category", "tool_is_builtin", "tool_is_sensitive", "tool_name", "tool_operation_classes", "tool_poisoning_detected", "tool_poisoning_score", "tool_poisoning_type", "tool_risk_score", "topic_confidence", "tpm_exceeded", "tpm_remaining_pct", "violence_score", "weapons_score"];