@kya-os/contracts 1.8.1 → 1.9.0
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/__fixtures__/index.d.ts +8 -0
- package/dist/__fixtures__/index.d.ts.map +1 -0
- package/dist/__fixtures__/index.js +29 -0
- package/dist/__fixtures__/index.js.map +1 -0
- package/dist/__fixtures__/proof/ed25519-fixtures.d.ts +253 -0
- package/dist/__fixtures__/proof/ed25519-fixtures.d.ts.map +1 -0
- package/dist/__fixtures__/proof/ed25519-fixtures.js +247 -0
- package/dist/__fixtures__/proof/ed25519-fixtures.js.map +1 -0
- package/dist/__fixtures__/proof/keys-and-payloads.json +103 -0
- package/dist/agent-deployment-utils.d.ts +1 -0
- package/dist/agent-deployment-utils.d.ts.map +1 -0
- package/dist/agent-deployment-utils.js +1 -0
- package/dist/agent-deployment-utils.js.map +1 -0
- package/dist/agent-deployment.d.ts +1 -0
- package/dist/agent-deployment.d.ts.map +1 -0
- package/dist/agent-deployment.js +1 -0
- package/dist/agent-deployment.js.map +1 -0
- package/dist/agentshield-api/admin-schemas.d.ts +1 -0
- package/dist/agentshield-api/admin-schemas.d.ts.map +1 -0
- package/dist/agentshield-api/admin-schemas.js +1 -0
- package/dist/agentshield-api/admin-schemas.js.map +1 -0
- package/dist/agentshield-api/admin-types.d.ts +1 -0
- package/dist/agentshield-api/admin-types.d.ts.map +1 -0
- package/dist/agentshield-api/admin-types.js +1 -0
- package/dist/agentshield-api/admin-types.js.map +1 -0
- package/dist/agentshield-api/endpoints.d.ts +1 -0
- package/dist/agentshield-api/endpoints.d.ts.map +1 -0
- package/dist/agentshield-api/endpoints.js +1 -0
- package/dist/agentshield-api/endpoints.js.map +1 -0
- package/dist/agentshield-api/index.d.ts +1 -0
- package/dist/agentshield-api/index.d.ts.map +1 -0
- package/dist/agentshield-api/index.js.map +1 -0
- package/dist/agentshield-api/schemas.d.ts +187 -180
- package/dist/agentshield-api/schemas.d.ts.map +1 -0
- package/dist/agentshield-api/schemas.js.map +1 -0
- package/dist/agentshield-api/types.d.ts +1 -0
- package/dist/agentshield-api/types.d.ts.map +1 -0
- package/dist/agentshield-api/types.js.map +1 -0
- package/dist/audit/index.d.ts +21 -21
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +1 -0
- package/dist/cli.js.map +1 -0
- package/dist/compute-binding.d.ts +1 -0
- package/dist/compute-binding.d.ts.map +1 -0
- package/dist/compute-binding.js +1 -0
- package/dist/compute-binding.js.map +1 -0
- package/dist/compute.d.ts +47 -16
- package/dist/compute.d.ts.map +1 -0
- package/dist/compute.js +23 -0
- package/dist/compute.js.map +1 -0
- package/dist/config/base.d.ts +1 -0
- package/dist/config/base.d.ts.map +1 -0
- package/dist/config/base.js +1 -0
- package/dist/config/base.js.map +1 -0
- package/dist/config/builder.d.ts +1 -0
- package/dist/config/builder.d.ts.map +1 -0
- package/dist/config/builder.js +1 -0
- package/dist/config/builder.js.map +1 -0
- package/dist/config/client-messages.d.ts +1 -0
- package/dist/config/client-messages.d.ts.map +1 -0
- package/dist/config/client-messages.js +1 -0
- package/dist/config/client-messages.js.map +1 -0
- package/dist/config/delegation.d.ts +1 -0
- package/dist/config/delegation.d.ts.map +1 -0
- package/dist/config/delegation.js +1 -0
- package/dist/config/delegation.js.map +1 -0
- package/dist/config/identity.d.ts +1 -0
- package/dist/config/identity.d.ts.map +1 -0
- package/dist/config/identity.js +1 -0
- package/dist/config/identity.js.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/proofing.d.ts +1 -0
- package/dist/config/proofing.d.ts.map +1 -0
- package/dist/config/proofing.js +1 -0
- package/dist/config/proofing.js.map +1 -0
- package/dist/config/tool-context.d.ts +1 -0
- package/dist/config/tool-context.d.ts.map +1 -0
- package/dist/config/tool-context.js +1 -0
- package/dist/config/tool-context.js.map +1 -0
- package/dist/config/tool-protection.d.ts +1 -0
- package/dist/config/tool-protection.d.ts.map +1 -0
- package/dist/config/tool-protection.js.map +1 -0
- package/dist/consent/index.d.ts.map +1 -0
- package/dist/consent/index.js.map +1 -0
- package/dist/consent/schemas.d.ts +1 -0
- package/dist/consent/schemas.d.ts.map +1 -0
- package/dist/consent/schemas.js +1 -0
- package/dist/consent/schemas.js.map +1 -0
- package/dist/consent/types.d.ts +1 -0
- package/dist/consent/types.d.ts.map +1 -0
- package/dist/consent/types.js +1 -0
- package/dist/consent/types.js.map +1 -0
- package/dist/dashboard-config/default-config.d.ts +1 -0
- package/dist/dashboard-config/default-config.d.ts.map +1 -0
- package/dist/dashboard-config/default-config.js.map +1 -0
- package/dist/dashboard-config/index.d.ts +1 -0
- package/dist/dashboard-config/index.d.ts.map +1 -0
- package/dist/dashboard-config/index.js.map +1 -0
- package/dist/dashboard-config/schemas.d.ts +2428 -2428
- package/dist/dashboard-config/schemas.d.ts.map +1 -0
- package/dist/dashboard-config/schemas.js.map +1 -0
- package/dist/dashboard-config/types.d.ts +1 -0
- package/dist/dashboard-config/types.d.ts.map +1 -0
- package/dist/dashboard-config/types.js.map +1 -0
- package/dist/delegation/constraints.d.ts +1 -0
- package/dist/delegation/constraints.d.ts.map +1 -0
- package/dist/delegation/constraints.js +1 -0
- package/dist/delegation/constraints.js.map +1 -0
- package/dist/delegation/index.d.ts +1 -0
- package/dist/delegation/index.d.ts.map +1 -0
- package/dist/delegation/index.js +1 -0
- package/dist/delegation/index.js.map +1 -0
- package/dist/delegation/schemas.d.ts +1 -0
- package/dist/delegation/schemas.d.ts.map +1 -0
- package/dist/delegation/schemas.js +1 -0
- package/dist/delegation/schemas.js.map +1 -0
- package/dist/deploy/index.d.ts +1 -0
- package/dist/deploy/index.d.ts.map +1 -0
- package/dist/deploy/index.js +1 -0
- package/dist/deploy/index.js.map +1 -0
- package/dist/deploy/schemas.d.ts +1 -0
- package/dist/deploy/schemas.d.ts.map +1 -0
- package/dist/deploy/schemas.js +1 -0
- package/dist/deploy/schemas.js.map +1 -0
- package/dist/deploy/types.d.ts +1 -0
- package/dist/deploy/types.d.ts.map +1 -0
- package/dist/deploy/types.js +1 -0
- package/dist/deploy/types.js.map +1 -0
- package/dist/did/index.d.ts +1 -0
- package/dist/did/index.d.ts.map +1 -0
- package/dist/did/index.js +1 -0
- package/dist/did/index.js.map +1 -0
- package/dist/did/resolve-contract.d.ts +1 -0
- package/dist/did/resolve-contract.d.ts.map +1 -0
- package/dist/did/resolve-contract.js +1 -0
- package/dist/did/resolve-contract.js.map +1 -0
- package/dist/did/schemas.d.ts +1 -0
- package/dist/did/schemas.d.ts.map +1 -0
- package/dist/did/schemas.js +1 -0
- package/dist/did/schemas.js.map +1 -0
- package/dist/did/types.d.ts +1 -0
- package/dist/did/types.d.ts.map +1 -0
- package/dist/did/types.js +1 -0
- package/dist/did/types.js.map +1 -0
- package/dist/env/constants.d.ts +1 -0
- package/dist/env/constants.d.ts.map +1 -0
- package/dist/env/constants.js +1 -0
- package/dist/env/constants.js.map +1 -0
- package/dist/env/index.d.ts +1 -0
- package/dist/env/index.d.ts.map +1 -0
- package/dist/env/index.js +1 -0
- package/dist/env/index.js.map +1 -0
- package/dist/gateway/agents.d.ts +1 -0
- package/dist/gateway/agents.d.ts.map +1 -0
- package/dist/gateway/agents.js +1 -0
- package/dist/gateway/agents.js.map +1 -0
- package/dist/gateway/cron.d.ts +1 -0
- package/dist/gateway/cron.d.ts.map +1 -0
- package/dist/gateway/cron.js +1 -0
- package/dist/gateway/cron.js.map +1 -0
- package/dist/gateway/index.d.ts +1 -0
- package/dist/gateway/index.d.ts.map +1 -0
- package/dist/gateway/index.js +1 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/sessions.d.ts +1 -0
- package/dist/gateway/sessions.d.ts.map +1 -0
- package/dist/gateway/sessions.js +1 -0
- package/dist/gateway/sessions.js.map +1 -0
- package/dist/gateway/skills.d.ts +1 -0
- package/dist/gateway/skills.d.ts.map +1 -0
- package/dist/gateway/skills.js +1 -0
- package/dist/gateway/skills.js.map +1 -0
- package/dist/gateway/usage.d.ts +1 -0
- package/dist/gateway/usage.d.ts.map +1 -0
- package/dist/gateway/usage.js +1 -0
- package/dist/gateway/usage.js.map +1 -0
- package/dist/handshake.d.ts +28 -27
- package/dist/handshake.d.ts.map +1 -0
- package/dist/handshake.js +4 -3
- package/dist/handshake.js.map +1 -0
- package/dist/identity/index.d.ts +1 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +1 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/identity/schemas.d.ts +1 -0
- package/dist/identity/schemas.d.ts.map +1 -0
- package/dist/identity/schemas.js +1 -0
- package/dist/identity/schemas.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/molti/admin-ws.d.ts +1 -0
- package/dist/molti/admin-ws.d.ts.map +1 -0
- package/dist/molti/admin-ws.js +1 -0
- package/dist/molti/admin-ws.js.map +1 -0
- package/dist/molti/index.d.ts +1 -0
- package/dist/molti/index.d.ts.map +1 -0
- package/dist/molti/index.js +1 -0
- package/dist/molti/index.js.map +1 -0
- package/dist/molti/schemas.d.ts +1 -0
- package/dist/molti/schemas.d.ts.map +1 -0
- package/dist/molti/schemas.js +1 -0
- package/dist/molti/schemas.js.map +1 -0
- package/dist/molti/types.d.ts +1 -0
- package/dist/molti/types.d.ts.map +1 -0
- package/dist/molti/types.js +1 -0
- package/dist/molti/types.js.map +1 -0
- package/dist/openclaw/index.d.ts +20 -0
- package/dist/openclaw/index.js +28 -0
- package/dist/openclaw/types.d.ts +714 -0
- package/dist/openclaw/types.js +122 -0
- package/dist/org-secret-definitions.d.ts +18 -0
- package/dist/org-secret-definitions.js +72 -0
- package/dist/pairing/index.d.ts +1 -0
- package/dist/pairing/index.d.ts.map +1 -0
- package/dist/pairing/index.js +1 -0
- package/dist/pairing/index.js.map +1 -0
- package/dist/policy/index.d.ts +1 -0
- package/dist/policy/index.d.ts.map +1 -0
- package/dist/policy/index.js +1 -0
- package/dist/policy/index.js.map +1 -0
- package/dist/policy/schemas.d.ts +1 -0
- package/dist/policy/schemas.d.ts.map +1 -0
- package/dist/policy/schemas.js +1 -0
- package/dist/policy/schemas.js.map +1 -0
- package/dist/proof/index.d.ts +3 -3
- package/dist/proof/index.d.ts.map +1 -0
- package/dist/proof/index.js +2 -1
- package/dist/proof/index.js.map +1 -0
- package/dist/proof/proof-record.d.ts +1 -0
- package/dist/proof/proof-record.d.ts.map +1 -0
- package/dist/proof/proof-record.js +1 -0
- package/dist/proof/proof-record.js.map +1 -0
- package/dist/proof/signing-spec.d.ts +1 -0
- package/dist/proof/signing-spec.d.ts.map +1 -0
- package/dist/proof/signing-spec.js +1 -0
- package/dist/proof/signing-spec.js.map +1 -0
- package/dist/proof.d.ts +86 -54
- package/dist/proof.d.ts.map +1 -0
- package/dist/proof.js +29 -1
- package/dist/proof.js.map +1 -0
- package/dist/registry.d.ts +1 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +1 -0
- package/dist/registry.js.map +1 -0
- package/dist/reputation/api.d.ts +1 -0
- package/dist/reputation/api.d.ts.map +1 -0
- package/dist/reputation/api.js +1 -0
- package/dist/reputation/api.js.map +1 -0
- package/dist/reputation/constants.d.ts +1 -0
- package/dist/reputation/constants.d.ts.map +1 -0
- package/dist/reputation/constants.js +1 -0
- package/dist/reputation/constants.js.map +1 -0
- package/dist/reputation/credentials.d.ts +1 -0
- package/dist/reputation/credentials.d.ts.map +1 -0
- package/dist/reputation/credentials.js +1 -0
- package/dist/reputation/credentials.js.map +1 -0
- package/dist/reputation/index.d.ts +1 -0
- package/dist/reputation/index.d.ts.map +1 -0
- package/dist/reputation/index.js +1 -0
- package/dist/reputation/index.js.map +1 -0
- package/dist/reputation/schemas.d.ts +1 -0
- package/dist/reputation/schemas.d.ts.map +1 -0
- package/dist/reputation/schemas.js +1 -0
- package/dist/reputation/schemas.js.map +1 -0
- package/dist/runtime/errors.d.ts +1 -0
- package/dist/runtime/errors.d.ts.map +1 -0
- package/dist/runtime/errors.js +1 -0
- package/dist/runtime/errors.js.map +1 -0
- package/dist/runtime/headers.d.ts +16 -12
- package/dist/runtime/headers.d.ts.map +1 -0
- package/dist/runtime/headers.js +16 -12
- package/dist/runtime/headers.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/test.d.ts +1 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +1 -0
- package/dist/test.js.map +1 -0
- package/dist/tlkrc/index.d.ts +1 -0
- package/dist/tlkrc/index.d.ts.map +1 -0
- package/dist/tlkrc/index.js +1 -0
- package/dist/tlkrc/index.js.map +1 -0
- package/dist/tlkrc/rotation.d.ts +1 -0
- package/dist/tlkrc/rotation.d.ts.map +1 -0
- package/dist/tlkrc/rotation.js +1 -0
- package/dist/tlkrc/rotation.js.map +1 -0
- package/dist/tool-protection/index.d.ts +36 -36
- package/dist/tool-protection/index.d.ts.map +1 -0
- package/dist/tool-protection/index.js.map +1 -0
- package/dist/utils/validation.d.ts +1 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +1 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/vault/schemas.d.ts +2 -2
- package/dist/vc/index.d.ts +1 -0
- package/dist/vc/index.d.ts.map +1 -0
- package/dist/vc/index.js +1 -0
- package/dist/vc/index.js.map +1 -0
- package/dist/vc/schemas.d.ts +1 -0
- package/dist/vc/schemas.d.ts.map +1 -0
- package/dist/vc/schemas.js +1 -0
- package/dist/vc/schemas.js.map +1 -0
- package/dist/vc/statuslist.d.ts +1 -0
- package/dist/vc/statuslist.d.ts.map +1 -0
- package/dist/vc/statuslist.js +1 -0
- package/dist/vc/statuslist.js.map +1 -0
- package/dist/verifier/index.d.ts +1 -0
- package/dist/verifier/index.d.ts.map +1 -0
- package/dist/verifier/index.js.map +1 -0
- package/dist/verifier.d.ts +26 -15
- package/dist/verifier.d.ts.map +1 -0
- package/dist/verifier.js +20 -9
- package/dist/verifier.js.map +1 -0
- package/dist/well-known/index.d.ts +1 -0
- package/dist/well-known/index.d.ts.map +1 -0
- package/dist/well-known/index.js +1 -0
- package/dist/well-known/index.js.map +1 -0
- package/package.json +2 -1
- package/parity-vectors/delegation-conformance.json +265 -0
- package/parity-vectors/did-key.json +134 -0
- package/parity-vectors/index.ts +253 -0
- package/parity-vectors/scope-matching.json +330 -0
- package/parity-vectors/vc-jwt.json +210 -0
|
@@ -83,63 +83,68 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
83
83
|
sessionId: z.ZodString;
|
|
84
84
|
requestHash: z.ZodString;
|
|
85
85
|
responseHash: z.ZodString;
|
|
86
|
+
outcome: z.ZodOptional<z.ZodEnum<["allowed", "denied", "step_up_required", "needs_authorization"]>>;
|
|
86
87
|
scopeId: z.ZodOptional<z.ZodString>;
|
|
87
88
|
delegationRef: z.ZodOptional<z.ZodString>;
|
|
88
89
|
clientDid: z.ZodOptional<z.ZodString>;
|
|
89
90
|
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
did: string;
|
|
91
|
-
kid: string;
|
|
92
91
|
nonce: string;
|
|
93
92
|
audience: string;
|
|
94
93
|
sessionId: string;
|
|
95
|
-
|
|
94
|
+
did: string;
|
|
95
|
+
kid: string;
|
|
96
96
|
requestHash: string;
|
|
97
97
|
responseHash: string;
|
|
98
|
+
ts: number;
|
|
98
99
|
clientDid?: string | undefined;
|
|
99
100
|
delegationRef?: string | undefined;
|
|
100
101
|
scopeId?: string | undefined;
|
|
102
|
+
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
101
103
|
}, {
|
|
102
|
-
did: string;
|
|
103
|
-
kid: string;
|
|
104
104
|
nonce: string;
|
|
105
105
|
audience: string;
|
|
106
106
|
sessionId: string;
|
|
107
|
-
|
|
107
|
+
did: string;
|
|
108
|
+
kid: string;
|
|
108
109
|
requestHash: string;
|
|
109
110
|
responseHash: string;
|
|
111
|
+
ts: number;
|
|
110
112
|
clientDid?: string | undefined;
|
|
111
113
|
delegationRef?: string | undefined;
|
|
112
114
|
scopeId?: string | undefined;
|
|
115
|
+
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
113
116
|
}>;
|
|
114
117
|
}, "strip", z.ZodTypeAny, {
|
|
115
118
|
jws: string;
|
|
116
119
|
meta: {
|
|
117
|
-
did: string;
|
|
118
|
-
kid: string;
|
|
119
120
|
nonce: string;
|
|
120
121
|
audience: string;
|
|
121
122
|
sessionId: string;
|
|
122
|
-
|
|
123
|
+
did: string;
|
|
124
|
+
kid: string;
|
|
123
125
|
requestHash: string;
|
|
124
126
|
responseHash: string;
|
|
127
|
+
ts: number;
|
|
125
128
|
clientDid?: string | undefined;
|
|
126
129
|
delegationRef?: string | undefined;
|
|
127
130
|
scopeId?: string | undefined;
|
|
131
|
+
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
128
132
|
};
|
|
129
133
|
}, {
|
|
130
134
|
jws: string;
|
|
131
135
|
meta: {
|
|
132
|
-
did: string;
|
|
133
|
-
kid: string;
|
|
134
136
|
nonce: string;
|
|
135
137
|
audience: string;
|
|
136
138
|
sessionId: string;
|
|
137
|
-
|
|
139
|
+
did: string;
|
|
140
|
+
kid: string;
|
|
138
141
|
requestHash: string;
|
|
139
142
|
responseHash: string;
|
|
143
|
+
ts: number;
|
|
140
144
|
clientDid?: string | undefined;
|
|
141
145
|
delegationRef?: string | undefined;
|
|
142
146
|
scopeId?: string | undefined;
|
|
147
|
+
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
143
148
|
};
|
|
144
149
|
}>, "many">;
|
|
145
150
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -185,37 +190,37 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
185
190
|
identifier: string;
|
|
186
191
|
}>>;
|
|
187
192
|
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
agentDid: string;
|
|
189
|
-
projectId: string;
|
|
190
193
|
timestamp: number;
|
|
191
|
-
|
|
194
|
+
agentDid: string;
|
|
192
195
|
sessionId: string;
|
|
193
196
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
194
197
|
targetTools: string[];
|
|
198
|
+
scopes: string[];
|
|
199
|
+
projectId: string;
|
|
195
200
|
userDid?: string | undefined;
|
|
196
201
|
oauthIdentity?: {
|
|
197
202
|
provider: string;
|
|
198
203
|
identifier: string;
|
|
199
204
|
} | undefined;
|
|
200
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
201
205
|
delegationId?: string | undefined;
|
|
202
206
|
termsAccepted?: boolean | undefined;
|
|
207
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
203
208
|
}, {
|
|
204
|
-
agentDid: string;
|
|
205
|
-
projectId: string;
|
|
206
209
|
timestamp: number;
|
|
207
|
-
|
|
210
|
+
agentDid: string;
|
|
208
211
|
sessionId: string;
|
|
209
212
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
210
213
|
targetTools: string[];
|
|
214
|
+
scopes: string[];
|
|
215
|
+
projectId: string;
|
|
211
216
|
userDid?: string | undefined;
|
|
212
217
|
oauthIdentity?: {
|
|
213
218
|
provider: string;
|
|
214
219
|
identifier: string;
|
|
215
220
|
} | undefined;
|
|
216
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
217
221
|
delegationId?: string | undefined;
|
|
218
222
|
termsAccepted?: boolean | undefined;
|
|
223
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
219
224
|
}>, "many">>;
|
|
220
225
|
mcpServerUrl: z.ZodOptional<z.ZodString>;
|
|
221
226
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -228,21 +233,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
228
233
|
}[] | undefined;
|
|
229
234
|
mcpServerUrl?: string | undefined;
|
|
230
235
|
consentEvents?: {
|
|
231
|
-
agentDid: string;
|
|
232
|
-
projectId: string;
|
|
233
236
|
timestamp: number;
|
|
234
|
-
|
|
237
|
+
agentDid: string;
|
|
235
238
|
sessionId: string;
|
|
236
239
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
237
240
|
targetTools: string[];
|
|
241
|
+
scopes: string[];
|
|
242
|
+
projectId: string;
|
|
238
243
|
userDid?: string | undefined;
|
|
239
244
|
oauthIdentity?: {
|
|
240
245
|
provider: string;
|
|
241
246
|
identifier: string;
|
|
242
247
|
} | undefined;
|
|
243
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
244
248
|
delegationId?: string | undefined;
|
|
245
249
|
termsAccepted?: boolean | undefined;
|
|
250
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
246
251
|
}[] | undefined;
|
|
247
252
|
}, {
|
|
248
253
|
toolCalls?: {
|
|
@@ -254,21 +259,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
254
259
|
}[] | undefined;
|
|
255
260
|
mcpServerUrl?: string | undefined;
|
|
256
261
|
consentEvents?: {
|
|
257
|
-
agentDid: string;
|
|
258
|
-
projectId: string;
|
|
259
262
|
timestamp: number;
|
|
260
|
-
|
|
263
|
+
agentDid: string;
|
|
261
264
|
sessionId: string;
|
|
262
265
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
263
266
|
targetTools: string[];
|
|
267
|
+
scopes: string[];
|
|
268
|
+
projectId: string;
|
|
264
269
|
userDid?: string | undefined;
|
|
265
270
|
oauthIdentity?: {
|
|
266
271
|
provider: string;
|
|
267
272
|
identifier: string;
|
|
268
273
|
} | undefined;
|
|
269
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
270
274
|
delegationId?: string | undefined;
|
|
271
275
|
termsAccepted?: boolean | undefined;
|
|
276
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
272
277
|
}[] | undefined;
|
|
273
278
|
}>>;
|
|
274
279
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -276,17 +281,18 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
276
281
|
proofs: {
|
|
277
282
|
jws: string;
|
|
278
283
|
meta: {
|
|
279
|
-
did: string;
|
|
280
|
-
kid: string;
|
|
281
284
|
nonce: string;
|
|
282
285
|
audience: string;
|
|
283
286
|
sessionId: string;
|
|
284
|
-
|
|
287
|
+
did: string;
|
|
288
|
+
kid: string;
|
|
285
289
|
requestHash: string;
|
|
286
290
|
responseHash: string;
|
|
291
|
+
ts: number;
|
|
287
292
|
clientDid?: string | undefined;
|
|
288
293
|
delegationRef?: string | undefined;
|
|
289
294
|
scopeId?: string | undefined;
|
|
295
|
+
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
290
296
|
};
|
|
291
297
|
}[];
|
|
292
298
|
delegation_id?: string | null | undefined;
|
|
@@ -300,21 +306,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
300
306
|
}[] | undefined;
|
|
301
307
|
mcpServerUrl?: string | undefined;
|
|
302
308
|
consentEvents?: {
|
|
303
|
-
agentDid: string;
|
|
304
|
-
projectId: string;
|
|
305
309
|
timestamp: number;
|
|
306
|
-
|
|
310
|
+
agentDid: string;
|
|
307
311
|
sessionId: string;
|
|
308
312
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
309
313
|
targetTools: string[];
|
|
314
|
+
scopes: string[];
|
|
315
|
+
projectId: string;
|
|
310
316
|
userDid?: string | undefined;
|
|
311
317
|
oauthIdentity?: {
|
|
312
318
|
provider: string;
|
|
313
319
|
identifier: string;
|
|
314
320
|
} | undefined;
|
|
315
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
316
321
|
delegationId?: string | undefined;
|
|
317
322
|
termsAccepted?: boolean | undefined;
|
|
323
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
318
324
|
}[] | undefined;
|
|
319
325
|
} | undefined;
|
|
320
326
|
}, {
|
|
@@ -322,17 +328,18 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
322
328
|
proofs: {
|
|
323
329
|
jws: string;
|
|
324
330
|
meta: {
|
|
325
|
-
did: string;
|
|
326
|
-
kid: string;
|
|
327
331
|
nonce: string;
|
|
328
332
|
audience: string;
|
|
329
333
|
sessionId: string;
|
|
330
|
-
|
|
334
|
+
did: string;
|
|
335
|
+
kid: string;
|
|
331
336
|
requestHash: string;
|
|
332
337
|
responseHash: string;
|
|
338
|
+
ts: number;
|
|
333
339
|
clientDid?: string | undefined;
|
|
334
340
|
delegationRef?: string | undefined;
|
|
335
341
|
scopeId?: string | undefined;
|
|
342
|
+
outcome?: "allowed" | "denied" | "step_up_required" | "needs_authorization" | undefined;
|
|
336
343
|
};
|
|
337
344
|
}[];
|
|
338
345
|
delegation_id?: string | null | undefined;
|
|
@@ -346,21 +353,21 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
346
353
|
}[] | undefined;
|
|
347
354
|
mcpServerUrl?: string | undefined;
|
|
348
355
|
consentEvents?: {
|
|
349
|
-
agentDid: string;
|
|
350
|
-
projectId: string;
|
|
351
356
|
timestamp: number;
|
|
352
|
-
|
|
357
|
+
agentDid: string;
|
|
353
358
|
sessionId: string;
|
|
354
359
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required" | "auth:credential_success" | "auth:credential_failed" | "auth:oauth_success" | "auth:oauth_failed";
|
|
355
360
|
targetTools: string[];
|
|
361
|
+
scopes: string[];
|
|
362
|
+
projectId: string;
|
|
356
363
|
userDid?: string | undefined;
|
|
357
364
|
oauthIdentity?: {
|
|
358
365
|
provider: string;
|
|
359
366
|
identifier: string;
|
|
360
367
|
} | undefined;
|
|
361
|
-
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
362
368
|
delegationId?: string | undefined;
|
|
363
369
|
termsAccepted?: boolean | undefined;
|
|
370
|
+
credentialStatus?: "present" | "required" | "obtained" | undefined;
|
|
364
371
|
}[] | undefined;
|
|
365
372
|
} | undefined;
|
|
366
373
|
}>;
|
|
@@ -388,46 +395,46 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
388
395
|
details?: Record<string, unknown> | undefined;
|
|
389
396
|
}>;
|
|
390
397
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
proof_index: number;
|
|
391
399
|
error: {
|
|
392
400
|
code: string;
|
|
393
401
|
message: string;
|
|
394
402
|
details?: Record<string, unknown> | undefined;
|
|
395
403
|
};
|
|
396
|
-
proof_index: number;
|
|
397
404
|
}, {
|
|
405
|
+
proof_index: number;
|
|
398
406
|
error: {
|
|
399
407
|
code: string;
|
|
400
408
|
message: string;
|
|
401
409
|
details?: Record<string, unknown> | undefined;
|
|
402
410
|
};
|
|
403
|
-
proof_index: number;
|
|
404
411
|
}>, "many">>;
|
|
405
412
|
}, "strip", z.ZodTypeAny, {
|
|
406
413
|
success: boolean;
|
|
407
414
|
accepted: number;
|
|
408
415
|
rejected: number;
|
|
416
|
+
outcomes?: Record<string, number> | undefined;
|
|
409
417
|
errors?: {
|
|
418
|
+
proof_index: number;
|
|
410
419
|
error: {
|
|
411
420
|
code: string;
|
|
412
421
|
message: string;
|
|
413
422
|
details?: Record<string, unknown> | undefined;
|
|
414
423
|
};
|
|
415
|
-
proof_index: number;
|
|
416
424
|
}[] | undefined;
|
|
417
|
-
outcomes?: Record<string, number> | undefined;
|
|
418
425
|
}, {
|
|
419
426
|
success: boolean;
|
|
420
427
|
accepted: number;
|
|
421
428
|
rejected: number;
|
|
429
|
+
outcomes?: Record<string, number> | undefined;
|
|
422
430
|
errors?: {
|
|
431
|
+
proof_index: number;
|
|
423
432
|
error: {
|
|
424
433
|
code: string;
|
|
425
434
|
message: string;
|
|
426
435
|
details?: Record<string, unknown> | undefined;
|
|
427
436
|
};
|
|
428
|
-
proof_index: number;
|
|
429
437
|
}[] | undefined;
|
|
430
|
-
outcomes?: Record<string, number> | undefined;
|
|
431
438
|
}>;
|
|
432
439
|
/**
|
|
433
440
|
* Delegation credential schema
|
|
@@ -451,7 +458,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
451
458
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
452
459
|
domain: z.ZodOptional<z.ZodString>;
|
|
453
460
|
}, "strip", z.ZodTypeAny, {
|
|
454
|
-
type: "
|
|
461
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
455
462
|
provider?: string | undefined;
|
|
456
463
|
credentialType?: string | undefined;
|
|
457
464
|
rpId?: string | undefined;
|
|
@@ -459,7 +466,7 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
459
466
|
chainId?: number | undefined;
|
|
460
467
|
domain?: string | undefined;
|
|
461
468
|
}, {
|
|
462
|
-
type: "
|
|
469
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
463
470
|
provider?: string | undefined;
|
|
464
471
|
credentialType?: string | undefined;
|
|
465
472
|
rpId?: string | undefined;
|
|
@@ -469,8 +476,12 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
469
476
|
}>;
|
|
470
477
|
}, "strip", z.ZodTypeAny, {
|
|
471
478
|
scopes: string[];
|
|
479
|
+
agent_did: string;
|
|
480
|
+
user_did: string;
|
|
481
|
+
issued_at: number;
|
|
482
|
+
created_at: number;
|
|
472
483
|
authorization: {
|
|
473
|
-
type: "
|
|
484
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
474
485
|
provider?: string | undefined;
|
|
475
486
|
credentialType?: string | undefined;
|
|
476
487
|
rpId?: string | undefined;
|
|
@@ -478,18 +489,18 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
478
489
|
chainId?: number | undefined;
|
|
479
490
|
domain?: string | undefined;
|
|
480
491
|
};
|
|
481
|
-
agent_did: string;
|
|
482
|
-
user_did: string;
|
|
483
|
-
issued_at: number;
|
|
484
|
-
created_at: number;
|
|
485
|
-
constraints?: Record<string, unknown> | undefined;
|
|
486
492
|
user_id?: string | undefined;
|
|
487
493
|
user_identifier?: string | undefined;
|
|
494
|
+
constraints?: Record<string, unknown> | undefined;
|
|
488
495
|
credential_jwt?: string | undefined;
|
|
489
496
|
}, {
|
|
490
497
|
scopes: string[];
|
|
498
|
+
agent_did: string;
|
|
499
|
+
user_did: string;
|
|
500
|
+
issued_at: number;
|
|
501
|
+
created_at: number;
|
|
491
502
|
authorization: {
|
|
492
|
-
type: "
|
|
503
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
493
504
|
provider?: string | undefined;
|
|
494
505
|
credentialType?: string | undefined;
|
|
495
506
|
rpId?: string | undefined;
|
|
@@ -497,13 +508,9 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
497
508
|
chainId?: number | undefined;
|
|
498
509
|
domain?: string | undefined;
|
|
499
510
|
};
|
|
500
|
-
agent_did: string;
|
|
501
|
-
user_did: string;
|
|
502
|
-
issued_at: number;
|
|
503
|
-
created_at: number;
|
|
504
|
-
constraints?: Record<string, unknown> | undefined;
|
|
505
511
|
user_id?: string | undefined;
|
|
506
512
|
user_identifier?: string | undefined;
|
|
513
|
+
constraints?: Record<string, unknown> | undefined;
|
|
507
514
|
credential_jwt?: string | undefined;
|
|
508
515
|
}>;
|
|
509
516
|
/**
|
|
@@ -521,12 +528,12 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
521
528
|
origin: z.ZodOptional<z.ZodString>;
|
|
522
529
|
user_agent: z.ZodOptional<z.ZodString>;
|
|
523
530
|
}, "strip", z.ZodTypeAny, {
|
|
524
|
-
origin?: string | undefined;
|
|
525
531
|
ip_address?: string | undefined;
|
|
532
|
+
origin?: string | undefined;
|
|
526
533
|
user_agent?: string | undefined;
|
|
527
534
|
}, {
|
|
528
|
-
origin?: string | undefined;
|
|
529
535
|
ip_address?: string | undefined;
|
|
536
|
+
origin?: string | undefined;
|
|
530
537
|
user_agent?: string | undefined;
|
|
531
538
|
}>>;
|
|
532
539
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -537,8 +544,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
537
544
|
credential_jwt?: string | undefined;
|
|
538
545
|
delegation_token?: string | undefined;
|
|
539
546
|
client_info?: {
|
|
540
|
-
origin?: string | undefined;
|
|
541
547
|
ip_address?: string | undefined;
|
|
548
|
+
origin?: string | undefined;
|
|
542
549
|
user_agent?: string | undefined;
|
|
543
550
|
} | undefined;
|
|
544
551
|
}, {
|
|
@@ -549,8 +556,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
549
556
|
credential_jwt?: string | undefined;
|
|
550
557
|
delegation_token?: string | undefined;
|
|
551
558
|
client_info?: {
|
|
552
|
-
origin?: string | undefined;
|
|
553
559
|
ip_address?: string | undefined;
|
|
560
|
+
origin?: string | undefined;
|
|
554
561
|
user_agent?: string | undefined;
|
|
555
562
|
} | undefined;
|
|
556
563
|
}>;
|
|
@@ -1810,7 +1817,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1810
1817
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
1811
1818
|
domain: z.ZodOptional<z.ZodString>;
|
|
1812
1819
|
}, "strip", z.ZodTypeAny, {
|
|
1813
|
-
type: "
|
|
1820
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
1814
1821
|
provider?: string | undefined;
|
|
1815
1822
|
credentialType?: string | undefined;
|
|
1816
1823
|
rpId?: string | undefined;
|
|
@@ -1818,7 +1825,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1818
1825
|
chainId?: number | undefined;
|
|
1819
1826
|
domain?: string | undefined;
|
|
1820
1827
|
}, {
|
|
1821
|
-
type: "
|
|
1828
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
1822
1829
|
provider?: string | undefined;
|
|
1823
1830
|
credentialType?: string | undefined;
|
|
1824
1831
|
rpId?: string | undefined;
|
|
@@ -1828,8 +1835,12 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1828
1835
|
}>;
|
|
1829
1836
|
}, "strip", z.ZodTypeAny, {
|
|
1830
1837
|
scopes: string[];
|
|
1838
|
+
agent_did: string;
|
|
1839
|
+
user_did: string;
|
|
1840
|
+
issued_at: number;
|
|
1841
|
+
created_at: number;
|
|
1831
1842
|
authorization: {
|
|
1832
|
-
type: "
|
|
1843
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
1833
1844
|
provider?: string | undefined;
|
|
1834
1845
|
credentialType?: string | undefined;
|
|
1835
1846
|
rpId?: string | undefined;
|
|
@@ -1837,18 +1848,18 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1837
1848
|
chainId?: number | undefined;
|
|
1838
1849
|
domain?: string | undefined;
|
|
1839
1850
|
};
|
|
1840
|
-
agent_did: string;
|
|
1841
|
-
user_did: string;
|
|
1842
|
-
issued_at: number;
|
|
1843
|
-
created_at: number;
|
|
1844
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1845
1851
|
user_id?: string | undefined;
|
|
1846
1852
|
user_identifier?: string | undefined;
|
|
1853
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1847
1854
|
credential_jwt?: string | undefined;
|
|
1848
1855
|
}, {
|
|
1849
1856
|
scopes: string[];
|
|
1857
|
+
agent_did: string;
|
|
1858
|
+
user_did: string;
|
|
1859
|
+
issued_at: number;
|
|
1860
|
+
created_at: number;
|
|
1850
1861
|
authorization: {
|
|
1851
|
-
type: "
|
|
1862
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
1852
1863
|
provider?: string | undefined;
|
|
1853
1864
|
credentialType?: string | undefined;
|
|
1854
1865
|
rpId?: string | undefined;
|
|
@@ -1856,13 +1867,9 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1856
1867
|
chainId?: number | undefined;
|
|
1857
1868
|
domain?: string | undefined;
|
|
1858
1869
|
};
|
|
1859
|
-
agent_did: string;
|
|
1860
|
-
user_did: string;
|
|
1861
|
-
issued_at: number;
|
|
1862
|
-
created_at: number;
|
|
1863
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1864
1870
|
user_id?: string | undefined;
|
|
1865
1871
|
user_identifier?: string | undefined;
|
|
1872
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1866
1873
|
credential_jwt?: string | undefined;
|
|
1867
1874
|
}>>;
|
|
1868
1875
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -1881,6 +1888,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1881
1888
|
reason: z.ZodOptional<z.ZodString>;
|
|
1882
1889
|
}, "strip", z.ZodTypeAny, {
|
|
1883
1890
|
valid: boolean;
|
|
1891
|
+
delegation_id?: string | undefined;
|
|
1884
1892
|
error?: {
|
|
1885
1893
|
code: string;
|
|
1886
1894
|
message: string;
|
|
@@ -1888,8 +1896,12 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1888
1896
|
} | undefined;
|
|
1889
1897
|
credential?: {
|
|
1890
1898
|
scopes: string[];
|
|
1899
|
+
agent_did: string;
|
|
1900
|
+
user_did: string;
|
|
1901
|
+
issued_at: number;
|
|
1902
|
+
created_at: number;
|
|
1891
1903
|
authorization: {
|
|
1892
|
-
type: "
|
|
1904
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
1893
1905
|
provider?: string | undefined;
|
|
1894
1906
|
credentialType?: string | undefined;
|
|
1895
1907
|
rpId?: string | undefined;
|
|
@@ -1897,17 +1909,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1897
1909
|
chainId?: number | undefined;
|
|
1898
1910
|
domain?: string | undefined;
|
|
1899
1911
|
};
|
|
1900
|
-
agent_did: string;
|
|
1901
|
-
user_did: string;
|
|
1902
|
-
issued_at: number;
|
|
1903
|
-
created_at: number;
|
|
1904
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1905
1912
|
user_id?: string | undefined;
|
|
1906
1913
|
user_identifier?: string | undefined;
|
|
1914
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1907
1915
|
credential_jwt?: string | undefined;
|
|
1908
1916
|
} | undefined;
|
|
1909
|
-
delegation_id?: string | undefined;
|
|
1910
|
-
reason?: string | undefined;
|
|
1911
1917
|
delegation?: z.objectOutputType<{
|
|
1912
1918
|
id: z.ZodString;
|
|
1913
1919
|
issuerDid: z.ZodString;
|
|
@@ -2319,8 +2325,10 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2319
2325
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2320
2326
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2321
2327
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2328
|
+
reason?: string | undefined;
|
|
2322
2329
|
}, {
|
|
2323
2330
|
valid: boolean;
|
|
2331
|
+
delegation_id?: string | undefined;
|
|
2324
2332
|
error?: {
|
|
2325
2333
|
code: string;
|
|
2326
2334
|
message: string;
|
|
@@ -2328,8 +2336,12 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2328
2336
|
} | undefined;
|
|
2329
2337
|
credential?: {
|
|
2330
2338
|
scopes: string[];
|
|
2339
|
+
agent_did: string;
|
|
2340
|
+
user_did: string;
|
|
2341
|
+
issued_at: number;
|
|
2342
|
+
created_at: number;
|
|
2331
2343
|
authorization: {
|
|
2332
|
-
type: "
|
|
2344
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
2333
2345
|
provider?: string | undefined;
|
|
2334
2346
|
credentialType?: string | undefined;
|
|
2335
2347
|
rpId?: string | undefined;
|
|
@@ -2337,17 +2349,11 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2337
2349
|
chainId?: number | undefined;
|
|
2338
2350
|
domain?: string | undefined;
|
|
2339
2351
|
};
|
|
2340
|
-
agent_did: string;
|
|
2341
|
-
user_did: string;
|
|
2342
|
-
issued_at: number;
|
|
2343
|
-
created_at: number;
|
|
2344
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2345
2352
|
user_id?: string | undefined;
|
|
2346
2353
|
user_identifier?: string | undefined;
|
|
2354
|
+
constraints?: Record<string, unknown> | undefined;
|
|
2347
2355
|
credential_jwt?: string | undefined;
|
|
2348
2356
|
} | undefined;
|
|
2349
|
-
delegation_id?: string | undefined;
|
|
2350
|
-
reason?: string | undefined;
|
|
2351
2357
|
delegation?: z.objectInputType<{
|
|
2352
2358
|
id: z.ZodString;
|
|
2353
2359
|
issuerDid: z.ZodString;
|
|
@@ -2759,6 +2765,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2759
2765
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2760
2766
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2761
2767
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2768
|
+
reason?: string | undefined;
|
|
2762
2769
|
}>;
|
|
2763
2770
|
/**
|
|
2764
2771
|
* Wrapped verification response schema
|
|
@@ -4018,7 +4025,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4018
4025
|
chainId: z.ZodOptional<z.ZodNumber>;
|
|
4019
4026
|
domain: z.ZodOptional<z.ZodString>;
|
|
4020
4027
|
}, "strip", z.ZodTypeAny, {
|
|
4021
|
-
type: "
|
|
4028
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
4022
4029
|
provider?: string | undefined;
|
|
4023
4030
|
credentialType?: string | undefined;
|
|
4024
4031
|
rpId?: string | undefined;
|
|
@@ -4026,7 +4033,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4026
4033
|
chainId?: number | undefined;
|
|
4027
4034
|
domain?: string | undefined;
|
|
4028
4035
|
}, {
|
|
4029
|
-
type: "
|
|
4036
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
4030
4037
|
provider?: string | undefined;
|
|
4031
4038
|
credentialType?: string | undefined;
|
|
4032
4039
|
rpId?: string | undefined;
|
|
@@ -4036,8 +4043,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4036
4043
|
}>;
|
|
4037
4044
|
}, "strip", z.ZodTypeAny, {
|
|
4038
4045
|
scopes: string[];
|
|
4046
|
+
agent_did: string;
|
|
4047
|
+
user_did: string;
|
|
4048
|
+
issued_at: number;
|
|
4049
|
+
created_at: number;
|
|
4039
4050
|
authorization: {
|
|
4040
|
-
type: "
|
|
4051
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
4041
4052
|
provider?: string | undefined;
|
|
4042
4053
|
credentialType?: string | undefined;
|
|
4043
4054
|
rpId?: string | undefined;
|
|
@@ -4045,18 +4056,18 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4045
4056
|
chainId?: number | undefined;
|
|
4046
4057
|
domain?: string | undefined;
|
|
4047
4058
|
};
|
|
4048
|
-
agent_did: string;
|
|
4049
|
-
user_did: string;
|
|
4050
|
-
issued_at: number;
|
|
4051
|
-
created_at: number;
|
|
4052
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4053
4059
|
user_id?: string | undefined;
|
|
4054
4060
|
user_identifier?: string | undefined;
|
|
4061
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4055
4062
|
credential_jwt?: string | undefined;
|
|
4056
4063
|
}, {
|
|
4057
4064
|
scopes: string[];
|
|
4065
|
+
agent_did: string;
|
|
4066
|
+
user_did: string;
|
|
4067
|
+
issued_at: number;
|
|
4068
|
+
created_at: number;
|
|
4058
4069
|
authorization: {
|
|
4059
|
-
type: "
|
|
4070
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
4060
4071
|
provider?: string | undefined;
|
|
4061
4072
|
credentialType?: string | undefined;
|
|
4062
4073
|
rpId?: string | undefined;
|
|
@@ -4064,13 +4075,9 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4064
4075
|
chainId?: number | undefined;
|
|
4065
4076
|
domain?: string | undefined;
|
|
4066
4077
|
};
|
|
4067
|
-
agent_did: string;
|
|
4068
|
-
user_did: string;
|
|
4069
|
-
issued_at: number;
|
|
4070
|
-
created_at: number;
|
|
4071
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4072
4078
|
user_id?: string | undefined;
|
|
4073
4079
|
user_identifier?: string | undefined;
|
|
4080
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4074
4081
|
credential_jwt?: string | undefined;
|
|
4075
4082
|
}>>;
|
|
4076
4083
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -4089,6 +4096,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4089
4096
|
reason: z.ZodOptional<z.ZodString>;
|
|
4090
4097
|
}, "strip", z.ZodTypeAny, {
|
|
4091
4098
|
valid: boolean;
|
|
4099
|
+
delegation_id?: string | undefined;
|
|
4092
4100
|
error?: {
|
|
4093
4101
|
code: string;
|
|
4094
4102
|
message: string;
|
|
@@ -4096,8 +4104,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4096
4104
|
} | undefined;
|
|
4097
4105
|
credential?: {
|
|
4098
4106
|
scopes: string[];
|
|
4107
|
+
agent_did: string;
|
|
4108
|
+
user_did: string;
|
|
4109
|
+
issued_at: number;
|
|
4110
|
+
created_at: number;
|
|
4099
4111
|
authorization: {
|
|
4100
|
-
type: "
|
|
4112
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
4101
4113
|
provider?: string | undefined;
|
|
4102
4114
|
credentialType?: string | undefined;
|
|
4103
4115
|
rpId?: string | undefined;
|
|
@@ -4105,17 +4117,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4105
4117
|
chainId?: number | undefined;
|
|
4106
4118
|
domain?: string | undefined;
|
|
4107
4119
|
};
|
|
4108
|
-
agent_did: string;
|
|
4109
|
-
user_did: string;
|
|
4110
|
-
issued_at: number;
|
|
4111
|
-
created_at: number;
|
|
4112
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4113
4120
|
user_id?: string | undefined;
|
|
4114
4121
|
user_identifier?: string | undefined;
|
|
4122
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4115
4123
|
credential_jwt?: string | undefined;
|
|
4116
4124
|
} | undefined;
|
|
4117
|
-
delegation_id?: string | undefined;
|
|
4118
|
-
reason?: string | undefined;
|
|
4119
4125
|
delegation?: z.objectOutputType<{
|
|
4120
4126
|
id: z.ZodString;
|
|
4121
4127
|
issuerDid: z.ZodString;
|
|
@@ -4527,8 +4533,10 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4527
4533
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4528
4534
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4529
4535
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4536
|
+
reason?: string | undefined;
|
|
4530
4537
|
}, {
|
|
4531
4538
|
valid: boolean;
|
|
4539
|
+
delegation_id?: string | undefined;
|
|
4532
4540
|
error?: {
|
|
4533
4541
|
code: string;
|
|
4534
4542
|
message: string;
|
|
@@ -4536,8 +4544,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4536
4544
|
} | undefined;
|
|
4537
4545
|
credential?: {
|
|
4538
4546
|
scopes: string[];
|
|
4547
|
+
agent_did: string;
|
|
4548
|
+
user_did: string;
|
|
4549
|
+
issued_at: number;
|
|
4550
|
+
created_at: number;
|
|
4539
4551
|
authorization: {
|
|
4540
|
-
type: "
|
|
4552
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
4541
4553
|
provider?: string | undefined;
|
|
4542
4554
|
credentialType?: string | undefined;
|
|
4543
4555
|
rpId?: string | undefined;
|
|
@@ -4545,17 +4557,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4545
4557
|
chainId?: number | undefined;
|
|
4546
4558
|
domain?: string | undefined;
|
|
4547
4559
|
};
|
|
4548
|
-
agent_did: string;
|
|
4549
|
-
user_did: string;
|
|
4550
|
-
issued_at: number;
|
|
4551
|
-
created_at: number;
|
|
4552
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4553
4560
|
user_id?: string | undefined;
|
|
4554
4561
|
user_identifier?: string | undefined;
|
|
4562
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4555
4563
|
credential_jwt?: string | undefined;
|
|
4556
4564
|
} | undefined;
|
|
4557
|
-
delegation_id?: string | undefined;
|
|
4558
|
-
reason?: string | undefined;
|
|
4559
4565
|
delegation?: z.objectInputType<{
|
|
4560
4566
|
id: z.ZodString;
|
|
4561
4567
|
issuerDid: z.ZodString;
|
|
@@ -4967,6 +4973,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4967
4973
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4968
4974
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4969
4975
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4976
|
+
reason?: string | undefined;
|
|
4970
4977
|
}>;
|
|
4971
4978
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4972
4979
|
requestId: z.ZodString;
|
|
@@ -4982,6 +4989,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4982
4989
|
success: boolean;
|
|
4983
4990
|
data: {
|
|
4984
4991
|
valid: boolean;
|
|
4992
|
+
delegation_id?: string | undefined;
|
|
4985
4993
|
error?: {
|
|
4986
4994
|
code: string;
|
|
4987
4995
|
message: string;
|
|
@@ -4989,8 +4997,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4989
4997
|
} | undefined;
|
|
4990
4998
|
credential?: {
|
|
4991
4999
|
scopes: string[];
|
|
5000
|
+
agent_did: string;
|
|
5001
|
+
user_did: string;
|
|
5002
|
+
issued_at: number;
|
|
5003
|
+
created_at: number;
|
|
4992
5004
|
authorization: {
|
|
4993
|
-
type: "
|
|
5005
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
4994
5006
|
provider?: string | undefined;
|
|
4995
5007
|
credentialType?: string | undefined;
|
|
4996
5008
|
rpId?: string | undefined;
|
|
@@ -4998,17 +5010,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4998
5010
|
chainId?: number | undefined;
|
|
4999
5011
|
domain?: string | undefined;
|
|
5000
5012
|
};
|
|
5001
|
-
agent_did: string;
|
|
5002
|
-
user_did: string;
|
|
5003
|
-
issued_at: number;
|
|
5004
|
-
created_at: number;
|
|
5005
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5006
5013
|
user_id?: string | undefined;
|
|
5007
5014
|
user_identifier?: string | undefined;
|
|
5015
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5008
5016
|
credential_jwt?: string | undefined;
|
|
5009
5017
|
} | undefined;
|
|
5010
|
-
delegation_id?: string | undefined;
|
|
5011
|
-
reason?: string | undefined;
|
|
5012
5018
|
delegation?: z.objectOutputType<{
|
|
5013
5019
|
id: z.ZodString;
|
|
5014
5020
|
issuerDid: z.ZodString;
|
|
@@ -5420,6 +5426,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5420
5426
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5421
5427
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5422
5428
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5429
|
+
reason?: string | undefined;
|
|
5423
5430
|
};
|
|
5424
5431
|
metadata?: {
|
|
5425
5432
|
timestamp: string;
|
|
@@ -5429,6 +5436,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5429
5436
|
success: boolean;
|
|
5430
5437
|
data: {
|
|
5431
5438
|
valid: boolean;
|
|
5439
|
+
delegation_id?: string | undefined;
|
|
5432
5440
|
error?: {
|
|
5433
5441
|
code: string;
|
|
5434
5442
|
message: string;
|
|
@@ -5436,8 +5444,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5436
5444
|
} | undefined;
|
|
5437
5445
|
credential?: {
|
|
5438
5446
|
scopes: string[];
|
|
5447
|
+
agent_did: string;
|
|
5448
|
+
user_did: string;
|
|
5449
|
+
issued_at: number;
|
|
5450
|
+
created_at: number;
|
|
5439
5451
|
authorization: {
|
|
5440
|
-
type: "
|
|
5452
|
+
type: "oauth" | "oauth2" | "password" | "credential" | "webauthn" | "siwe" | "none";
|
|
5441
5453
|
provider?: string | undefined;
|
|
5442
5454
|
credentialType?: string | undefined;
|
|
5443
5455
|
rpId?: string | undefined;
|
|
@@ -5445,17 +5457,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5445
5457
|
chainId?: number | undefined;
|
|
5446
5458
|
domain?: string | undefined;
|
|
5447
5459
|
};
|
|
5448
|
-
agent_did: string;
|
|
5449
|
-
user_did: string;
|
|
5450
|
-
issued_at: number;
|
|
5451
|
-
created_at: number;
|
|
5452
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5453
5460
|
user_id?: string | undefined;
|
|
5454
5461
|
user_identifier?: string | undefined;
|
|
5462
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5455
5463
|
credential_jwt?: string | undefined;
|
|
5456
5464
|
} | undefined;
|
|
5457
|
-
delegation_id?: string | undefined;
|
|
5458
|
-
reason?: string | undefined;
|
|
5459
5465
|
delegation?: z.objectInputType<{
|
|
5460
5466
|
id: z.ZodString;
|
|
5461
5467
|
issuerDid: z.ZodString;
|
|
@@ -5867,6 +5873,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5867
5873
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5868
5874
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5869
5875
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5876
|
+
reason?: string | undefined;
|
|
5870
5877
|
};
|
|
5871
5878
|
metadata?: {
|
|
5872
5879
|
timestamp: string;
|
|
@@ -5933,13 +5940,13 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5933
5940
|
time_window: string;
|
|
5934
5941
|
}>>;
|
|
5935
5942
|
}, "strip", z.ZodTypeAny, {
|
|
5943
|
+
agent_did: string;
|
|
5936
5944
|
tools: Record<string, z.objectOutputType<{
|
|
5937
5945
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5938
5946
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
5939
5947
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
5940
5948
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5941
5949
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5942
|
-
agent_did: string;
|
|
5943
5950
|
reputation_threshold?: number | undefined;
|
|
5944
5951
|
denied_agents?: string[] | undefined;
|
|
5945
5952
|
crisp_budget?: {
|
|
@@ -5949,13 +5956,13 @@ export declare const toolProtectionConfigResponseSchema: z.ZodObject<{
|
|
|
5949
5956
|
time_window: string;
|
|
5950
5957
|
} | undefined;
|
|
5951
5958
|
}, {
|
|
5959
|
+
agent_did: string;
|
|
5952
5960
|
tools: Record<string, z.objectInputType<{
|
|
5953
5961
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5954
5962
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
5955
5963
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
5956
5964
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5957
5965
|
}, z.ZodTypeAny, "passthrough">>;
|
|
5958
|
-
agent_did: string;
|
|
5959
5966
|
reputation_threshold?: number | undefined;
|
|
5960
5967
|
denied_agents?: string[] | undefined;
|
|
5961
5968
|
crisp_budget?: {
|
|
@@ -6007,13 +6014,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6007
6014
|
time_window: string;
|
|
6008
6015
|
}>>;
|
|
6009
6016
|
}, "strip", z.ZodTypeAny, {
|
|
6017
|
+
agent_did: string;
|
|
6010
6018
|
tools: Record<string, z.objectOutputType<{
|
|
6011
6019
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6012
6020
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6013
6021
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6014
6022
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6015
6023
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6016
|
-
agent_did: string;
|
|
6017
6024
|
reputation_threshold?: number | undefined;
|
|
6018
6025
|
denied_agents?: string[] | undefined;
|
|
6019
6026
|
crisp_budget?: {
|
|
@@ -6023,13 +6030,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6023
6030
|
time_window: string;
|
|
6024
6031
|
} | undefined;
|
|
6025
6032
|
}, {
|
|
6033
|
+
agent_did: string;
|
|
6026
6034
|
tools: Record<string, z.objectInputType<{
|
|
6027
6035
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6028
6036
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6029
6037
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6030
6038
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6031
6039
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6032
|
-
agent_did: string;
|
|
6033
6040
|
reputation_threshold?: number | undefined;
|
|
6034
6041
|
denied_agents?: string[] | undefined;
|
|
6035
6042
|
crisp_budget?: {
|
|
@@ -6052,13 +6059,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6052
6059
|
}, "strip", z.ZodTypeAny, {
|
|
6053
6060
|
success: boolean;
|
|
6054
6061
|
data: {
|
|
6062
|
+
agent_did: string;
|
|
6055
6063
|
tools: Record<string, z.objectOutputType<{
|
|
6056
6064
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6057
6065
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6058
6066
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6059
6067
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6060
6068
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6061
|
-
agent_did: string;
|
|
6062
6069
|
reputation_threshold?: number | undefined;
|
|
6063
6070
|
denied_agents?: string[] | undefined;
|
|
6064
6071
|
crisp_budget?: {
|
|
@@ -6075,13 +6082,13 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
6075
6082
|
}, {
|
|
6076
6083
|
success: boolean;
|
|
6077
6084
|
data: {
|
|
6085
|
+
agent_did: string;
|
|
6078
6086
|
tools: Record<string, z.objectInputType<{
|
|
6079
6087
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
6080
6088
|
requires_delegation: z.ZodOptional<z.ZodBoolean>;
|
|
6081
6089
|
requiresDelegation: z.ZodOptional<z.ZodBoolean>;
|
|
6082
6090
|
required_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6083
6091
|
}, z.ZodTypeAny, "passthrough">>;
|
|
6084
|
-
agent_did: string;
|
|
6085
6092
|
reputation_threshold?: number | undefined;
|
|
6086
6093
|
denied_agents?: string[] | undefined;
|
|
6087
6094
|
crisp_budget?: {
|
|
@@ -6172,9 +6179,9 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
6172
6179
|
token_type: z.ZodOptional<z.ZodString>;
|
|
6173
6180
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
6174
6181
|
}, "strip", z.ZodTypeAny, {
|
|
6175
|
-
status: "
|
|
6176
|
-
scopes: string[];
|
|
6182
|
+
status: "active" | "revoked" | "expired";
|
|
6177
6183
|
delegation_id: string;
|
|
6184
|
+
scopes: string[];
|
|
6178
6185
|
agent_did: string;
|
|
6179
6186
|
issued_at: string;
|
|
6180
6187
|
created_at: string;
|
|
@@ -6185,9 +6192,9 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
6185
6192
|
token_type?: string | undefined;
|
|
6186
6193
|
expires_in?: number | undefined;
|
|
6187
6194
|
}, {
|
|
6188
|
-
status: "
|
|
6189
|
-
scopes: string[];
|
|
6195
|
+
status: "active" | "revoked" | "expired";
|
|
6190
6196
|
delegation_id: string;
|
|
6197
|
+
scopes: string[];
|
|
6191
6198
|
agent_did: string;
|
|
6192
6199
|
issued_at: string;
|
|
6193
6200
|
created_at: string;
|
|
@@ -6217,9 +6224,9 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6217
6224
|
token_type: z.ZodOptional<z.ZodString>;
|
|
6218
6225
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
6219
6226
|
}, "strip", z.ZodTypeAny, {
|
|
6220
|
-
status: "
|
|
6221
|
-
scopes: string[];
|
|
6227
|
+
status: "active" | "revoked" | "expired";
|
|
6222
6228
|
delegation_id: string;
|
|
6229
|
+
scopes: string[];
|
|
6223
6230
|
agent_did: string;
|
|
6224
6231
|
issued_at: string;
|
|
6225
6232
|
created_at: string;
|
|
@@ -6230,9 +6237,9 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6230
6237
|
token_type?: string | undefined;
|
|
6231
6238
|
expires_in?: number | undefined;
|
|
6232
6239
|
}, {
|
|
6233
|
-
status: "
|
|
6234
|
-
scopes: string[];
|
|
6240
|
+
status: "active" | "revoked" | "expired";
|
|
6235
6241
|
delegation_id: string;
|
|
6242
|
+
scopes: string[];
|
|
6236
6243
|
agent_did: string;
|
|
6237
6244
|
issued_at: string;
|
|
6238
6245
|
created_at: string;
|
|
@@ -6256,9 +6263,9 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6256
6263
|
}, "strip", z.ZodTypeAny, {
|
|
6257
6264
|
success: boolean;
|
|
6258
6265
|
data: {
|
|
6259
|
-
status: "
|
|
6260
|
-
scopes: string[];
|
|
6266
|
+
status: "active" | "revoked" | "expired";
|
|
6261
6267
|
delegation_id: string;
|
|
6268
|
+
scopes: string[];
|
|
6262
6269
|
agent_did: string;
|
|
6263
6270
|
issued_at: string;
|
|
6264
6271
|
created_at: string;
|
|
@@ -6276,9 +6283,9 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6276
6283
|
}, {
|
|
6277
6284
|
success: boolean;
|
|
6278
6285
|
data: {
|
|
6279
|
-
status: "
|
|
6280
|
-
scopes: string[];
|
|
6286
|
+
status: "active" | "revoked" | "expired";
|
|
6281
6287
|
delegation_id: string;
|
|
6288
|
+
scopes: string[];
|
|
6282
6289
|
agent_did: string;
|
|
6283
6290
|
issued_at: string;
|
|
6284
6291
|
created_at: string;
|
|
@@ -6312,12 +6319,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
|
|
|
6312
6319
|
revoked: z.ZodBoolean;
|
|
6313
6320
|
revoked_at: z.ZodNumber;
|
|
6314
6321
|
}, "strip", z.ZodTypeAny, {
|
|
6315
|
-
revoked: boolean;
|
|
6316
6322
|
delegation_id: string;
|
|
6323
|
+
revoked: boolean;
|
|
6317
6324
|
revoked_at: number;
|
|
6318
6325
|
}, {
|
|
6319
|
-
revoked: boolean;
|
|
6320
6326
|
delegation_id: string;
|
|
6327
|
+
revoked: boolean;
|
|
6321
6328
|
revoked_at: number;
|
|
6322
6329
|
}>;
|
|
6323
6330
|
/**
|
|
@@ -6330,12 +6337,12 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6330
6337
|
revoked: z.ZodBoolean;
|
|
6331
6338
|
revoked_at: z.ZodNumber;
|
|
6332
6339
|
}, "strip", z.ZodTypeAny, {
|
|
6333
|
-
revoked: boolean;
|
|
6334
6340
|
delegation_id: string;
|
|
6341
|
+
revoked: boolean;
|
|
6335
6342
|
revoked_at: number;
|
|
6336
6343
|
}, {
|
|
6337
|
-
revoked: boolean;
|
|
6338
6344
|
delegation_id: string;
|
|
6345
|
+
revoked: boolean;
|
|
6339
6346
|
revoked_at: number;
|
|
6340
6347
|
}>;
|
|
6341
6348
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -6351,8 +6358,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6351
6358
|
}, "strip", z.ZodTypeAny, {
|
|
6352
6359
|
success: boolean;
|
|
6353
6360
|
data: {
|
|
6354
|
-
revoked: boolean;
|
|
6355
6361
|
delegation_id: string;
|
|
6362
|
+
revoked: boolean;
|
|
6356
6363
|
revoked_at: number;
|
|
6357
6364
|
};
|
|
6358
6365
|
metadata?: {
|
|
@@ -6362,8 +6369,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6362
6369
|
}, {
|
|
6363
6370
|
success: boolean;
|
|
6364
6371
|
data: {
|
|
6365
|
-
revoked: boolean;
|
|
6366
6372
|
delegation_id: string;
|
|
6373
|
+
revoked: boolean;
|
|
6367
6374
|
revoked_at: number;
|
|
6368
6375
|
};
|
|
6369
6376
|
metadata?: {
|
|
@@ -6401,13 +6408,13 @@ export declare const sessionClientIdentitySchema: z.ZodObject<{
|
|
|
6401
6408
|
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6402
6409
|
registered: z.ZodBoolean;
|
|
6403
6410
|
}, "strip", z.ZodTypeAny, {
|
|
6404
|
-
registered: boolean;
|
|
6405
6411
|
did: string;
|
|
6406
6412
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6407
|
-
}, {
|
|
6408
6413
|
registered: boolean;
|
|
6414
|
+
}, {
|
|
6409
6415
|
did: string;
|
|
6410
6416
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6417
|
+
registered: boolean;
|
|
6411
6418
|
}>;
|
|
6412
6419
|
/**
|
|
6413
6420
|
* Register session request schema
|
|
@@ -6442,20 +6449,19 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6442
6449
|
source: z.ZodEnum<["knowthat.ai", "kta-lookup", "generated"]>;
|
|
6443
6450
|
registered: z.ZodBoolean;
|
|
6444
6451
|
}, "strip", z.ZodTypeAny, {
|
|
6445
|
-
registered: boolean;
|
|
6446
6452
|
did: string;
|
|
6447
6453
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6448
|
-
}, {
|
|
6449
6454
|
registered: boolean;
|
|
6455
|
+
}, {
|
|
6450
6456
|
did: string;
|
|
6451
6457
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6458
|
+
registered: boolean;
|
|
6452
6459
|
}>>;
|
|
6453
6460
|
server_did: z.ZodOptional<z.ZodString>;
|
|
6454
6461
|
ttl_minutes: z.ZodOptional<z.ZodNumber>;
|
|
6455
6462
|
}, "strip", z.ZodTypeAny, {
|
|
6456
6463
|
session_id: string;
|
|
6457
6464
|
agent_did: string;
|
|
6458
|
-
project_id: string;
|
|
6459
6465
|
created_at: number;
|
|
6460
6466
|
client_info: {
|
|
6461
6467
|
name: string;
|
|
@@ -6464,18 +6470,18 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6464
6470
|
vendor?: string | undefined;
|
|
6465
6471
|
protocol_version?: string | undefined;
|
|
6466
6472
|
};
|
|
6473
|
+
project_id: string;
|
|
6467
6474
|
agent_name?: string | undefined;
|
|
6468
6475
|
client_identity?: {
|
|
6469
|
-
registered: boolean;
|
|
6470
6476
|
did: string;
|
|
6471
6477
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6478
|
+
registered: boolean;
|
|
6472
6479
|
} | undefined;
|
|
6473
6480
|
server_did?: string | undefined;
|
|
6474
6481
|
ttl_minutes?: number | undefined;
|
|
6475
6482
|
}, {
|
|
6476
6483
|
session_id: string;
|
|
6477
6484
|
agent_did: string;
|
|
6478
|
-
project_id: string;
|
|
6479
6485
|
created_at: number;
|
|
6480
6486
|
client_info: {
|
|
6481
6487
|
name: string;
|
|
@@ -6484,11 +6490,12 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6484
6490
|
vendor?: string | undefined;
|
|
6485
6491
|
protocol_version?: string | undefined;
|
|
6486
6492
|
};
|
|
6493
|
+
project_id: string;
|
|
6487
6494
|
agent_name?: string | undefined;
|
|
6488
6495
|
client_identity?: {
|
|
6489
|
-
registered: boolean;
|
|
6490
6496
|
did: string;
|
|
6491
6497
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
6498
|
+
registered: boolean;
|
|
6492
6499
|
} | undefined;
|
|
6493
6500
|
server_did?: string | undefined;
|
|
6494
6501
|
ttl_minutes?: number | undefined;
|
|
@@ -6501,13 +6508,13 @@ export declare const registerSessionResponseSchema: z.ZodObject<{
|
|
|
6501
6508
|
registered: z.ZodBoolean;
|
|
6502
6509
|
created_at: z.ZodString;
|
|
6503
6510
|
}, "strip", z.ZodTypeAny, {
|
|
6504
|
-
registered: boolean;
|
|
6505
6511
|
session_id: string;
|
|
6506
6512
|
created_at: string;
|
|
6507
|
-
}, {
|
|
6508
6513
|
registered: boolean;
|
|
6514
|
+
}, {
|
|
6509
6515
|
session_id: string;
|
|
6510
6516
|
created_at: string;
|
|
6517
|
+
registered: boolean;
|
|
6511
6518
|
}>;
|
|
6512
6519
|
/**
|
|
6513
6520
|
* Wrapped session registration response schema
|
|
@@ -6519,13 +6526,13 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6519
6526
|
registered: z.ZodBoolean;
|
|
6520
6527
|
created_at: z.ZodString;
|
|
6521
6528
|
}, "strip", z.ZodTypeAny, {
|
|
6522
|
-
registered: boolean;
|
|
6523
6529
|
session_id: string;
|
|
6524
6530
|
created_at: string;
|
|
6525
|
-
}, {
|
|
6526
6531
|
registered: boolean;
|
|
6532
|
+
}, {
|
|
6527
6533
|
session_id: string;
|
|
6528
6534
|
created_at: string;
|
|
6535
|
+
registered: boolean;
|
|
6529
6536
|
}>;
|
|
6530
6537
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
6531
6538
|
requestId: z.ZodString;
|
|
@@ -6540,9 +6547,9 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6540
6547
|
}, "strip", z.ZodTypeAny, {
|
|
6541
6548
|
success: boolean;
|
|
6542
6549
|
data: {
|
|
6543
|
-
registered: boolean;
|
|
6544
6550
|
session_id: string;
|
|
6545
6551
|
created_at: string;
|
|
6552
|
+
registered: boolean;
|
|
6546
6553
|
};
|
|
6547
6554
|
metadata?: {
|
|
6548
6555
|
timestamp: string;
|
|
@@ -6551,9 +6558,9 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6551
6558
|
}, {
|
|
6552
6559
|
success: boolean;
|
|
6553
6560
|
data: {
|
|
6554
|
-
registered: boolean;
|
|
6555
6561
|
session_id: string;
|
|
6556
6562
|
created_at: string;
|
|
6563
|
+
registered: boolean;
|
|
6557
6564
|
};
|
|
6558
6565
|
metadata?: {
|
|
6559
6566
|
timestamp: string;
|