@osstack/protocol 0.15.0 → 0.22.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/attention.d.ts +863 -0
- package/dist/attention.d.ts.map +1 -0
- package/dist/attention.js +112 -0
- package/dist/attention.js.map +1 -0
- package/dist/autonomy.d.ts +14 -14
- package/dist/delivery-contract.d.ts +734 -0
- package/dist/delivery-contract.d.ts.map +1 -0
- package/dist/delivery-contract.js +111 -0
- package/dist/delivery-contract.js.map +1 -0
- package/dist/envelope.d.ts +42 -42
- package/dist/event.d.ts +4 -4
- package/dist/follow-up-delivery.d.ts +1831 -0
- package/dist/follow-up-delivery.d.ts.map +1 -0
- package/dist/follow-up-delivery.js +174 -0
- package/dist/follow-up-delivery.js.map +1 -0
- package/dist/follow-up.d.ts +1100 -0
- package/dist/follow-up.d.ts.map +1 -0
- package/dist/follow-up.js +28 -0
- package/dist/follow-up.js.map +1 -0
- package/dist/generate.d.ts +1 -0
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +61 -1
- package/dist/generate.js.map +1 -1
- package/dist/graph-checkpoint.d.ts +409 -0
- package/dist/graph-checkpoint.d.ts.map +1 -0
- package/dist/graph-checkpoint.js +91 -0
- package/dist/graph-checkpoint.js.map +1 -0
- package/dist/graph-worker.d.ts +1663 -0
- package/dist/graph-worker.d.ts.map +1 -0
- package/dist/graph-worker.js +152 -0
- package/dist/graph-worker.js.map +1 -0
- package/dist/graph.d.ts +13169 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +427 -0
- package/dist/graph.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/policy.d.ts +10 -10
- package/dist/run.d.ts +4 -4
- package/dist/session-continuation-grant.d.ts +414 -0
- package/dist/session-continuation-grant.d.ts.map +1 -0
- package/dist/session-continuation-grant.js +59 -0
- package/dist/session-continuation-grant.js.map +1 -0
- package/dist/session-continuation.d.ts +129 -0
- package/dist/session-continuation.d.ts.map +1 -0
- package/dist/session-continuation.js +30 -0
- package/dist/session-continuation.js.map +1 -0
- package/dist/task.d.ts +2 -2
- package/package.json +11 -10
- package/schemas/attention-inbox.schema.json +271 -0
- package/schemas/attention-status.schema.json +434 -0
- package/schemas/continuation-grant-body.schema.json +189 -0
- package/schemas/continuation-output-check.schema.json +65 -0
- package/schemas/delivery-contract-v2.schema.json +238 -0
- package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
- package/schemas/follow-up-create-params.schema.json +78 -0
- package/schemas/follow-up-draft-params.schema.json +39 -0
- package/schemas/follow-up-list-params.schema.json +42 -0
- package/schemas/follow-up-list-result.schema.json +241 -0
- package/schemas/follow-up-mutation-result.schema.json +361 -0
- package/schemas/follow-up-obligation.schema.json +343 -0
- package/schemas/follow-up-resolve-params.schema.json +53 -0
- package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
- package/schemas/graph-checkpoint-request.schema.json +222 -0
- package/schemas/graph-checkpoint-response.schema.json +258 -0
- package/schemas/graph-worker.schema.json +546 -0
- package/schemas/graph.schema.json +1798 -0
- package/schemas/session-continuation-request.schema.json +62 -0
- package/schemas/session-decision.schema.json +107 -0
- package/schemas/signed-continuation-grant.schema.json +209 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attention.d.ts","sourceRoot":"","sources":["../src/attention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;EAOf,CAAC;AACZ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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Ac,CAAC,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { SessionDecision } from "./session-continuation.js";
|
|
3
|
+
const id = z.string().min(1).max(512);
|
|
4
|
+
export const AttentionWait = z
|
|
5
|
+
.object({
|
|
6
|
+
reason: z.string().min(1).max(120),
|
|
7
|
+
owner: z.enum(["human", "system", "unknown", "none"]),
|
|
8
|
+
grant_id: id.nullable(),
|
|
9
|
+
message_id: id.nullable(),
|
|
10
|
+
})
|
|
11
|
+
.strict();
|
|
12
|
+
export const AttentionSessionFact = z
|
|
13
|
+
.object({
|
|
14
|
+
session_id: id,
|
|
15
|
+
run_id: id,
|
|
16
|
+
state: z.string().max(80),
|
|
17
|
+
version: z.number().int().positive(),
|
|
18
|
+
turn_id: id.nullable(),
|
|
19
|
+
turn_state: z.string().max(80).nullable(),
|
|
20
|
+
decision: SessionDecision.nullable(),
|
|
21
|
+
decision_hash: z.string().length(64).nullable(),
|
|
22
|
+
process_liveness: z.literal("unknown"),
|
|
23
|
+
wait: AttentionWait,
|
|
24
|
+
updated_at: z.number().finite(),
|
|
25
|
+
})
|
|
26
|
+
.strict();
|
|
27
|
+
export const AttentionStatus = z
|
|
28
|
+
.object({
|
|
29
|
+
schema_version: z.literal(1),
|
|
30
|
+
mode: z.literal("snapshot_only"),
|
|
31
|
+
scope: z
|
|
32
|
+
.object({
|
|
33
|
+
scope_id: id,
|
|
34
|
+
task_id: id,
|
|
35
|
+
tenant_id: z.null(),
|
|
36
|
+
repo_path: z.string().max(4096),
|
|
37
|
+
})
|
|
38
|
+
.strict(),
|
|
39
|
+
sampled_at_ms: z.number().finite().nonnegative(),
|
|
40
|
+
coverage: z.object({ state: z.literal("not_monitored") }).strict(),
|
|
41
|
+
runs: z
|
|
42
|
+
.array(z
|
|
43
|
+
.object({
|
|
44
|
+
run_id: id,
|
|
45
|
+
phase: z.string().max(120),
|
|
46
|
+
outcome: z.string().max(120).nullable(),
|
|
47
|
+
repo_binding: z.literal("unverified"),
|
|
48
|
+
})
|
|
49
|
+
.strict())
|
|
50
|
+
.max(100),
|
|
51
|
+
sessions: z.array(AttentionSessionFact).max(100),
|
|
52
|
+
completeness: z
|
|
53
|
+
.object({
|
|
54
|
+
latest_turn_only: z.literal(true),
|
|
55
|
+
truncated: z.boolean(),
|
|
56
|
+
omitted_binding_unknown: z.number().int().nonnegative(),
|
|
57
|
+
next_cursor: z.string().max(4096).nullable(),
|
|
58
|
+
next_after: z
|
|
59
|
+
.object({ run: id.nullable(), session: id.nullable() })
|
|
60
|
+
.strict(),
|
|
61
|
+
})
|
|
62
|
+
.strict(),
|
|
63
|
+
limitations: z.array(z.string().max(700)).max(500),
|
|
64
|
+
})
|
|
65
|
+
.strict();
|
|
66
|
+
/** Persistent inbox projection, not authority to execute or approve. */
|
|
67
|
+
export const AttentionInbox = z
|
|
68
|
+
.object({
|
|
69
|
+
schema_version: z.literal(1),
|
|
70
|
+
scope_id: id,
|
|
71
|
+
coverage: z.enum(["covered", "degraded", "uncovered", "unknown"]),
|
|
72
|
+
execution_takeover: z.literal(false),
|
|
73
|
+
counts: z
|
|
74
|
+
.array(z
|
|
75
|
+
.object({
|
|
76
|
+
state: z.string().max(80),
|
|
77
|
+
total: z.number().int().nonnegative(),
|
|
78
|
+
})
|
|
79
|
+
.strict())
|
|
80
|
+
.max(20),
|
|
81
|
+
next_after: id.nullable(),
|
|
82
|
+
items: z
|
|
83
|
+
.array(z
|
|
84
|
+
.object({
|
|
85
|
+
item_id: id,
|
|
86
|
+
scope_id: id,
|
|
87
|
+
session_id: id,
|
|
88
|
+
turn_id: id,
|
|
89
|
+
decision_id: id,
|
|
90
|
+
content_hash: z.string().length(64),
|
|
91
|
+
decision: SessionDecision,
|
|
92
|
+
source_version: z.number().int().positive(),
|
|
93
|
+
revision: z.number().int().positive(),
|
|
94
|
+
state: z.enum([
|
|
95
|
+
"open",
|
|
96
|
+
"source_missing",
|
|
97
|
+
"source_closed",
|
|
98
|
+
"continued_externally",
|
|
99
|
+
"answer_reserved",
|
|
100
|
+
"answer_uncertain",
|
|
101
|
+
"answer_applied",
|
|
102
|
+
"answer_abandoned",
|
|
103
|
+
]),
|
|
104
|
+
created_at: z.number().finite(),
|
|
105
|
+
updated_at: z.number().finite(),
|
|
106
|
+
external_message_id: id.nullable(),
|
|
107
|
+
})
|
|
108
|
+
.strict())
|
|
109
|
+
.max(100),
|
|
110
|
+
})
|
|
111
|
+
.strict();
|
|
112
|
+
//# sourceMappingURL=attention.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attention.js","sourceRoot":"","sources":["../src/attention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACtC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACrD,QAAQ,EAAE,EAAE,CAAC,QAAQ,EAAE;IACvB,UAAU,EAAE,EAAE,CAAC,QAAQ,EAAE;CAC1B,CAAC;KACD,MAAM,EAAE,CAAC;AACZ,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,UAAU,EAAE,EAAE;IACd,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACzB,OAAO,EAAE,CAAC,CAAC,MA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AC;KACD,MAAM,EAAE,CAAC"}
|
package/dist/autonomy.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export declare const AutonomyRiskDecision: z.ZodEffects<z.ZodObject<{
|
|
|
74
74
|
readonly decided_at: z.ZodString;
|
|
75
75
|
}, "strict", z.ZodTypeAny, {
|
|
76
76
|
decided_at: string;
|
|
77
|
+
phase: "preflight" | "post_diff";
|
|
77
78
|
level: "R0" | "R1" | "R2" | "R3" | "R4";
|
|
78
79
|
signals: {
|
|
79
80
|
message: string;
|
|
@@ -82,11 +83,11 @@ export declare const AutonomyRiskDecision: z.ZodEffects<z.ZodObject<{
|
|
|
82
83
|
path?: string | undefined;
|
|
83
84
|
command?: string | undefined;
|
|
84
85
|
}[];
|
|
85
|
-
phase: "preflight" | "post_diff";
|
|
86
86
|
policy_sha256: string;
|
|
87
87
|
input_sha256: string;
|
|
88
88
|
}, {
|
|
89
89
|
decided_at: string;
|
|
90
|
+
phase: "preflight" | "post_diff";
|
|
90
91
|
level: "R0" | "R1" | "R2" | "R3" | "R4";
|
|
91
92
|
signals: {
|
|
92
93
|
message: string;
|
|
@@ -95,11 +96,11 @@ export declare const AutonomyRiskDecision: z.ZodEffects<z.ZodObject<{
|
|
|
95
96
|
path?: string | undefined;
|
|
96
97
|
command?: string | undefined;
|
|
97
98
|
}[];
|
|
98
|
-
phase: "preflight" | "post_diff";
|
|
99
99
|
policy_sha256: string;
|
|
100
100
|
input_sha256: string;
|
|
101
101
|
}>, {
|
|
102
102
|
decided_at: string;
|
|
103
|
+
phase: "preflight" | "post_diff";
|
|
103
104
|
level: "R0" | "R1" | "R2" | "R3" | "R4";
|
|
104
105
|
signals: {
|
|
105
106
|
message: string;
|
|
@@ -108,11 +109,11 @@ export declare const AutonomyRiskDecision: z.ZodEffects<z.ZodObject<{
|
|
|
108
109
|
path?: string | undefined;
|
|
109
110
|
command?: string | undefined;
|
|
110
111
|
}[];
|
|
111
|
-
phase: "preflight" | "post_diff";
|
|
112
112
|
policy_sha256: string;
|
|
113
113
|
input_sha256: string;
|
|
114
114
|
}, {
|
|
115
115
|
decided_at: string;
|
|
116
|
+
phase: "preflight" | "post_diff";
|
|
116
117
|
level: "R0" | "R1" | "R2" | "R3" | "R4";
|
|
117
118
|
signals: {
|
|
118
119
|
message: string;
|
|
@@ -121,7 +122,6 @@ export declare const AutonomyRiskDecision: z.ZodEffects<z.ZodObject<{
|
|
|
121
122
|
path?: string | undefined;
|
|
122
123
|
command?: string | undefined;
|
|
123
124
|
}[];
|
|
124
|
-
phase: "preflight" | "post_diff";
|
|
125
125
|
policy_sha256: string;
|
|
126
126
|
input_sha256: string;
|
|
127
127
|
}>;
|
|
@@ -416,6 +416,7 @@ export declare const ScopedApprovalDecisionPayload: z.ZodEffects<z.ZodObject<{
|
|
|
416
416
|
id: string;
|
|
417
417
|
};
|
|
418
418
|
phase: "preflight" | "post_diff";
|
|
419
|
+
decision: "approve" | "reject";
|
|
419
420
|
diff_sha256: string;
|
|
420
421
|
action_scope: string[];
|
|
421
422
|
expires_at: string;
|
|
@@ -423,7 +424,6 @@ export declare const ScopedApprovalDecisionPayload: z.ZodEffects<z.ZodObject<{
|
|
|
423
424
|
contract_sha256: string;
|
|
424
425
|
nonce: string;
|
|
425
426
|
request_sha256: string;
|
|
426
|
-
decision: "approve" | "reject";
|
|
427
427
|
issued_at: string;
|
|
428
428
|
}, {
|
|
429
429
|
approval_id: string;
|
|
@@ -432,6 +432,7 @@ export declare const ScopedApprovalDecisionPayload: z.ZodEffects<z.ZodObject<{
|
|
|
432
432
|
id: string;
|
|
433
433
|
};
|
|
434
434
|
phase: "preflight" | "post_diff";
|
|
435
|
+
decision: "approve" | "reject";
|
|
435
436
|
diff_sha256: string;
|
|
436
437
|
action_scope: string[];
|
|
437
438
|
expires_at: string;
|
|
@@ -439,7 +440,6 @@ export declare const ScopedApprovalDecisionPayload: z.ZodEffects<z.ZodObject<{
|
|
|
439
440
|
contract_sha256: string;
|
|
440
441
|
nonce: string;
|
|
441
442
|
request_sha256: string;
|
|
442
|
-
decision: "approve" | "reject";
|
|
443
443
|
issued_at: string;
|
|
444
444
|
}>, {
|
|
445
445
|
approval_id: string;
|
|
@@ -448,6 +448,7 @@ export declare const ScopedApprovalDecisionPayload: z.ZodEffects<z.ZodObject<{
|
|
|
448
448
|
id: string;
|
|
449
449
|
};
|
|
450
450
|
phase: "preflight" | "post_diff";
|
|
451
|
+
decision: "approve" | "reject";
|
|
451
452
|
diff_sha256: string;
|
|
452
453
|
action_scope: string[];
|
|
453
454
|
expires_at: string;
|
|
@@ -455,7 +456,6 @@ export declare const ScopedApprovalDecisionPayload: z.ZodEffects<z.ZodObject<{
|
|
|
455
456
|
contract_sha256: string;
|
|
456
457
|
nonce: string;
|
|
457
458
|
request_sha256: string;
|
|
458
|
-
decision: "approve" | "reject";
|
|
459
459
|
issued_at: string;
|
|
460
460
|
}, {
|
|
461
461
|
approval_id: string;
|
|
@@ -464,6 +464,7 @@ export declare const ScopedApprovalDecisionPayload: z.ZodEffects<z.ZodObject<{
|
|
|
464
464
|
id: string;
|
|
465
465
|
};
|
|
466
466
|
phase: "preflight" | "post_diff";
|
|
467
|
+
decision: "approve" | "reject";
|
|
467
468
|
diff_sha256: string;
|
|
468
469
|
action_scope: string[];
|
|
469
470
|
expires_at: string;
|
|
@@ -471,7 +472,6 @@ export declare const ScopedApprovalDecisionPayload: z.ZodEffects<z.ZodObject<{
|
|
|
471
472
|
contract_sha256: string;
|
|
472
473
|
nonce: string;
|
|
473
474
|
request_sha256: string;
|
|
474
|
-
decision: "approve" | "reject";
|
|
475
475
|
issued_at: string;
|
|
476
476
|
}>;
|
|
477
477
|
export type ScopedApprovalDecisionPayload = z.infer<typeof ScopedApprovalDecisionPayload>;
|
|
@@ -511,6 +511,7 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
511
511
|
id: string;
|
|
512
512
|
};
|
|
513
513
|
phase: "preflight" | "post_diff";
|
|
514
|
+
decision: "approve" | "reject";
|
|
514
515
|
diff_sha256: string;
|
|
515
516
|
action_scope: string[];
|
|
516
517
|
expires_at: string;
|
|
@@ -518,7 +519,6 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
518
519
|
contract_sha256: string;
|
|
519
520
|
nonce: string;
|
|
520
521
|
request_sha256: string;
|
|
521
|
-
decision: "approve" | "reject";
|
|
522
522
|
issued_at: string;
|
|
523
523
|
}, {
|
|
524
524
|
approval_id: string;
|
|
@@ -527,6 +527,7 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
527
527
|
id: string;
|
|
528
528
|
};
|
|
529
529
|
phase: "preflight" | "post_diff";
|
|
530
|
+
decision: "approve" | "reject";
|
|
530
531
|
diff_sha256: string;
|
|
531
532
|
action_scope: string[];
|
|
532
533
|
expires_at: string;
|
|
@@ -534,7 +535,6 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
534
535
|
contract_sha256: string;
|
|
535
536
|
nonce: string;
|
|
536
537
|
request_sha256: string;
|
|
537
|
-
decision: "approve" | "reject";
|
|
538
538
|
issued_at: string;
|
|
539
539
|
}>, {
|
|
540
540
|
approval_id: string;
|
|
@@ -543,6 +543,7 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
543
543
|
id: string;
|
|
544
544
|
};
|
|
545
545
|
phase: "preflight" | "post_diff";
|
|
546
|
+
decision: "approve" | "reject";
|
|
546
547
|
diff_sha256: string;
|
|
547
548
|
action_scope: string[];
|
|
548
549
|
expires_at: string;
|
|
@@ -550,7 +551,6 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
550
551
|
contract_sha256: string;
|
|
551
552
|
nonce: string;
|
|
552
553
|
request_sha256: string;
|
|
553
|
-
decision: "approve" | "reject";
|
|
554
554
|
issued_at: string;
|
|
555
555
|
}, {
|
|
556
556
|
approval_id: string;
|
|
@@ -559,6 +559,7 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
559
559
|
id: string;
|
|
560
560
|
};
|
|
561
561
|
phase: "preflight" | "post_diff";
|
|
562
|
+
decision: "approve" | "reject";
|
|
562
563
|
diff_sha256: string;
|
|
563
564
|
action_scope: string[];
|
|
564
565
|
expires_at: string;
|
|
@@ -566,7 +567,6 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
566
567
|
contract_sha256: string;
|
|
567
568
|
nonce: string;
|
|
568
569
|
request_sha256: string;
|
|
569
|
-
decision: "approve" | "reject";
|
|
570
570
|
issued_at: string;
|
|
571
571
|
}>;
|
|
572
572
|
signature: z.ZodObject<{
|
|
@@ -590,6 +590,7 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
590
590
|
id: string;
|
|
591
591
|
};
|
|
592
592
|
phase: "preflight" | "post_diff";
|
|
593
|
+
decision: "approve" | "reject";
|
|
593
594
|
diff_sha256: string;
|
|
594
595
|
action_scope: string[];
|
|
595
596
|
expires_at: string;
|
|
@@ -597,7 +598,6 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
597
598
|
contract_sha256: string;
|
|
598
599
|
nonce: string;
|
|
599
600
|
request_sha256: string;
|
|
600
|
-
decision: "approve" | "reject";
|
|
601
601
|
issued_at: string;
|
|
602
602
|
};
|
|
603
603
|
signature: {
|
|
@@ -613,6 +613,7 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
613
613
|
id: string;
|
|
614
614
|
};
|
|
615
615
|
phase: "preflight" | "post_diff";
|
|
616
|
+
decision: "approve" | "reject";
|
|
616
617
|
diff_sha256: string;
|
|
617
618
|
action_scope: string[];
|
|
618
619
|
expires_at: string;
|
|
@@ -620,7 +621,6 @@ export declare const ScopedApprovalDecision: z.ZodObject<{
|
|
|
620
621
|
contract_sha256: string;
|
|
621
622
|
nonce: string;
|
|
622
623
|
request_sha256: string;
|
|
623
|
-
decision: "approve" | "reject";
|
|
624
624
|
issued_at: string;
|
|
625
625
|
};
|
|
626
626
|
signature: {
|