Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions openapi/SOURCE.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"verification.json": {
"url": "https://docs.didit.me/openapi-25.json",
"sha256": "2b0b333987cf2026b56d1ac6a2093ddb5888b6c98495d12d49be96e4cb0a37fd",
"fetched_at": "2026-11-20T19:12:24Z"
"sha256": "eb023f313be71c3ad514cc69387cb03a903e094ba1565dc219fa3735c044005e",
"fetched_at": "2026-11-21T12:14:16Z"
},
"account.json": {
"url": "https://docs.didit.me/openapi-auth.json",
"sha256": "38ce5a0dda5a0843c95c606819eb65e5d4f6ca474f9e453595cdf2e1c0eae572",
"fetched_at": "2026-11-20T19:12:24Z"
"sha256": "ad62ebe753a36a98b8a7516e099efe7f1fae4229491c6702248c02c61afbc220",
"fetched_at": "2026-11-21T12:14:16Z"
},
"webhook-vectors.json": {
"generator": "product-automations scripts/server-sdks/make_vectors.py (seeded 2026-10-17)",
Expand All @@ -16,6 +16,6 @@
"authentication.json": {
"url": "https://docs.didit.me/openapi-authentication.json",
"sha256": "e365ac52a28d8a68d8c1b9497509f882ea075ecdfad491aa5b36dc720c33405b",
"fetched_at": "2026-11-20T19:12:24Z"
"fetched_at": "2026-11-21T12:14:16Z"
}
}
6,719 changes: 6,000 additions & 719 deletions openapi/account.json

Large diffs are not rendered by default.

130 changes: 129 additions & 1 deletion openapi/verification.json
Original file line number Diff line number Diff line change
Expand Up @@ -87086,7 +87086,8 @@
"additionalProperties": true,
"properties": {
"stage": {
"type": "string"
"type": "string",
"description": "`none` (not set up; free reports still run while `free_reports.remaining` is above 0), `shadow` or `live`."
},
"last_report_at": {
"type": "string",
Expand All @@ -87111,6 +87112,21 @@
},
"preparing": {
"type": "integer"
},
"free_reports": {
"type": "object",
"description": "The organization's free reports: the first reports run with no setup, on any plan, and are never charged.",
"properties": {
"limit": {
"type": "integer"
},
"used": {
"type": "integer"
},
"remaining": {
"type": "integer"
}
}
}
}
}
Expand Down Expand Up @@ -99436,6 +99452,109 @@
}
]
}
},
"/v3/investigator/offer/": {
"get": {
"operationId": "investigator_offer",
"summary": "Investigator agent offer",
"description": "Whether to offer the Investigator agent to this application: its decisions taken by hand in the last 30 days, the average handling time, the people who stopped halfway and whether follow-ups are on. Read from the daily analytics, never from a scan of sessions. `show` is true when 20 or more decisions were taken by hand and the agent is not set up, or when follow-ups are off and 50 or more people stopped halfway.",
"tags": [
"Investigator"
],
"security": [
{
"ApiKeyAuth": []
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"show": {
"type": "boolean"
},
"manual_decisions_30d": {
"type": "integer"
},
"avg_handling_seconds": {
"type": "integer",
"nullable": true
},
"stopped_halfway_30d": {
"type": "integer"
},
"stage": {
"type": "string",
"enum": [
"none",
"shadow",
"live"
]
},
"followups_on": {
"type": "boolean"
}
}
}
}
}
},
"401": {
"description": "Missing or invalid API key."
},
"403": {
"description": "The key lacks read access to the application settings."
}
},
"parameters": [],
"x-didit-sdk": {
"resource": "investigator",
"method": "retrieve_offer",
"auth": "api_key",
"server": true
},
"x-codeSamples": [
{
"lang": "python",
"label": "Python",
"source": "from didit import Didit\n\n# Reads DIDIT_API_KEY.\nclient = Didit()\n\nresult = client.investigator.retrieve_offer()\nprint(result)"
},
{
"lang": "javascript",
"label": "Node.js",
"source": "import Didit from \"@didit-protocol/sdk-node\";\n\n// Reads DIDIT_API_KEY.\nconst didit = new Didit();\n\nconst result = await didit.investigator.retrieveOffer();\nconsole.log(result);"
},
{
"lang": "go",
"label": "Go",
"source": "ctx := context.Background()\n// Reads DIDIT_API_KEY.\nclient := didit.NewClient()\n\nresult, err := client.Investigator.RetrieveOffer(ctx)\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
},
{
"lang": "java",
"label": "Java",
"source": "import me.didit.Didit;\n\n// Reads DIDIT_API_KEY.\nDidit client = new Didit();\n\nvar result = client.investigator().retrieveOffer();\nSystem.out.println(result);"
},
{
"lang": "php",
"label": "PHP",
"source": "<?php\n\nrequire 'vendor/autoload.php';\n\nuse Didit\\DiditClient;\n\n// Reads DIDIT_API_KEY.\n$didit = new DiditClient();\n\n$result = $didit->investigator->retrieveOffer();\nprint_r($result->toArray());"
},
{
"lang": "ruby",
"label": "Ruby",
"source": "require \"didit\"\n\n# Reads DIDIT_API_KEY.\ndidit = Didit::Client.new\n\nresult = didit.investigator.retrieve_offer\nputs result.to_h"
},
{
"lang": "csharp",
"label": ".NET",
"source": "using System;\nusing System.Text.Json;\nusing Didit;\n\n// Reads DIDIT_API_KEY.\nusing var client = new DiditClient();\n\nvar result = await client.Investigator.RetrieveOfferAsync();\nConsole.WriteLine(JsonSerializer.Serialize(result));"
}
]
}
}
},
"components": {
Expand Down Expand Up @@ -132090,6 +132209,7 @@
"stage": {
"type": "string",
"enum": [
"none",
"shadow",
"live"
]
Expand Down Expand Up @@ -132145,6 +132265,14 @@
"type": "string",
"format": "date-time",
"nullable": true
},
"free_report": {
"type": "boolean",
"description": "True for one of the organization's free reports: a review run at stage `none`, with no setup, never charged."
},
"example": {
"type": "boolean",
"description": "True for an example report shown on a sandbox application. Example reports are read only and never cost anything."
}
}
},
Expand Down
13 changes: 13 additions & 0 deletions src/didit/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from didit.resources.aml import Aml, AsyncAml
from didit.resources.aml_monitoring import AmlMonitoring, AsyncAmlMonitoring
from didit.resources.analytics import Analytics, AsyncAnalytics
from didit.resources.authentication_setup import AsyncAuthenticationSetup, AuthenticationSetup
from didit.resources.bank import AsyncBank, Bank
from didit.resources.billing import AsyncBilling, Billing
from didit.resources.biometric_templates import AsyncBiometricTemplates, BiometricTemplates
Expand Down Expand Up @@ -96,6 +97,12 @@ def analytics(self) -> Analytics:

return Analytics(self)

@cached_property
def authentication_setup(self) -> AuthenticationSetup:
from didit.resources.authentication_setup import AuthenticationSetup

return AuthenticationSetup(self)

@cached_property
def bank(self) -> Bank:
from didit.resources.bank import Bank
Expand Down Expand Up @@ -364,6 +371,12 @@ def analytics(self) -> AsyncAnalytics:

return AsyncAnalytics(self)

@cached_property
def authentication_setup(self) -> AsyncAuthenticationSetup:
from didit.resources.authentication_setup import AsyncAuthenticationSetup

return AsyncAuthenticationSetup(self)

@cached_property
def bank(self) -> AsyncBank:
from didit.resources.bank import AsyncBank
Expand Down
Loading
Loading