@kya-os/contracts 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-deployment-utils.d.ts +0 -1
- package/dist/agent-deployment-utils.js +0 -1
- package/dist/agent-deployment.d.ts +0 -1
- package/dist/agent-deployment.js +0 -1
- package/dist/agentshield-api/admin-schemas.d.ts +0 -1
- package/dist/agentshield-api/admin-schemas.js +0 -1
- package/dist/agentshield-api/admin-types.d.ts +0 -1
- package/dist/agentshield-api/admin-types.js +0 -1
- package/dist/agentshield-api/endpoints.d.ts +0 -1
- package/dist/agentshield-api/endpoints.js +0 -1
- package/dist/agentshield-api/index.d.ts +0 -1
- package/dist/agentshield-api/schemas.d.ts +186 -186
- package/dist/agentshield-api/types.d.ts +0 -1
- package/dist/audit/index.d.ts +21 -21
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -1
- package/dist/compute-binding.d.ts +0 -1
- package/dist/compute-binding.js +0 -1
- package/dist/compute.d.ts +19 -19
- package/dist/config/base.d.ts +0 -1
- package/dist/config/base.js +0 -1
- package/dist/config/builder.d.ts +0 -1
- package/dist/config/builder.js +0 -1
- package/dist/config/client-messages.d.ts +0 -1
- package/dist/config/client-messages.js +0 -1
- package/dist/config/delegation.d.ts +0 -1
- package/dist/config/delegation.js +0 -1
- package/dist/config/identity.d.ts +0 -1
- package/dist/config/identity.js +0 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -1
- package/dist/config/proofing.d.ts +0 -1
- package/dist/config/proofing.js +0 -1
- package/dist/config/tool-context.d.ts +0 -1
- package/dist/config/tool-context.js +0 -1
- package/dist/config/tool-protection.d.ts +0 -1
- package/dist/consent/schemas.d.ts +0 -1
- package/dist/consent/schemas.js +0 -1
- package/dist/consent/types.d.ts +0 -1
- package/dist/consent/types.js +0 -1
- package/dist/dashboard-config/default-config.d.ts +0 -1
- package/dist/dashboard-config/index.d.ts +0 -1
- package/dist/dashboard-config/schemas.d.ts +2436 -2436
- package/dist/dashboard-config/types.d.ts +0 -1
- package/dist/delegation/constraints.d.ts +0 -1
- package/dist/delegation/constraints.js +0 -1
- package/dist/delegation/index.d.ts +0 -1
- package/dist/delegation/index.js +0 -1
- package/dist/delegation/schemas.d.ts +0 -1
- package/dist/delegation/schemas.js +0 -1
- package/dist/deploy/index.d.ts +0 -1
- package/dist/deploy/index.js +0 -1
- package/dist/deploy/schemas.d.ts +0 -1
- package/dist/deploy/schemas.js +0 -1
- package/dist/deploy/types.d.ts +0 -1
- package/dist/deploy/types.js +0 -1
- package/dist/did/index.d.ts +0 -1
- package/dist/did/index.js +0 -1
- package/dist/did/resolve-contract.d.ts +0 -1
- package/dist/did/resolve-contract.js +0 -1
- package/dist/did/schemas.d.ts +0 -1
- package/dist/did/schemas.js +0 -1
- package/dist/did/types.d.ts +0 -1
- package/dist/did/types.js +0 -1
- package/dist/env/constants.d.ts +0 -1
- package/dist/env/constants.js +0 -1
- package/dist/env/index.d.ts +0 -1
- package/dist/env/index.js +0 -1
- package/dist/gateway/agents.d.ts +0 -1
- package/dist/gateway/agents.js +0 -1
- package/dist/gateway/cron.d.ts +0 -1
- package/dist/gateway/cron.js +0 -1
- package/dist/gateway/index.d.ts +0 -1
- package/dist/gateway/index.js +0 -1
- package/dist/gateway/sessions.d.ts +0 -1
- package/dist/gateway/sessions.js +0 -1
- package/dist/gateway/skills.d.ts +0 -1
- package/dist/gateway/skills.js +0 -1
- package/dist/gateway/usage.d.ts +0 -1
- package/dist/gateway/usage.js +0 -1
- package/dist/handshake.d.ts +24 -24
- package/dist/identity/index.d.ts +0 -1
- package/dist/identity/index.js +0 -1
- package/dist/identity/schemas.d.ts +0 -1
- package/dist/identity/schemas.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/molti/admin-ws.d.ts +0 -1
- package/dist/molti/admin-ws.js +0 -1
- package/dist/molti/index.d.ts +0 -1
- package/dist/molti/index.js +0 -1
- package/dist/molti/schemas.d.ts +0 -1
- package/dist/molti/schemas.js +0 -1
- package/dist/molti/types.d.ts +0 -1
- package/dist/molti/types.js +0 -1
- package/dist/pairing/index.d.ts +0 -1
- package/dist/pairing/index.js +0 -1
- package/dist/policy/index.d.ts +0 -1
- package/dist/policy/index.js +0 -1
- package/dist/policy/schemas.d.ts +0 -1
- package/dist/policy/schemas.js +0 -1
- package/dist/proof/proof-record.d.ts +0 -1
- package/dist/proof/proof-record.js +0 -1
- package/dist/proof/signing-spec.d.ts +0 -1
- package/dist/proof/signing-spec.js +0 -1
- package/dist/proof.d.ts +66 -66
- package/dist/registry.d.ts +0 -1
- package/dist/registry.js +0 -1
- package/dist/reputation/api.d.ts +0 -1
- package/dist/reputation/api.js +0 -1
- package/dist/reputation/constants.d.ts +0 -1
- package/dist/reputation/constants.js +0 -1
- package/dist/reputation/credentials.d.ts +0 -1
- package/dist/reputation/credentials.js +0 -1
- package/dist/reputation/index.d.ts +1 -1
- package/dist/reputation/index.js +2 -1
- package/dist/reputation/interactions.d.ts +146 -0
- package/dist/reputation/interactions.js +82 -0
- package/dist/reputation/schemas.d.ts +0 -1
- package/dist/reputation/schemas.js +0 -1
- package/dist/runtime/errors.d.ts +0 -1
- package/dist/runtime/errors.js +0 -1
- package/dist/runtime/index.d.ts +0 -1
- package/dist/test.d.ts +0 -1
- package/dist/test.js +0 -1
- package/dist/tlkrc/index.d.ts +0 -1
- package/dist/tlkrc/index.js +0 -1
- package/dist/tlkrc/rotation.d.ts +0 -1
- package/dist/tlkrc/rotation.js +0 -1
- package/dist/tool-protection/index.d.ts +36 -36
- package/dist/utils/validation.d.ts +0 -1
- package/dist/utils/validation.js +0 -1
- package/dist/vault/schemas.d.ts +2 -2
- package/dist/vc/index.d.ts +0 -1
- package/dist/vc/index.js +0 -1
- package/dist/vc/schemas.d.ts +0 -1
- package/dist/vc/schemas.js +0 -1
- package/dist/vc/statuslist.d.ts +0 -1
- package/dist/vc/statuslist.js +0 -1
- package/dist/verifier/index.d.ts +0 -1
- package/dist/verifier.d.ts +6 -6
- package/dist/well-known/index.d.ts +0 -1
- package/dist/well-known/index.js +0 -1
- package/package.json +1 -1
- package/dist/__fixtures__/index.d.ts +0 -8
- package/dist/__fixtures__/index.d.ts.map +0 -1
- package/dist/__fixtures__/index.js +0 -29
- package/dist/__fixtures__/index.js.map +0 -1
- package/dist/__fixtures__/proof/ed25519-fixtures.d.ts +0 -253
- package/dist/__fixtures__/proof/ed25519-fixtures.d.ts.map +0 -1
- package/dist/__fixtures__/proof/ed25519-fixtures.js +0 -247
- package/dist/__fixtures__/proof/ed25519-fixtures.js.map +0 -1
- package/dist/__fixtures__/proof/keys-and-payloads.json +0 -103
- package/dist/agent-deployment-utils.d.ts.map +0 -1
- package/dist/agent-deployment-utils.js.map +0 -1
- package/dist/agent-deployment.d.ts.map +0 -1
- package/dist/agent-deployment.js.map +0 -1
- package/dist/agentshield-api/admin-schemas.d.ts.map +0 -1
- package/dist/agentshield-api/admin-schemas.js.map +0 -1
- package/dist/agentshield-api/admin-types.d.ts.map +0 -1
- package/dist/agentshield-api/admin-types.js.map +0 -1
- package/dist/agentshield-api/endpoints.d.ts.map +0 -1
- package/dist/agentshield-api/endpoints.js.map +0 -1
- package/dist/agentshield-api/index.d.ts.map +0 -1
- package/dist/agentshield-api/index.js.map +0 -1
- package/dist/agentshield-api/schemas.d.ts.map +0 -1
- package/dist/agentshield-api/schemas.js.map +0 -1
- package/dist/agentshield-api/types.d.ts.map +0 -1
- package/dist/agentshield-api/types.js.map +0 -1
- package/dist/audit/index.d.ts.map +0 -1
- package/dist/audit/index.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/compute-binding.d.ts.map +0 -1
- package/dist/compute-binding.js.map +0 -1
- package/dist/compute.d.ts.map +0 -1
- package/dist/compute.js.map +0 -1
- package/dist/config/base.d.ts.map +0 -1
- package/dist/config/base.js.map +0 -1
- package/dist/config/builder.d.ts.map +0 -1
- package/dist/config/builder.js.map +0 -1
- package/dist/config/client-messages.d.ts.map +0 -1
- package/dist/config/client-messages.js.map +0 -1
- package/dist/config/delegation.d.ts.map +0 -1
- package/dist/config/delegation.js.map +0 -1
- package/dist/config/identity.d.ts.map +0 -1
- package/dist/config/identity.js.map +0 -1
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/proofing.d.ts.map +0 -1
- package/dist/config/proofing.js.map +0 -1
- package/dist/config/tool-context.d.ts.map +0 -1
- package/dist/config/tool-context.js.map +0 -1
- package/dist/config/tool-protection.d.ts.map +0 -1
- package/dist/config/tool-protection.js.map +0 -1
- package/dist/consent/index.d.ts.map +0 -1
- package/dist/consent/index.js.map +0 -1
- package/dist/consent/schemas.d.ts.map +0 -1
- package/dist/consent/schemas.js.map +0 -1
- package/dist/consent/types.d.ts.map +0 -1
- package/dist/consent/types.js.map +0 -1
- package/dist/dashboard-config/default-config.d.ts.map +0 -1
- package/dist/dashboard-config/default-config.js.map +0 -1
- package/dist/dashboard-config/index.d.ts.map +0 -1
- package/dist/dashboard-config/index.js.map +0 -1
- package/dist/dashboard-config/schemas.d.ts.map +0 -1
- package/dist/dashboard-config/schemas.js.map +0 -1
- package/dist/dashboard-config/types.d.ts.map +0 -1
- package/dist/dashboard-config/types.js.map +0 -1
- package/dist/delegation/constraints.d.ts.map +0 -1
- package/dist/delegation/constraints.js.map +0 -1
- package/dist/delegation/index.d.ts.map +0 -1
- package/dist/delegation/index.js.map +0 -1
- package/dist/delegation/schemas.d.ts.map +0 -1
- package/dist/delegation/schemas.js.map +0 -1
- package/dist/deploy/index.d.ts.map +0 -1
- package/dist/deploy/index.js.map +0 -1
- package/dist/deploy/schemas.d.ts.map +0 -1
- package/dist/deploy/schemas.js.map +0 -1
- package/dist/deploy/types.d.ts.map +0 -1
- package/dist/deploy/types.js.map +0 -1
- package/dist/did/index.d.ts.map +0 -1
- package/dist/did/index.js.map +0 -1
- package/dist/did/resolve-contract.d.ts.map +0 -1
- package/dist/did/resolve-contract.js.map +0 -1
- package/dist/did/schemas.d.ts.map +0 -1
- package/dist/did/schemas.js.map +0 -1
- package/dist/did/types.d.ts.map +0 -1
- package/dist/did/types.js.map +0 -1
- package/dist/env/constants.d.ts.map +0 -1
- package/dist/env/constants.js.map +0 -1
- package/dist/env/index.d.ts.map +0 -1
- package/dist/env/index.js.map +0 -1
- package/dist/gateway/agents.d.ts.map +0 -1
- package/dist/gateway/agents.js.map +0 -1
- package/dist/gateway/cron.d.ts.map +0 -1
- package/dist/gateway/cron.js.map +0 -1
- package/dist/gateway/index.d.ts.map +0 -1
- package/dist/gateway/index.js.map +0 -1
- package/dist/gateway/sessions.d.ts.map +0 -1
- package/dist/gateway/sessions.js.map +0 -1
- package/dist/gateway/skills.d.ts.map +0 -1
- package/dist/gateway/skills.js.map +0 -1
- package/dist/gateway/usage.d.ts.map +0 -1
- package/dist/gateway/usage.js.map +0 -1
- package/dist/handshake.d.ts.map +0 -1
- package/dist/handshake.js.map +0 -1
- package/dist/identity/index.d.ts.map +0 -1
- package/dist/identity/index.js.map +0 -1
- package/dist/identity/schemas.d.ts.map +0 -1
- package/dist/identity/schemas.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/molti/admin-ws.d.ts.map +0 -1
- package/dist/molti/admin-ws.js.map +0 -1
- package/dist/molti/index.d.ts.map +0 -1
- package/dist/molti/index.js.map +0 -1
- package/dist/molti/schemas.d.ts.map +0 -1
- package/dist/molti/schemas.js.map +0 -1
- package/dist/molti/types.d.ts.map +0 -1
- package/dist/molti/types.js.map +0 -1
- package/dist/openclaw/index.d.ts +0 -20
- package/dist/openclaw/index.js +0 -28
- package/dist/openclaw/types.d.ts +0 -714
- package/dist/openclaw/types.js +0 -122
- package/dist/org-secret-definitions.d.ts +0 -18
- package/dist/org-secret-definitions.js +0 -72
- package/dist/pairing/index.d.ts.map +0 -1
- package/dist/pairing/index.js.map +0 -1
- package/dist/policy/index.d.ts.map +0 -1
- package/dist/policy/index.js.map +0 -1
- package/dist/policy/schemas.d.ts.map +0 -1
- package/dist/policy/schemas.js.map +0 -1
- package/dist/proof/index.d.ts.map +0 -1
- package/dist/proof/index.js.map +0 -1
- package/dist/proof/proof-record.d.ts.map +0 -1
- package/dist/proof/proof-record.js.map +0 -1
- package/dist/proof/signing-spec.d.ts.map +0 -1
- package/dist/proof/signing-spec.js.map +0 -1
- package/dist/proof.d.ts.map +0 -1
- package/dist/proof.js.map +0 -1
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js.map +0 -1
- package/dist/reputation/api.d.ts.map +0 -1
- package/dist/reputation/api.js.map +0 -1
- package/dist/reputation/constants.d.ts.map +0 -1
- package/dist/reputation/constants.js.map +0 -1
- package/dist/reputation/credentials.d.ts.map +0 -1
- package/dist/reputation/credentials.js.map +0 -1
- package/dist/reputation/index.d.ts.map +0 -1
- package/dist/reputation/index.js.map +0 -1
- package/dist/reputation/schemas.d.ts.map +0 -1
- package/dist/reputation/schemas.js.map +0 -1
- package/dist/runtime/errors.d.ts.map +0 -1
- package/dist/runtime/errors.js.map +0 -1
- package/dist/runtime/headers.d.ts.map +0 -1
- package/dist/runtime/headers.js.map +0 -1
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js.map +0 -1
- package/dist/test.d.ts.map +0 -1
- package/dist/test.js.map +0 -1
- package/dist/tlkrc/index.d.ts.map +0 -1
- package/dist/tlkrc/index.js.map +0 -1
- package/dist/tlkrc/rotation.d.ts.map +0 -1
- package/dist/tlkrc/rotation.js.map +0 -1
- package/dist/tool-protection/index.d.ts.map +0 -1
- package/dist/tool-protection/index.js.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js.map +0 -1
- package/dist/vc/index.d.ts.map +0 -1
- package/dist/vc/index.js.map +0 -1
- package/dist/vc/schemas.d.ts.map +0 -1
- package/dist/vc/schemas.js.map +0 -1
- package/dist/vc/statuslist.d.ts.map +0 -1
- package/dist/vc/statuslist.js.map +0 -1
- package/dist/verifier/index.d.ts.map +0 -1
- package/dist/verifier/index.js.map +0 -1
- package/dist/verifier.d.ts.map +0 -1
- package/dist/verifier.js.map +0 -1
- package/dist/well-known/index.d.ts.map +0 -1
- package/dist/well-known/index.js.map +0 -1
|
@@ -88,63 +88,63 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
88
88
|
delegationRef: z.ZodOptional<z.ZodString>;
|
|
89
89
|
clientDid: z.ZodOptional<z.ZodString>;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
did: string;
|
|
92
|
+
kid: string;
|
|
91
93
|
nonce: string;
|
|
92
94
|
audience: string;
|
|
93
95
|
sessionId: string;
|
|
94
|
-
|
|
95
|
-
kid: string;
|
|
96
|
+
ts: number;
|
|
96
97
|
requestHash: string;
|
|
97
98
|
responseHash: string;
|
|
98
|
-
ts: number;
|
|
99
99
|
clientDid?: string | undefined;
|
|
100
100
|
delegationRef?: string | undefined;
|
|
101
|
-
scopeId?: string | undefined;
|
|
102
101
|
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
102
|
+
scopeId?: string | undefined;
|
|
103
103
|
}, {
|
|
104
|
+
did: string;
|
|
105
|
+
kid: string;
|
|
104
106
|
nonce: string;
|
|
105
107
|
audience: string;
|
|
106
108
|
sessionId: string;
|
|
107
|
-
|
|
108
|
-
kid: string;
|
|
109
|
+
ts: number;
|
|
109
110
|
requestHash: string;
|
|
110
111
|
responseHash: string;
|
|
111
|
-
ts: number;
|
|
112
112
|
clientDid?: string | undefined;
|
|
113
113
|
delegationRef?: string | undefined;
|
|
114
|
-
scopeId?: string | undefined;
|
|
115
114
|
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
115
|
+
scopeId?: string | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
jws: string;
|
|
119
119
|
meta: {
|
|
120
|
+
did: string;
|
|
121
|
+
kid: string;
|
|
120
122
|
nonce: string;
|
|
121
123
|
audience: string;
|
|
122
124
|
sessionId: string;
|
|
123
|
-
|
|
124
|
-
kid: string;
|
|
125
|
+
ts: number;
|
|
125
126
|
requestHash: string;
|
|
126
127
|
responseHash: string;
|
|
127
|
-
ts: number;
|
|
128
128
|
clientDid?: string | undefined;
|
|
129
129
|
delegationRef?: string | undefined;
|
|
130
|
-
scopeId?: string | undefined;
|
|
131
130
|
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
131
|
+
scopeId?: string | undefined;
|
|
132
132
|
};
|
|
133
133
|
}, {
|
|
134
134
|
jws: string;
|
|
135
135
|
meta: {
|
|
136
|
+
did: string;
|
|
137
|
+
kid: string;
|
|
136
138
|
nonce: string;
|
|
137
139
|
audience: string;
|
|
138
140
|
sessionId: string;
|
|
139
|
-
|
|
140
|
-
kid: string;
|
|
141
|
+
ts: number;
|
|
141
142
|
requestHash: string;
|
|
142
143
|
responseHash: string;
|
|
143
|
-
ts: number;
|
|
144
144
|
clientDid?: string | undefined;
|
|
145
145
|
delegationRef?: string | undefined;
|
|
146
|
-
scopeId?: string | undefined;
|
|
147
146
|
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
147
|
+
scopeId?: string | undefined;
|
|
148
148
|
};
|
|
149
149
|
}>, "many">;
|
|
150
150
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -190,37 +190,37 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
190
190
|
identifier: string;
|
|
191
191
|
}>>;
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
|
-
timestamp: number;
|
|
194
193
|
agentDid: string;
|
|
194
|
+
projectId: string;
|
|
195
|
+
timestamp: number;
|
|
196
|
+
scopes: string[];
|
|
195
197
|
sessionId: string;
|
|
196
198
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
197
199
|
targetTools: string[];
|
|
198
|
-
scopes: string[];
|
|
199
|
-
projectId: string;
|
|
200
200
|
userDid?: string | undefined;
|
|
201
201
|
oauthIdentity?: {
|
|
202
202
|
provider: string;
|
|
203
203
|
identifier: string;
|
|
204
204
|
} | undefined;
|
|
205
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
205
206
|
delegationId?: string | undefined;
|
|
206
207
|
termsAccepted?: boolean | undefined;
|
|
207
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
208
208
|
}, {
|
|
209
|
-
timestamp: number;
|
|
210
209
|
agentDid: string;
|
|
210
|
+
projectId: string;
|
|
211
|
+
timestamp: number;
|
|
212
|
+
scopes: string[];
|
|
211
213
|
sessionId: string;
|
|
212
214
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
213
215
|
targetTools: string[];
|
|
214
|
-
scopes: string[];
|
|
215
|
-
projectId: string;
|
|
216
216
|
userDid?: string | undefined;
|
|
217
217
|
oauthIdentity?: {
|
|
218
218
|
provider: string;
|
|
219
219
|
identifier: string;
|
|
220
220
|
} | undefined;
|
|
221
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
221
222
|
delegationId?: string | undefined;
|
|
222
223
|
termsAccepted?: boolean | undefined;
|
|
223
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
224
224
|
}>, "many">>;
|
|
225
225
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -233,21 +233,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
233
233
|
}[] | undefined;
|
|
234
234
|
mcpServerUrl?: string | undefined;
|
|
235
235
|
consentEvents?: {
|
|
236
|
-
timestamp: number;
|
|
237
236
|
agentDid: string;
|
|
237
|
+
projectId: string;
|
|
238
|
+
timestamp: number;
|
|
239
|
+
scopes: string[];
|
|
238
240
|
sessionId: string;
|
|
239
241
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
240
242
|
targetTools: string[];
|
|
241
|
-
scopes: string[];
|
|
242
|
-
projectId: string;
|
|
243
243
|
userDid?: string | undefined;
|
|
244
244
|
oauthIdentity?: {
|
|
245
245
|
provider: string;
|
|
246
246
|
identifier: string;
|
|
247
247
|
} | undefined;
|
|
248
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
248
249
|
delegationId?: string | undefined;
|
|
249
250
|
termsAccepted?: boolean | undefined;
|
|
250
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
251
251
|
}[] | undefined;
|
|
252
252
|
}, {
|
|
253
253
|
toolCalls?: {
|
|
@@ -259,21 +259,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
259
259
|
}[] | undefined;
|
|
260
260
|
mcpServerUrl?: string | undefined;
|
|
261
261
|
consentEvents?: {
|
|
262
|
-
timestamp: number;
|
|
263
262
|
agentDid: string;
|
|
263
|
+
projectId: string;
|
|
264
|
+
timestamp: number;
|
|
265
|
+
scopes: string[];
|
|
264
266
|
sessionId: string;
|
|
265
267
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
266
268
|
targetTools: string[];
|
|
267
|
-
scopes: string[];
|
|
268
|
-
projectId: string;
|
|
269
269
|
userDid?: string | undefined;
|
|
270
270
|
oauthIdentity?: {
|
|
271
271
|
provider: string;
|
|
272
272
|
identifier: string;
|
|
273
273
|
} | undefined;
|
|
274
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
274
275
|
delegationId?: string | undefined;
|
|
275
276
|
termsAccepted?: boolean | undefined;
|
|
276
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
277
277
|
}[] | undefined;
|
|
278
278
|
}>>;
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -281,18 +281,18 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
281
281
|
proofs: {
|
|
282
282
|
jws: string;
|
|
283
283
|
meta: {
|
|
284
|
+
did: string;
|
|
285
|
+
kid: string;
|
|
284
286
|
nonce: string;
|
|
285
287
|
audience: string;
|
|
286
288
|
sessionId: string;
|
|
287
|
-
|
|
288
|
-
kid: string;
|
|
289
|
+
ts: number;
|
|
289
290
|
requestHash: string;
|
|
290
291
|
responseHash: string;
|
|
291
|
-
ts: number;
|
|
292
292
|
clientDid?: string | undefined;
|
|
293
293
|
delegationRef?: string | undefined;
|
|
294
|
-
scopeId?: string | undefined;
|
|
295
294
|
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
295
|
+
scopeId?: string | undefined;
|
|
296
296
|
};
|
|
297
297
|
}[];
|
|
298
298
|
delegation_id?: string | null | undefined;
|
|
@@ -306,21 +306,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
306
306
|
}[] | undefined;
|
|
307
307
|
mcpServerUrl?: string | undefined;
|
|
308
308
|
consentEvents?: {
|
|
309
|
-
timestamp: number;
|
|
310
309
|
agentDid: string;
|
|
310
|
+
projectId: string;
|
|
311
|
+
timestamp: number;
|
|
312
|
+
scopes: string[];
|
|
311
313
|
sessionId: string;
|
|
312
314
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
313
315
|
targetTools: string[];
|
|
314
|
-
scopes: string[];
|
|
315
|
-
projectId: string;
|
|
316
316
|
userDid?: string | undefined;
|
|
317
317
|
oauthIdentity?: {
|
|
318
318
|
provider: string;
|
|
319
319
|
identifier: string;
|
|
320
320
|
} | undefined;
|
|
321
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
321
322
|
delegationId?: string | undefined;
|
|
322
323
|
termsAccepted?: boolean | undefined;
|
|
323
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
324
324
|
}[] | undefined;
|
|
325
325
|
} | undefined;
|
|
326
326
|
}, {
|
|
@@ -328,18 +328,18 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
328
328
|
proofs: {
|
|
329
329
|
jws: string;
|
|
330
330
|
meta: {
|
|
331
|
+
did: string;
|
|
332
|
+
kid: string;
|
|
331
333
|
nonce: string;
|
|
332
334
|
audience: string;
|
|
333
335
|
sessionId: string;
|
|
334
|
-
|
|
335
|
-
kid: string;
|
|
336
|
+
ts: number;
|
|
336
337
|
requestHash: string;
|
|
337
338
|
responseHash: string;
|
|
338
|
-
ts: number;
|
|
339
339
|
clientDid?: string | undefined;
|
|
340
340
|
delegationRef?: string | undefined;
|
|
341
|
-
scopeId?: string | undefined;
|
|
342
341
|
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
342
|
+
scopeId?: string | undefined;
|
|
343
343
|
};
|
|
344
344
|
}[];
|
|
345
345
|
delegation_id?: string | null | undefined;
|
|
@@ -353,21 +353,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
353
353
|
}[] | undefined;
|
|
354
354
|
mcpServerUrl?: string | undefined;
|
|
355
355
|
consentEvents?: {
|
|
356
|
-
timestamp: number;
|
|
357
356
|
agentDid: string;
|
|
357
|
+
projectId: string;
|
|
358
|
+
timestamp: number;
|
|
359
|
+
scopes: string[];
|
|
358
360
|
sessionId: string;
|
|
359
361
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
360
362
|
targetTools: string[];
|
|
361
|
-
scopes: string[];
|
|
362
|
-
projectId: string;
|
|
363
363
|
userDid?: string | undefined;
|
|
364
364
|
oauthIdentity?: {
|
|
365
365
|
provider: string;
|
|
366
366
|
identifier: string;
|
|
367
367
|
} | undefined;
|
|
368
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
368
369
|
delegationId?: string | undefined;
|
|
369
370
|
termsAccepted?: boolean | undefined;
|
|
370
|
-
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
371
371
|
}[] | undefined;
|
|
372
372
|
} | undefined;
|
|
373
373
|
}>;
|
|
@@ -395,46 +395,46 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
395
395
|
details?: Record<string, unknown> | undefined;
|
|
396
396
|
}>;
|
|
397
397
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
proof_index: number;
|
|
399
398
|
error: {
|
|
400
399
|
code: string;
|
|
401
400
|
message: string;
|
|
402
401
|
details?: Record<string, unknown> | undefined;
|
|
403
402
|
};
|
|
404
|
-
}, {
|
|
405
403
|
proof_index: number;
|
|
404
|
+
}, {
|
|
406
405
|
error: {
|
|
407
406
|
code: string;
|
|
408
407
|
message: string;
|
|
409
408
|
details?: Record<string, unknown> | undefined;
|
|
410
409
|
};
|
|
410
|
+
proof_index: number;
|
|
411
411
|
}>, "many">>;
|
|
412
412
|
}, "strip", z.ZodTypeAny, {
|
|
413
413
|
success: boolean;
|
|
414
414
|
accepted: number;
|
|
415
415
|
rejected: number;
|
|
416
|
-
outcomes?: Record<string, number> | undefined;
|
|
417
416
|
errors?: {
|
|
418
|
-
proof_index: number;
|
|
419
417
|
error: {
|
|
420
418
|
code: string;
|
|
421
419
|
message: string;
|
|
422
420
|
details?: Record<string, unknown> | undefined;
|
|
423
421
|
};
|
|
422
|
+
proof_index: number;
|
|
424
423
|
}[] | undefined;
|
|
424
|
+
outcomes?: Record<string, number> | undefined;
|
|
425
425
|
}, {
|
|
426
426
|
success: boolean;
|
|
427
427
|
accepted: number;
|
|
428
428
|
rejected: number;
|
|
429
|
-
outcomes?: Record<string, number> | undefined;
|
|
430
429
|
errors?: {
|
|
431
|
-
proof_index: number;
|
|
432
430
|
error: {
|
|
433
431
|
code: string;
|
|
434
432
|
message: string;
|
|
435
433
|
details?: Record<string, unknown> | undefined;
|
|
436
434
|
};
|
|
435
|
+
proof_index: number;
|
|
437
436
|
}[] | undefined;
|
|
437
|
+
outcomes?: Record<string, number> | undefined;
|
|
438
438
|
}>;
|
|
439
439
|
/**
|
|
440
440
|
* Delegation credential schema
|
|
@@ -458,7 +458,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
458
458
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
459
459
|
domain: z.ZodOptional<z.ZodString>;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
|
-
type: "
|
|
461
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
462
462
|
provider?: string | undefined;
|
|
463
463
|
credentialType?: string | undefined;
|
|
464
464
|
rpId?: string | undefined;
|
|
@@ -466,7 +466,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
466
466
|
chainId?: number | undefined;
|
|
467
467
|
domain?: string | undefined;
|
|
468
468
|
}, {
|
|
469
|
-
type: "
|
|
469
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
470
470
|
provider?: string | undefined;
|
|
471
471
|
credentialType?: string | undefined;
|
|
472
472
|
rpId?: string | undefined;
|
|
@@ -476,12 +476,8 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
476
476
|
}>;
|
|
477
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
478
|
scopes: string[];
|
|
479
|
-
agent_did: string;
|
|
480
|
-
user_did: string;
|
|
481
|
-
issued_at: number;
|
|
482
|
-
created_at: number;
|
|
483
479
|
authorization: {
|
|
484
|
-
type: "
|
|
480
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
485
481
|
provider?: string | undefined;
|
|
486
482
|
credentialType?: string | undefined;
|
|
487
483
|
rpId?: string | undefined;
|
|
@@ -489,18 +485,18 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
489
485
|
chainId?: number | undefined;
|
|
490
486
|
domain?: string | undefined;
|
|
491
487
|
};
|
|
488
|
+
agent_did: string;
|
|
489
|
+
user_did: string;
|
|
490
|
+
issued_at: number;
|
|
491
|
+
created_at: number;
|
|
492
|
+
constraints?: Record<string, unknown> | undefined;
|
|
492
493
|
user_id?: string | undefined;
|
|
493
494
|
user_identifier?: string | undefined;
|
|
494
|
-
constraints?: Record<string, unknown> | undefined;
|
|
495
495
|
credential_jwt?: string | undefined;
|
|
496
496
|
}, {
|
|
497
497
|
scopes: string[];
|
|
498
|
-
agent_did: string;
|
|
499
|
-
user_did: string;
|
|
500
|
-
issued_at: number;
|
|
501
|
-
created_at: number;
|
|
502
498
|
authorization: {
|
|
503
|
-
type: "
|
|
499
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
504
500
|
provider?: string | undefined;
|
|
505
501
|
credentialType?: string | undefined;
|
|
506
502
|
rpId?: string | undefined;
|
|
@@ -508,9 +504,13 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
508
504
|
chainId?: number | undefined;
|
|
509
505
|
domain?: string | undefined;
|
|
510
506
|
};
|
|
507
|
+
agent_did: string;
|
|
508
|
+
user_did: string;
|
|
509
|
+
issued_at: number;
|
|
510
|
+
created_at: number;
|
|
511
|
+
constraints?: Record<string, unknown> | undefined;
|
|
511
512
|
user_id?: string | undefined;
|
|
512
513
|
user_identifier?: string | undefined;
|
|
513
|
-
constraints?: Record<string, unknown> | undefined;
|
|
514
514
|
credential_jwt?: string | undefined;
|
|
515
515
|
}>;
|
|
516
516
|
/**
|
|
@@ -528,12 +528,12 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
528
528
|
origin: z.ZodOptional<z.ZodString>;
|
|
529
529
|
user_agent: z.ZodOptional<z.ZodString>;
|
|
530
530
|
}, "strip", z.ZodTypeAny, {
|
|
531
|
-
ip_address?: string | undefined;
|
|
532
531
|
origin?: string | undefined;
|
|
532
|
+
ip_address?: string | undefined;
|
|
533
533
|
user_agent?: string | undefined;
|
|
534
534
|
}, {
|
|
535
|
-
ip_address?: string | undefined;
|
|
536
535
|
origin?: string | undefined;
|
|
536
|
+
ip_address?: string | undefined;
|
|
537
537
|
user_agent?: string | undefined;
|
|
538
538
|
}>>;
|
|
539
539
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -544,8 +544,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
544
544
|
credential_jwt?: string | undefined;
|
|
545
545
|
delegation_token?: string | undefined;
|
|
546
546
|
client_info?: {
|
|
547
|
-
ip_address?: string | undefined;
|
|
548
547
|
origin?: string | undefined;
|
|
548
|
+
ip_address?: string | undefined;
|
|
549
549
|
user_agent?: string | undefined;
|
|
550
550
|
} | undefined;
|
|
551
551
|
}, {
|
|
@@ -556,8 +556,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
556
556
|
credential_jwt?: string | undefined;
|
|
557
557
|
delegation_token?: string | undefined;
|
|
558
558
|
client_info?: {
|
|
559
|
-
ip_address?: string | undefined;
|
|
560
559
|
origin?: string | undefined;
|
|
560
|
+
ip_address?: string | undefined;
|
|
561
561
|
user_agent?: string | undefined;
|
|
562
562
|
} | undefined;
|
|
563
563
|
}>;
|
|
@@ -1817,7 +1817,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1817
1817
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
1818
1818
|
domain: z.ZodOptional<z.ZodString>;
|
|
1819
1819
|
}, "strip", z.ZodTypeAny, {
|
|
1820
|
-
type: "
|
|
1820
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1821
1821
|
provider?: string | undefined;
|
|
1822
1822
|
credentialType?: string | undefined;
|
|
1823
1823
|
rpId?: string | undefined;
|
|
@@ -1825,7 +1825,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1825
1825
|
chainId?: number | undefined;
|
|
1826
1826
|
domain?: string | undefined;
|
|
1827
1827
|
}, {
|
|
1828
|
-
type: "
|
|
1828
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1829
1829
|
provider?: string | undefined;
|
|
1830
1830
|
credentialType?: string | undefined;
|
|
1831
1831
|
rpId?: string | undefined;
|
|
@@ -1835,12 +1835,8 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1835
1835
|
}>;
|
|
1836
1836
|
}, "strip", z.ZodTypeAny, {
|
|
1837
1837
|
scopes: string[];
|
|
1838
|
-
agent_did: string;
|
|
1839
|
-
user_did: string;
|
|
1840
|
-
issued_at: number;
|
|
1841
|
-
created_at: number;
|
|
1842
1838
|
authorization: {
|
|
1843
|
-
type: "
|
|
1839
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1844
1840
|
provider?: string | undefined;
|
|
1845
1841
|
credentialType?: string | undefined;
|
|
1846
1842
|
rpId?: string | undefined;
|
|
@@ -1848,18 +1844,18 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1848
1844
|
chainId?: number | undefined;
|
|
1849
1845
|
domain?: string | undefined;
|
|
1850
1846
|
};
|
|
1847
|
+
agent_did: string;
|
|
1848
|
+
user_did: string;
|
|
1849
|
+
issued_at: number;
|
|
1850
|
+
created_at: number;
|
|
1851
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1851
1852
|
user_id?: string | undefined;
|
|
1852
1853
|
user_identifier?: string | undefined;
|
|
1853
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1854
1854
|
credential_jwt?: string | undefined;
|
|
1855
1855
|
}, {
|
|
1856
1856
|
scopes: string[];
|
|
1857
|
-
agent_did: string;
|
|
1858
|
-
user_did: string;
|
|
1859
|
-
issued_at: number;
|
|
1860
|
-
created_at: number;
|
|
1861
1857
|
authorization: {
|
|
1862
|
-
type: "
|
|
1858
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1863
1859
|
provider?: string | undefined;
|
|
1864
1860
|
credentialType?: string | undefined;
|
|
1865
1861
|
rpId?: string | undefined;
|
|
@@ -1867,9 +1863,13 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1867
1863
|
chainId?: number | undefined;
|
|
1868
1864
|
domain?: string | undefined;
|
|
1869
1865
|
};
|
|
1866
|
+
agent_did: string;
|
|
1867
|
+
user_did: string;
|
|
1868
|
+
issued_at: number;
|
|
1869
|
+
created_at: number;
|
|
1870
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1870
1871
|
user_id?: string | undefined;
|
|
1871
1872
|
user_identifier?: string | undefined;
|
|
1872
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1873
1873
|
credential_jwt?: string | undefined;
|
|
1874
1874
|
}>>;
|
|
1875
1875
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -1888,7 +1888,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1888
1888
|
reason: z.ZodOptional<z.ZodString>;
|
|
1889
1889
|
}, "strip", z.ZodTypeAny, {
|
|
1890
1890
|
valid: boolean;
|
|
1891
|
-
delegation_id?: string | undefined;
|
|
1892
1891
|
error?: {
|
|
1893
1892
|
code: string;
|
|
1894
1893
|
message: string;
|
|
@@ -1896,12 +1895,8 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1896
1895
|
} | undefined;
|
|
1897
1896
|
credential?: {
|
|
1898
1897
|
scopes: string[];
|
|
1899
|
-
agent_did: string;
|
|
1900
|
-
user_did: string;
|
|
1901
|
-
issued_at: number;
|
|
1902
|
-
created_at: number;
|
|
1903
1898
|
authorization: {
|
|
1904
|
-
type: "
|
|
1899
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
1905
1900
|
provider?: string | undefined;
|
|
1906
1901
|
credentialType?: string | undefined;
|
|
1907
1902
|
rpId?: string | undefined;
|
|
@@ -1909,11 +1904,17 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1909
1904
|
chainId?: number | undefined;
|
|
1910
1905
|
domain?: string | undefined;
|
|
1911
1906
|
};
|
|
1907
|
+
agent_did: string;
|
|
1908
|
+
user_did: string;
|
|
1909
|
+
issued_at: number;
|
|
1910
|
+
created_at: number;
|
|
1911
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1912
1912
|
user_id?: string | undefined;
|
|
1913
1913
|
user_identifier?: string | undefined;
|
|
1914
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1915
1914
|
credential_jwt?: string | undefined;
|
|
1916
1915
|
} | undefined;
|
|
1916
|
+
delegation_id?: string | undefined;
|
|
1917
|
+
reason?: string | undefined;
|
|
1917
1918
|
delegation?: z.objectOutputType<{
|
|
1918
1919
|
id: z.ZodString;
|
|
1919
1920
|
issuerDid: z.ZodString;
|
|
@@ -2325,10 +2326,8 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2325
2326
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2326
2327
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2327
2328
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2328
|
-
reason?: string | undefined;
|
|
2329
2329
|
}, {
|
|
2330
2330
|
valid: boolean;
|
|
2331
|
-
delegation_id?: string | undefined;
|
|
2332
2331
|
error?: {
|
|
2333
2332
|
code: string;
|
|
2334
2333
|
message: string;
|
|
@@ -2336,12 +2335,8 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2336
2335
|
} | undefined;
|
|
2337
2336
|
credential?: {
|
|
2338
2337
|
scopes: string[];
|
|
2339
|
-
agent_did: string;
|
|
2340
|
-
user_did: string;
|
|
2341
|
-
issued_at: number;
|
|
2342
|
-
created_at: number;
|
|
2343
2338
|
authorization: {
|
|
2344
|
-
type: "
|
|
2339
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
2345
2340
|
provider?: string | undefined;
|
|
2346
2341
|
credentialType?: string | undefined;
|
|
2347
2342
|
rpId?: string | undefined;
|
|
@@ -2349,11 +2344,17 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2349
2344
|
chainId?: number | undefined;
|
|
2350
2345
|
domain?: string | undefined;
|
|
2351
2346
|
};
|
|
2347
|
+
agent_did: string;
|
|
2348
|
+
user_did: string;
|
|
2349
|
+
issued_at: number;
|
|
2350
|
+
created_at: number;
|
|
2351
|
+
constraints?: Record<string, unknown> | undefined;
|
|
2352
2352
|
user_id?: string | undefined;
|
|
2353
2353
|
user_identifier?: string | undefined;
|
|
2354
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2355
2354
|
credential_jwt?: string | undefined;
|
|
2356
2355
|
} | undefined;
|
|
2356
|
+
delegation_id?: string | undefined;
|
|
2357
|
+
reason?: string | undefined;
|
|
2357
2358
|
delegation?: z.objectInputType<{
|
|
2358
2359
|
id: z.ZodString;
|
|
2359
2360
|
issuerDid: z.ZodString;
|
|
@@ -2765,7 +2766,6 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2765
2766
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2766
2767
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2767
2768
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2768
|
-
reason?: string | undefined;
|
|
2769
2769
|
}>;
|
|
2770
2770
|
/**
|
|
2771
2771
|
* Wrapped verification response schema
|
|
@@ -4025,7 +4025,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4025
4025
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
4026
4026
|
domain: z.ZodOptional<z.ZodString>;
|
|
4027
4027
|
}, "strip", z.ZodTypeAny, {
|
|
4028
|
-
type: "
|
|
4028
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4029
4029
|
provider?: string | undefined;
|
|
4030
4030
|
credentialType?: string | undefined;
|
|
4031
4031
|
rpId?: string | undefined;
|
|
@@ -4033,7 +4033,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4033
4033
|
chainId?: number | undefined;
|
|
4034
4034
|
domain?: string | undefined;
|
|
4035
4035
|
}, {
|
|
4036
|
-
type: "
|
|
4036
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4037
4037
|
provider?: string | undefined;
|
|
4038
4038
|
credentialType?: string | undefined;
|
|
4039
4039
|
rpId?: string | undefined;
|
|
@@ -4043,12 +4043,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4043
4043
|
}>;
|
|
4044
4044
|
}, "strip", z.ZodTypeAny, {
|
|
4045
4045
|
scopes: string[];
|
|
4046
|
-
agent_did: string;
|
|
4047
|
-
user_did: string;
|
|
4048
|
-
issued_at: number;
|
|
4049
|
-
created_at: number;
|
|
4050
4046
|
authorization: {
|
|
4051
|
-
type: "
|
|
4047
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4052
4048
|
provider?: string | undefined;
|
|
4053
4049
|
credentialType?: string | undefined;
|
|
4054
4050
|
rpId?: string | undefined;
|
|
@@ -4056,18 +4052,18 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4056
4052
|
chainId?: number | undefined;
|
|
4057
4053
|
domain?: string | undefined;
|
|
4058
4054
|
};
|
|
4055
|
+
agent_did: string;
|
|
4056
|
+
user_did: string;
|
|
4057
|
+
issued_at: number;
|
|
4058
|
+
created_at: number;
|
|
4059
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4059
4060
|
user_id?: string | undefined;
|
|
4060
4061
|
user_identifier?: string | undefined;
|
|
4061
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4062
4062
|
credential_jwt?: string | undefined;
|
|
4063
4063
|
}, {
|
|
4064
4064
|
scopes: string[];
|
|
4065
|
-
agent_did: string;
|
|
4066
|
-
user_did: string;
|
|
4067
|
-
issued_at: number;
|
|
4068
|
-
created_at: number;
|
|
4069
4065
|
authorization: {
|
|
4070
|
-
type: "
|
|
4066
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4071
4067
|
provider?: string | undefined;
|
|
4072
4068
|
credentialType?: string | undefined;
|
|
4073
4069
|
rpId?: string | undefined;
|
|
@@ -4075,9 +4071,13 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4075
4071
|
chainId?: number | undefined;
|
|
4076
4072
|
domain?: string | undefined;
|
|
4077
4073
|
};
|
|
4074
|
+
agent_did: string;
|
|
4075
|
+
user_did: string;
|
|
4076
|
+
issued_at: number;
|
|
4077
|
+
created_at: number;
|
|
4078
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4078
4079
|
user_id?: string | undefined;
|
|
4079
4080
|
user_identifier?: string | undefined;
|
|
4080
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4081
4081
|
credential_jwt?: string | undefined;
|
|
4082
4082
|
}>>;
|
|
4083
4083
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -4096,7 +4096,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4096
4096
|
reason: z.ZodOptional<z.ZodString>;
|
|
4097
4097
|
}, "strip", z.ZodTypeAny, {
|
|
4098
4098
|
valid: boolean;
|
|
4099
|
-
delegation_id?: string | undefined;
|
|
4100
4099
|
error?: {
|
|
4101
4100
|
code: string;
|
|
4102
4101
|
message: string;
|
|
@@ -4104,12 +4103,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4104
4103
|
} | undefined;
|
|
4105
4104
|
credential?: {
|
|
4106
4105
|
scopes: string[];
|
|
4107
|
-
agent_did: string;
|
|
4108
|
-
user_did: string;
|
|
4109
|
-
issued_at: number;
|
|
4110
|
-
created_at: number;
|
|
4111
4106
|
authorization: {
|
|
4112
|
-
type: "
|
|
4107
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4113
4108
|
provider?: string | undefined;
|
|
4114
4109
|
credentialType?: string | undefined;
|
|
4115
4110
|
rpId?: string | undefined;
|
|
@@ -4117,11 +4112,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4117
4112
|
chainId?: number | undefined;
|
|
4118
4113
|
domain?: string | undefined;
|
|
4119
4114
|
};
|
|
4115
|
+
agent_did: string;
|
|
4116
|
+
user_did: string;
|
|
4117
|
+
issued_at: number;
|
|
4118
|
+
created_at: number;
|
|
4119
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4120
4120
|
user_id?: string | undefined;
|
|
4121
4121
|
user_identifier?: string | undefined;
|
|
4122
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4123
4122
|
credential_jwt?: string | undefined;
|
|
4124
4123
|
} | undefined;
|
|
4124
|
+
delegation_id?: string | undefined;
|
|
4125
|
+
reason?: string | undefined;
|
|
4125
4126
|
delegation?: z.objectOutputType<{
|
|
4126
4127
|
id: z.ZodString;
|
|
4127
4128
|
issuerDid: z.ZodString;
|
|
@@ -4533,10 +4534,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4533
4534
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4534
4535
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4535
4536
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4536
|
-
reason?: string | undefined;
|
|
4537
4537
|
}, {
|
|
4538
4538
|
valid: boolean;
|
|
4539
|
-
delegation_id?: string | undefined;
|
|
4540
4539
|
error?: {
|
|
4541
4540
|
code: string;
|
|
4542
4541
|
message: string;
|
|
@@ -4544,12 +4543,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4544
4543
|
} | undefined;
|
|
4545
4544
|
credential?: {
|
|
4546
4545
|
scopes: string[];
|
|
4547
|
-
agent_did: string;
|
|
4548
|
-
user_did: string;
|
|
4549
|
-
issued_at: number;
|
|
4550
|
-
created_at: number;
|
|
4551
4546
|
authorization: {
|
|
4552
|
-
type: "
|
|
4547
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
4553
4548
|
provider?: string | undefined;
|
|
4554
4549
|
credentialType?: string | undefined;
|
|
4555
4550
|
rpId?: string | undefined;
|
|
@@ -4557,11 +4552,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4557
4552
|
chainId?: number | undefined;
|
|
4558
4553
|
domain?: string | undefined;
|
|
4559
4554
|
};
|
|
4555
|
+
agent_did: string;
|
|
4556
|
+
user_did: string;
|
|
4557
|
+
issued_at: number;
|
|
4558
|
+
created_at: number;
|
|
4559
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4560
4560
|
user_id?: string | undefined;
|
|
4561
4561
|
user_identifier?: string | undefined;
|
|
4562
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4563
4562
|
credential_jwt?: string | undefined;
|
|
4564
4563
|
} | undefined;
|
|
4564
|
+
delegation_id?: string | undefined;
|
|
4565
|
+
reason?: string | undefined;
|
|
4565
4566
|
delegation?: z.objectInputType<{
|
|
4566
4567
|
id: z.ZodString;
|
|
4567
4568
|
issuerDid: z.ZodString;
|
|
@@ -4973,7 +4974,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4973
4974
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4974
4975
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4975
4976
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4976
|
-
reason?: string | undefined;
|
|
4977
4977
|
}>;
|
|
4978
4978
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4979
4979
|
requestId: z.ZodString;
|
|
@@ -4989,7 +4989,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4989
4989
|
success: boolean;
|
|
4990
4990
|
data: {
|
|
4991
4991
|
valid: boolean;
|
|
4992
|
-
delegation_id?: string | undefined;
|
|
4993
4992
|
error?: {
|
|
4994
4993
|
code: string;
|
|
4995
4994
|
message: string;
|
|
@@ -4997,12 +4996,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4997
4996
|
} | undefined;
|
|
4998
4997
|
credential?: {
|
|
4999
4998
|
scopes: string[];
|
|
5000
|
-
agent_did: string;
|
|
5001
|
-
user_did: string;
|
|
5002
|
-
issued_at: number;
|
|
5003
|
-
created_at: number;
|
|
5004
4999
|
authorization: {
|
|
5005
|
-
type: "
|
|
5000
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
5006
5001
|
provider?: string | undefined;
|
|
5007
5002
|
credentialType?: string | undefined;
|
|
5008
5003
|
rpId?: string | undefined;
|
|
@@ -5010,11 +5005,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5010
5005
|
chainId?: number | undefined;
|
|
5011
5006
|
domain?: string | undefined;
|
|
5012
5007
|
};
|
|
5008
|
+
agent_did: string;
|
|
5009
|
+
user_did: string;
|
|
5010
|
+
issued_at: number;
|
|
5011
|
+
created_at: number;
|
|
5012
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5013
5013
|
user_id?: string | undefined;
|
|
5014
5014
|
user_identifier?: string | undefined;
|
|
5015
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5016
5015
|
credential_jwt?: string | undefined;
|
|
5017
5016
|
} | undefined;
|
|
5017
|
+
delegation_id?: string | undefined;
|
|
5018
|
+
reason?: string | undefined;
|
|
5018
5019
|
delegation?: z.objectOutputType<{
|
|
5019
5020
|
id: z.ZodString;
|
|
5020
5021
|
issuerDid: z.ZodString;
|
|
@@ -5426,7 +5427,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5426
5427
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5427
5428
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5428
5429
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5429
|
-
reason?: string | undefined;
|
|
5430
5430
|
};
|
|
5431
5431
|
metadata?: {
|
|
5432
5432
|
timestamp: string;
|
|
@@ -5436,7 +5436,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5436
5436
|
success: boolean;
|
|
5437
5437
|
data: {
|
|
5438
5438
|
valid: boolean;
|
|
5439
|
-
delegation_id?: string | undefined;
|
|
5440
5439
|
error?: {
|
|
5441
5440
|
code: string;
|
|
5442
5441
|
message: string;
|
|
@@ -5444,12 +5443,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5444
5443
|
} | undefined;
|
|
5445
5444
|
credential?: {
|
|
5446
5445
|
scopes: string[];
|
|
5447
|
-
agent_did: string;
|
|
5448
|
-
user_did: string;
|
|
5449
|
-
issued_at: number;
|
|
5450
|
-
created_at: number;
|
|
5451
5446
|
authorization: {
|
|
5452
|
-
type: "
|
|
5447
|
+
type: "oauth2" | "credential" | "oauth" | "password" | "webauthn" | "siwe" | "none";
|
|
5453
5448
|
provider?: string | undefined;
|
|
5454
5449
|
credentialType?: string | undefined;
|
|
5455
5450
|
rpId?: string | undefined;
|
|
@@ -5457,11 +5452,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5457
5452
|
chainId?: number | undefined;
|
|
5458
5453
|
domain?: string | undefined;
|
|
5459
5454
|
};
|
|
5455
|
+
agent_did: string;
|
|
5456
|
+
user_did: string;
|
|
5457
|
+
issued_at: number;
|
|
5458
|
+
created_at: number;
|
|
5459
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5460
5460
|
user_id?: string | undefined;
|
|
5461
5461
|
user_identifier?: string | undefined;
|
|
5462
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5463
5462
|
credential_jwt?: string | undefined;
|
|
5464
5463
|
} | undefined;
|
|
5464
|
+
delegation_id?: string | undefined;
|
|
5465
|
+
reason?: string | undefined;
|
|
5465
5466
|
delegation?: z.objectInputType<{
|
|
5466
5467
|
id: z.ZodString;
|
|
5467
5468
|
issuerDid: z.ZodString;
|
|
@@ -5873,7 +5874,6 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5873
5874
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5874
5875
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5875
5876
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5876
|
-
reason?: string | undefined;
|
|
5877
5877
|
};
|
|
5878
5878
|
metadata?: {
|
|
5879
5879
|
timestamp: string;
|
|
@@ -5940,13 +5940,13 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5940
5940
|
time_window: string;
|
|
5941
5941
|
}>>;
|
|
5942
5942
|
}, "strip", z.ZodTypeAny, {
|
|
5943
|
-
agent_did: string;
|
|
5944
5943
|
tools: Record<string, z.objectOutputType<{
|
|
5945
5944
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5946
5945
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
5947
5946
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
5948
5947
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5949
5948
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5949
|
+
agent_did: string;
|
|
5950
5950
|
reputation_threshold?: number | undefined;
|
|
5951
5951
|
denied_agents?: string[] | undefined;
|
|
5952
5952
|
crisp_budget?: {
|
|
@@ -5956,13 +5956,13 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5956
5956
|
time_window: string;
|
|
5957
5957
|
} | undefined;
|
|
5958
5958
|
}, {
|
|
5959
|
-
agent_did: string;
|
|
5960
5959
|
tools: Record<string, z.objectInputType<{
|
|
5961
5960
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5962
5961
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
5963
5962
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
5964
5963
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5965
5964
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5965
|
+
agent_did: string;
|
|
5966
5966
|
reputation_threshold?: number | undefined;
|
|
5967
5967
|
denied_agents?: string[] | undefined;
|
|
5968
5968
|
crisp_budget?: {
|
|
@@ -6014,13 +6014,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6014
6014
|
time_window: string;
|
|
6015
6015
|
}>>;
|
|
6016
6016
|
}, "strip", z.ZodTypeAny, {
|
|
6017
|
-
agent_did: string;
|
|
6018
6017
|
tools: Record<string, z.objectOutputType<{
|
|
6019
6018
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6020
6019
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6021
6020
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6022
6021
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6023
6022
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6023
|
+
agent_did: string;
|
|
6024
6024
|
reputation_threshold?: number | undefined;
|
|
6025
6025
|
denied_agents?: string[] | undefined;
|
|
6026
6026
|
crisp_budget?: {
|
|
@@ -6030,13 +6030,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6030
6030
|
time_window: string;
|
|
6031
6031
|
} | undefined;
|
|
6032
6032
|
}, {
|
|
6033
|
-
agent_did: string;
|
|
6034
6033
|
tools: Record<string, z.objectInputType<{
|
|
6035
6034
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6036
6035
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6037
6036
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6038
6037
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6039
6038
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6039
|
+
agent_did: string;
|
|
6040
6040
|
reputation_threshold?: number | undefined;
|
|
6041
6041
|
denied_agents?: string[] | undefined;
|
|
6042
6042
|
crisp_budget?: {
|
|
@@ -6059,13 +6059,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6059
6059
|
}, "strip", z.ZodTypeAny, {
|
|
6060
6060
|
success: boolean;
|
|
6061
6061
|
data: {
|
|
6062
|
-
agent_did: string;
|
|
6063
6062
|
tools: Record<string, z.objectOutputType<{
|
|
6064
6063
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6065
6064
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6066
6065
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6067
6066
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6068
6067
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6068
|
+
agent_did: string;
|
|
6069
6069
|
reputation_threshold?: number | undefined;
|
|
6070
6070
|
denied_agents?: string[] | undefined;
|
|
6071
6071
|
crisp_budget?: {
|
|
@@ -6082,13 +6082,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6082
6082
|
}, {
|
|
6083
6083
|
success: boolean;
|
|
6084
6084
|
data: {
|
|
6085
|
-
agent_did: string;
|
|
6086
6085
|
tools: Record<string, z.objectInputType<{
|
|
6087
6086
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6088
6087
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6089
6088
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6090
6089
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6091
6090
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6091
|
+
agent_did: string;
|
|
6092
6092
|
reputation_threshold?: number | undefined;
|
|
6093
6093
|
denied_agents?: string[] | undefined;
|
|
6094
6094
|
crisp_budget?: {
|
|
@@ -6179,9 +6179,9 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
6179
6179
|
token_type: z.ZodOptional<z.ZodString>;
|
|
6180
6180
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
6181
6181
|
}, "strip", z.ZodTypeAny, {
|
|
6182
|
-
status: "
|
|
6183
|
-
delegation_id: string;
|
|
6182
|
+
status: "revoked" | "active" | "expired";
|
|
6184
6183
|
scopes: string[];
|
|
6184
|
+
delegation_id: string;
|
|
6185
6185
|
agent_did: string;
|
|
6186
6186
|
issued_at: string;
|
|
6187
6187
|
created_at: string;
|
|
@@ -6192,9 +6192,9 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
6192
6192
|
token_type?: string | undefined;
|
|
6193
6193
|
expires_in?: number | undefined;
|
|
6194
6194
|
}, {
|
|
6195
|
-
status: "
|
|
6196
|
-
delegation_id: string;
|
|
6195
|
+
status: "revoked" | "active" | "expired";
|
|
6197
6196
|
scopes: string[];
|
|
6197
|
+
delegation_id: string;
|
|
6198
6198
|
agent_did: string;
|
|
6199
6199
|
issued_at: string;
|
|
6200
6200
|
created_at: string;
|
|
@@ -6224,9 +6224,9 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6224
6224
|
token_type: z.ZodOptional<z.ZodString>;
|
|
6225
6225
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
6226
6226
|
}, "strip", z.ZodTypeAny, {
|
|
6227
|
-
status: "
|
|
6228
|
-
delegation_id: string;
|
|
6227
|
+
status: "revoked" | "active" | "expired";
|
|
6229
6228
|
scopes: string[];
|
|
6229
|
+
delegation_id: string;
|
|
6230
6230
|
agent_did: string;
|
|
6231
6231
|
issued_at: string;
|
|
6232
6232
|
created_at: string;
|
|
@@ -6237,9 +6237,9 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6237
6237
|
token_type?: string | undefined;
|
|
6238
6238
|
expires_in?: number | undefined;
|
|
6239
6239
|
}, {
|
|
6240
|
-
status: "
|
|
6241
|
-
delegation_id: string;
|
|
6240
|
+
status: "revoked" | "active" | "expired";
|
|
6242
6241
|
scopes: string[];
|
|
6242
|
+
delegation_id: string;
|
|
6243
6243
|
agent_did: string;
|
|
6244
6244
|
issued_at: string;
|
|
6245
6245
|
created_at: string;
|
|
@@ -6263,9 +6263,9 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6263
6263
|
}, "strip", z.ZodTypeAny, {
|
|
6264
6264
|
success: boolean;
|
|
6265
6265
|
data: {
|
|
6266
|
-
status: "
|
|
6267
|
-
delegation_id: string;
|
|
6266
|
+
status: "revoked" | "active" | "expired";
|
|
6268
6267
|
scopes: string[];
|
|
6268
|
+
delegation_id: string;
|
|
6269
6269
|
agent_did: string;
|
|
6270
6270
|
issued_at: string;
|
|
6271
6271
|
created_at: string;
|
|
@@ -6283,9 +6283,9 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6283
6283
|
}, {
|
|
6284
6284
|
success: boolean;
|
|
6285
6285
|
data: {
|
|
6286
|
-
status: "
|
|
6287
|
-
delegation_id: string;
|
|
6286
|
+
status: "revoked" | "active" | "expired";
|
|
6288
6287
|
scopes: string[];
|
|
6288
|
+
delegation_id: string;
|
|
6289
6289
|
agent_did: string;
|
|
6290
6290
|
issued_at: string;
|
|
6291
6291
|
created_at: string;
|
|
@@ -6319,12 +6319,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
|
|
|
6319
6319
|
revoked: z.ZodBoolean;
|
|
6320
6320
|
revoked_at: z.ZodNumber;
|
|
6321
6321
|
}, "strip", z.ZodTypeAny, {
|
|
6322
|
-
delegation_id: string;
|
|
6323
6322
|
revoked: boolean;
|
|
6323
|
+
delegation_id: string;
|
|
6324
6324
|
revoked_at: number;
|
|
6325
6325
|
}, {
|
|
6326
|
-
delegation_id: string;
|
|
6327
6326
|
revoked: boolean;
|
|
6327
|
+
delegation_id: string;
|
|
6328
6328
|
revoked_at: number;
|
|
6329
6329
|
}>;
|
|
6330
6330
|
/**
|
|
@@ -6337,12 +6337,12 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6337
6337
|
revoked: z.ZodBoolean;
|
|
6338
6338
|
revoked_at: z.ZodNumber;
|
|
6339
6339
|
}, "strip", z.ZodTypeAny, {
|
|
6340
|
-
delegation_id: string;
|
|
6341
6340
|
revoked: boolean;
|
|
6341
|
+
delegation_id: string;
|
|
6342
6342
|
revoked_at: number;
|
|
6343
6343
|
}, {
|
|
6344
|
-
delegation_id: string;
|
|
6345
6344
|
revoked: boolean;
|
|
6345
|
+
delegation_id: string;
|
|
6346
6346
|
revoked_at: number;
|
|
6347
6347
|
}>;
|
|
6348
6348
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -6358,8 +6358,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6358
6358
|
}, "strip", z.ZodTypeAny, {
|
|
6359
6359
|
success: boolean;
|
|
6360
6360
|
data: {
|
|
6361
|
-
delegation_id: string;
|
|
6362
6361
|
revoked: boolean;
|
|
6362
|
+
delegation_id: string;
|
|
6363
6363
|
revoked_at: number;
|
|
6364
6364
|
};
|
|
6365
6365
|
metadata?: {
|
|
@@ -6369,8 +6369,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6369
6369
|
}, {
|
|
6370
6370
|
success: boolean;
|
|
6371
6371
|
data: {
|
|
6372
|
-
delegation_id: string;
|
|
6373
6372
|
revoked: boolean;
|
|
6373
|
+
delegation_id: string;
|
|
6374
6374
|
revoked_at: number;
|
|
6375
6375
|
};
|
|
6376
6376
|
metadata?: {
|
|
@@ -6408,13 +6408,13 @@ export declare const sessionClientIdentitySchema: z.ZodObject<{
|
|
|
6408
6408
|
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6409
6409
|
registered: z.ZodBoolean;
|
|
6410
6410
|
}, "strip", z.ZodTypeAny, {
|
|
6411
|
+
registered: boolean;
|
|
6411
6412
|
did: string;
|
|
6412
6413
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6413
|
-
registered: boolean;
|
|
6414
6414
|
}, {
|
|
6415
|
+
registered: boolean;
|
|
6415
6416
|
did: string;
|
|
6416
6417
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6417
|
-
registered: boolean;
|
|
6418
6418
|
}>;
|
|
6419
6419
|
/**
|
|
6420
6420
|
* Register session request schema
|
|
@@ -6449,19 +6449,20 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6449
6449
|
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6450
6450
|
registered: z.ZodBoolean;
|
|
6451
6451
|
}, "strip", z.ZodTypeAny, {
|
|
6452
|
+
registered: boolean;
|
|
6452
6453
|
did: string;
|
|
6453
6454
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6454
|
-
registered: boolean;
|
|
6455
6455
|
}, {
|
|
6456
|
+
registered: boolean;
|
|
6456
6457
|
did: string;
|
|
6457
6458
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6458
|
-
registered: boolean;
|
|
6459
6459
|
}>>;
|
|
6460
6460
|
server_did: z.ZodOptional<z.ZodString>;
|
|
6461
6461
|
ttl_minutes: z.ZodOptional<z.ZodNumber>;
|
|
6462
6462
|
}, "strip", z.ZodTypeAny, {
|
|
6463
6463
|
session_id: string;
|
|
6464
6464
|
agent_did: string;
|
|
6465
|
+
project_id: string;
|
|
6465
6466
|
created_at: number;
|
|
6466
6467
|
client_info: {
|
|
6467
6468
|
name: string;
|
|
@@ -6470,18 +6471,18 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6470
6471
|
vendor?: string | undefined;
|
|
6471
6472
|
protocol_version?: string | undefined;
|
|
6472
6473
|
};
|
|
6473
|
-
project_id: string;
|
|
6474
6474
|
agent_name?: string | undefined;
|
|
6475
6475
|
client_identity?: {
|
|
6476
|
+
registered: boolean;
|
|
6476
6477
|
did: string;
|
|
6477
6478
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6478
|
-
registered: boolean;
|
|
6479
6479
|
} | undefined;
|
|
6480
6480
|
server_did?: string | undefined;
|
|
6481
6481
|
ttl_minutes?: number | undefined;
|
|
6482
6482
|
}, {
|
|
6483
6483
|
session_id: string;
|
|
6484
6484
|
agent_did: string;
|
|
6485
|
+
project_id: string;
|
|
6485
6486
|
created_at: number;
|
|
6486
6487
|
client_info: {
|
|
6487
6488
|
name: string;
|
|
@@ -6490,12 +6491,11 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6490
6491
|
vendor?: string | undefined;
|
|
6491
6492
|
protocol_version?: string | undefined;
|
|
6492
6493
|
};
|
|
6493
|
-
project_id: string;
|
|
6494
6494
|
agent_name?: string | undefined;
|
|
6495
6495
|
client_identity?: {
|
|
6496
|
+
registered: boolean;
|
|
6496
6497
|
did: string;
|
|
6497
6498
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6498
|
-
registered: boolean;
|
|
6499
6499
|
} | undefined;
|
|
6500
6500
|
server_did?: string | undefined;
|
|
6501
6501
|
ttl_minutes?: number | undefined;
|
|
@@ -6508,13 +6508,13 @@ export declare const registerSessionResponseSchema: z.ZodObject<{
|
|
|
6508
6508
|
registered: z.ZodBoolean;
|
|
6509
6509
|
created_at: z.ZodString;
|
|
6510
6510
|
}, "strip", z.ZodTypeAny, {
|
|
6511
|
+
registered: boolean;
|
|
6511
6512
|
session_id: string;
|
|
6512
6513
|
created_at: string;
|
|
6513
|
-
registered: boolean;
|
|
6514
6514
|
}, {
|
|
6515
|
+
registered: boolean;
|
|
6515
6516
|
session_id: string;
|
|
6516
6517
|
created_at: string;
|
|
6517
|
-
registered: boolean;
|
|
6518
6518
|
}>;
|
|
6519
6519
|
/**
|
|
6520
6520
|
* Wrapped session registration response schema
|
|
@@ -6526,13 +6526,13 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6526
6526
|
registered: z.ZodBoolean;
|
|
6527
6527
|
created_at: z.ZodString;
|
|
6528
6528
|
}, "strip", z.ZodTypeAny, {
|
|
6529
|
+
registered: boolean;
|
|
6529
6530
|
session_id: string;
|
|
6530
6531
|
created_at: string;
|
|
6531
|
-
registered: boolean;
|
|
6532
6532
|
}, {
|
|
6533
|
+
registered: boolean;
|
|
6533
6534
|
session_id: string;
|
|
6534
6535
|
created_at: string;
|
|
6535
|
-
registered: boolean;
|
|
6536
6536
|
}>;
|
|
6537
6537
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
6538
6538
|
requestId: z.ZodString;
|
|
@@ -6547,9 +6547,9 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6547
6547
|
}, "strip", z.ZodTypeAny, {
|
|
6548
6548
|
success: boolean;
|
|
6549
6549
|
data: {
|
|
6550
|
+
registered: boolean;
|
|
6550
6551
|
session_id: string;
|
|
6551
6552
|
created_at: string;
|
|
6552
|
-
registered: boolean;
|
|
6553
6553
|
};
|
|
6554
6554
|
metadata?: {
|
|
6555
6555
|
timestamp: string;
|
|
@@ -6558,9 +6558,9 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6558
6558
|
}, {
|
|
6559
6559
|
success: boolean;
|
|
6560
6560
|
data: {
|
|
6561
|
+
registered: boolean;
|
|
6561
6562
|
session_id: string;
|
|
6562
6563
|
created_at: string;
|
|
6563
|
-
registered: boolean;
|
|
6564
6564
|
};
|
|
6565
6565
|
metadata?: {
|
|
6566
6566
|
timestamp: string;
|