forked from mirrors/kingfisher
33 lines
829 B
YAML
33 lines
829 B
YAML
rules:
|
|
- name: Mem0 API Key
|
|
id: kingfisher.mem0.1
|
|
pattern: |
|
|
(?x)
|
|
\b
|
|
(
|
|
m0-[A-Za-z0-9]{24,44}
|
|
)
|
|
\b
|
|
pattern_requirements:
|
|
min_digits: 1
|
|
min_entropy: 3.0
|
|
confidence: medium
|
|
examples:
|
|
- 'MEM0_API_KEY=m0-a1b2c3d4e5f6g7h8i9j0k1l2m3n4'
|
|
- 'Authorization: Token m0-xK8m2LpQr5nW0vYz3cJ7aB4dE6fG8h'
|
|
references:
|
|
- https://docs.mem0.ai/api-reference
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://api.mem0.ai/v1/memories/?limit=1
|
|
headers:
|
|
Authorization: "Token {{ TOKEN }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status: [200]
|
|
- type: JsonValid
|