@openpond/evals 0.10.1 → 0.10.3
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/LEARNING.md +83 -0
- package/dist/learning/batch-service.js +44 -0
- package/dist/learning/contracts.js +2 -1
- package/dist/learning/index.js +4 -0
- package/dist/learning/iteration-candidate-decision.js +51 -0
- package/dist/learning/iteration-dispatch-commands.js +31 -0
- package/dist/learning/iteration-dispatch-contracts.js +73 -0
- package/dist/learning/iteration-dispatch-worker.js +178 -0
- package/dist/learning/iteration-eligibility.js +76 -0
- package/dist/learning/iteration-reservation-cancellation.js +31 -0
- package/dist/learning/iteration-reservation-contracts.js +57 -0
- package/dist/learning/iteration-reservation-service.js +106 -0
- package/dist/learning/operations.js +6 -1
- package/dist/learning/repository.js +4 -0
- package/dist/learning/service.js +19 -43
- package/dist/types/learning/batch-service.d.ts +8 -0
- package/dist/types/learning/batch-service.d.ts.map +1 -0
- package/dist/types/learning/contracts.d.ts +16 -0
- package/dist/types/learning/contracts.d.ts.map +1 -1
- package/dist/types/learning/index.d.ts +4 -0
- package/dist/types/learning/index.d.ts.map +1 -1
- package/dist/types/learning/iteration-candidate-decision.d.ts +94 -0
- package/dist/types/learning/iteration-candidate-decision.d.ts.map +1 -0
- package/dist/types/learning/iteration-dispatch-commands.d.ts +8 -0
- package/dist/types/learning/iteration-dispatch-commands.d.ts.map +1 -0
- package/dist/types/learning/iteration-dispatch-contracts.d.ts +93 -0
- package/dist/types/learning/iteration-dispatch-contracts.d.ts.map +1 -0
- package/dist/types/learning/iteration-dispatch-worker.d.ts +35 -0
- package/dist/types/learning/iteration-dispatch-worker.d.ts.map +1 -0
- package/dist/types/learning/iteration-eligibility.d.ts +18 -0
- package/dist/types/learning/iteration-eligibility.d.ts.map +1 -0
- package/dist/types/learning/iteration-reservation-cancellation.d.ts +8 -0
- package/dist/types/learning/iteration-reservation-cancellation.d.ts.map +1 -0
- package/dist/types/learning/iteration-reservation-contracts.d.ts +90 -0
- package/dist/types/learning/iteration-reservation-contracts.d.ts.map +1 -0
- package/dist/types/learning/iteration-reservation-service.d.ts +9 -0
- package/dist/types/learning/iteration-reservation-service.d.ts.map +1 -0
- package/dist/types/learning/operations.d.ts +64 -0
- package/dist/types/learning/operations.d.ts.map +1 -1
- package/dist/types/learning/repository.d.ts +126 -0
- package/dist/types/learning/repository.d.ts.map +1 -1
- package/dist/types/learning/service.d.ts.map +1 -1
- package/dist/types/learning/transport.d.ts +156 -0
- package/dist/types/learning/transport.d.ts.map +1 -1
- package/package.json +1 -1
- package/schemas/learning/v1/chain.schema.json +72 -0
- package/schemas/learning/v1/command-request.schema.json +374 -233
- package/schemas/learning/v1/consumption.schema.json +77 -0
- package/schemas/learning/v1/dispatch.schema.json +338 -0
- package/schemas/learning/v1/iteration.schema.json +15 -1
- package/schemas/learning/v1/read-request.schema.json +4 -0
- package/schemas/learning/v1/reservation.schema.json +201 -0
|
@@ -5,6 +5,36 @@ export declare function assertLearningRequestJson(raw: unknown): void;
|
|
|
5
5
|
export declare const LearningCommandRequestSchema: z.ZodObject<{
|
|
6
6
|
scope: z.ZodString;
|
|
7
7
|
command: z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
+
operationId: z.ZodString;
|
|
9
|
+
action: z.ZodLiteral<"cancel_iteration">;
|
|
10
|
+
iterationId: z.ZodString;
|
|
11
|
+
expectedRevision: z.ZodNumber;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
operationId: z.ZodString;
|
|
14
|
+
action: z.ZodLiteral<"retry_iteration_dispatch">;
|
|
15
|
+
iterationId: z.ZodString;
|
|
16
|
+
expectedRevision: z.ZodNumber;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
operationId: z.ZodString;
|
|
19
|
+
action: z.ZodLiteral<"cancel_iteration_reservation">;
|
|
20
|
+
iterationId: z.ZodString;
|
|
21
|
+
expectedRevision: z.ZodNumber;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
operationId: z.ZodString;
|
|
24
|
+
action: z.ZodLiteral<"reserve_iteration">;
|
|
25
|
+
policy: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
contentHash: z.ZodString;
|
|
28
|
+
revision: z.ZodNumber;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
kind: z.ZodLiteral<"manual">;
|
|
32
|
+
identity: z.ZodString;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"schedule">;
|
|
35
|
+
scheduledAt: z.ZodString;
|
|
36
|
+
}, z.core.$strict>], "kind">;
|
|
37
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8
38
|
operationId: z.ZodString;
|
|
9
39
|
action: z.ZodLiteral<"queue_reward_check">;
|
|
10
40
|
draft: z.ZodObject<{
|
|
@@ -1432,6 +1462,10 @@ export declare const LearningReadRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1432
1462
|
definition: "definition";
|
|
1433
1463
|
draft: "draft";
|
|
1434
1464
|
reward_check: "reward_check";
|
|
1465
|
+
chain: "chain";
|
|
1466
|
+
consumption: "consumption";
|
|
1467
|
+
reservation: "reservation";
|
|
1468
|
+
dispatch: "dispatch";
|
|
1435
1469
|
iteration: "iteration";
|
|
1436
1470
|
package: "package";
|
|
1437
1471
|
}>;
|
|
@@ -1454,6 +1488,10 @@ export declare const LearningReadRequestSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1454
1488
|
definition: "definition";
|
|
1455
1489
|
draft: "draft";
|
|
1456
1490
|
reward_check: "reward_check";
|
|
1491
|
+
chain: "chain";
|
|
1492
|
+
consumption: "consumption";
|
|
1493
|
+
reservation: "reservation";
|
|
1494
|
+
dispatch: "dispatch";
|
|
1457
1495
|
iteration: "iteration";
|
|
1458
1496
|
package: "package";
|
|
1459
1497
|
}>;
|
|
@@ -2471,10 +2509,12 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
|
|
|
2471
2509
|
waiting_for_data: "waiting_for_data";
|
|
2472
2510
|
waiting_for_review: "waiting_for_review";
|
|
2473
2511
|
ready: "ready";
|
|
2512
|
+
dispatching: "dispatching";
|
|
2474
2513
|
evaluating: "evaluating";
|
|
2475
2514
|
candidate_ready: "candidate_ready";
|
|
2476
2515
|
paused: "paused";
|
|
2477
2516
|
cancelling: "cancelling";
|
|
2517
|
+
completed_without_candidate: "completed_without_candidate";
|
|
2478
2518
|
}>;
|
|
2479
2519
|
triggerIdentity: z.ZodString;
|
|
2480
2520
|
batch: z.ZodNullable<z.ZodObject<{
|
|
@@ -2507,6 +2547,11 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
|
|
|
2507
2547
|
id: z.ZodString;
|
|
2508
2548
|
contentHash: z.ZodString;
|
|
2509
2549
|
}, z.core.$strict>>;
|
|
2550
|
+
candidateDecision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2551
|
+
id: z.ZodString;
|
|
2552
|
+
contentHash: z.ZodString;
|
|
2553
|
+
revision: z.ZodNumber;
|
|
2554
|
+
}, z.core.$strict>>>;
|
|
2510
2555
|
dispatchId: z.ZodString;
|
|
2511
2556
|
retryCount: z.ZodNumber;
|
|
2512
2557
|
spendUsd: z.ZodNumber;
|
|
@@ -2603,6 +2648,70 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
|
|
|
2603
2648
|
failure: z.ZodNullable<z.ZodString>;
|
|
2604
2649
|
createdAt: z.ZodString;
|
|
2605
2650
|
updatedAt: z.ZodString;
|
|
2651
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
2652
|
+
schemaVersion: z.ZodLiteral<"openpond.learningChain.v1">;
|
|
2653
|
+
id: z.ZodString;
|
|
2654
|
+
revision: z.ZodNumber;
|
|
2655
|
+
modelProjectId: z.ZodString;
|
|
2656
|
+
activeIterationId: z.ZodNullable<z.ZodString>;
|
|
2657
|
+
latestIterationId: z.ZodString;
|
|
2658
|
+
lastReservedAt: z.ZodNullable<z.ZodString>;
|
|
2659
|
+
updatedAt: z.ZodString;
|
|
2660
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
2661
|
+
schemaVersion: z.ZodLiteral<"openpond.learningConsumption.v1">;
|
|
2662
|
+
id: z.ZodString;
|
|
2663
|
+
revision: z.ZodLiteral<1>;
|
|
2664
|
+
chainId: z.ZodString;
|
|
2665
|
+
iterationId: z.ZodString;
|
|
2666
|
+
evidence: z.ZodObject<{
|
|
2667
|
+
id: z.ZodString;
|
|
2668
|
+
contentHash: z.ZodString;
|
|
2669
|
+
revision: z.ZodNumber;
|
|
2670
|
+
}, z.core.$strict>;
|
|
2671
|
+
decision: z.ZodObject<{
|
|
2672
|
+
id: z.ZodString;
|
|
2673
|
+
contentHash: z.ZodString;
|
|
2674
|
+
revision: z.ZodNumber;
|
|
2675
|
+
}, z.core.$strict>;
|
|
2676
|
+
reservedAt: z.ZodString;
|
|
2677
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
2678
|
+
schemaVersion: z.ZodLiteral<"openpond.learningIterationReservation.v1">;
|
|
2679
|
+
id: z.ZodString;
|
|
2680
|
+
revision: z.ZodNumber;
|
|
2681
|
+
chainId: z.ZodString;
|
|
2682
|
+
iterationId: z.ZodString;
|
|
2683
|
+
policy: z.ZodObject<{
|
|
2684
|
+
id: z.ZodString;
|
|
2685
|
+
contentHash: z.ZodString;
|
|
2686
|
+
revision: z.ZodNumber;
|
|
2687
|
+
}, z.core.$strict>;
|
|
2688
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2689
|
+
kind: z.ZodLiteral<"manual">;
|
|
2690
|
+
identity: z.ZodString;
|
|
2691
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2692
|
+
kind: z.ZodLiteral<"schedule">;
|
|
2693
|
+
scheduledAt: z.ZodString;
|
|
2694
|
+
}, z.core.$strict>], "kind">;
|
|
2695
|
+
requestHash: z.ZodString;
|
|
2696
|
+
outcome: z.ZodEnum<{
|
|
2697
|
+
waiting_for_data: "waiting_for_data";
|
|
2698
|
+
waiting_for_review: "waiting_for_review";
|
|
2699
|
+
reserved: "reserved";
|
|
2700
|
+
}>;
|
|
2701
|
+
counts: z.ZodObject<{
|
|
2702
|
+
eligible: z.ZodNumber;
|
|
2703
|
+
awaitingReview: z.ZodNumber;
|
|
2704
|
+
excluded: z.ZodNumber;
|
|
2705
|
+
consumed: z.ZodNumber;
|
|
2706
|
+
}, z.core.$strict>;
|
|
2707
|
+
budget: z.ZodObject<{
|
|
2708
|
+
maximumSpendUsd: z.ZodNumber;
|
|
2709
|
+
reservedSpendUsd: z.ZodNumber;
|
|
2710
|
+
settledSpendUsd: z.ZodNumber;
|
|
2711
|
+
settledAt: z.ZodNullable<z.ZodString>;
|
|
2712
|
+
}, z.core.$strict>;
|
|
2713
|
+
createdAt: z.ZodString;
|
|
2714
|
+
updatedAt: z.ZodString;
|
|
2606
2715
|
}, z.core.$strict> | z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2607
2716
|
id: z.ZodString;
|
|
2608
2717
|
targetId: z.ZodString;
|
|
@@ -2818,6 +2927,53 @@ export declare const LearningOperationResultSchema: z.ZodObject<{
|
|
|
2818
2927
|
updatedAt: z.ZodString;
|
|
2819
2928
|
contentHash: z.ZodString;
|
|
2820
2929
|
}, z.core.$strict>], "targetKind"> | z.ZodObject<{
|
|
2930
|
+
schemaVersion: z.ZodLiteral<"openpond.learningIterationDispatch.v1">;
|
|
2931
|
+
id: z.ZodString;
|
|
2932
|
+
revision: z.ZodNumber;
|
|
2933
|
+
iterationId: z.ZodString;
|
|
2934
|
+
chainId: z.ZodString;
|
|
2935
|
+
policy: z.ZodObject<{
|
|
2936
|
+
id: z.ZodString;
|
|
2937
|
+
contentHash: z.ZodString;
|
|
2938
|
+
revision: z.ZodNumber;
|
|
2939
|
+
}, z.core.$strict>;
|
|
2940
|
+
batch: z.ZodObject<{
|
|
2941
|
+
id: z.ZodString;
|
|
2942
|
+
contentHash: z.ZodString;
|
|
2943
|
+
revision: z.ZodNumber;
|
|
2944
|
+
}, z.core.$strict>;
|
|
2945
|
+
state: z.ZodEnum<{
|
|
2946
|
+
blocked: "blocked";
|
|
2947
|
+
preparing: "preparing";
|
|
2948
|
+
prepared: "prepared";
|
|
2949
|
+
submitted: "submitted";
|
|
2950
|
+
settled: "settled";
|
|
2951
|
+
}>;
|
|
2952
|
+
submission: z.ZodNullable<z.ZodObject<{
|
|
2953
|
+
provider: z.ZodString;
|
|
2954
|
+
protocol: z.ZodString;
|
|
2955
|
+
payload: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
2956
|
+
}, z.core.$strict>>;
|
|
2957
|
+
submissionHash: z.ZodNullable<z.ZodString>;
|
|
2958
|
+
submissionStartedAt: z.ZodNullable<z.ZodString>;
|
|
2959
|
+
execution: z.ZodNullable<z.ZodObject<{
|
|
2960
|
+
id: z.ZodString;
|
|
2961
|
+
contentHash: z.ZodString;
|
|
2962
|
+
}, z.core.$strict>>;
|
|
2963
|
+
terminalReceipt: z.ZodNullable<z.ZodObject<{
|
|
2964
|
+
id: z.ZodString;
|
|
2965
|
+
contentHash: z.ZodString;
|
|
2966
|
+
}, z.core.$strict>>;
|
|
2967
|
+
cancelRequestedAt: z.ZodNullable<z.ZodString>;
|
|
2968
|
+
leaseOwner: z.ZodNullable<z.ZodString>;
|
|
2969
|
+
leaseGeneration: z.ZodNumber;
|
|
2970
|
+
leaseExpiresAt: z.ZodNullable<z.ZodString>;
|
|
2971
|
+
consecutiveFailures: z.ZodNumber;
|
|
2972
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
2973
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
2974
|
+
createdAt: z.ZodString;
|
|
2975
|
+
updatedAt: z.ZodString;
|
|
2976
|
+
}, z.core.$strict> | z.ZodObject<{
|
|
2821
2977
|
schemaVersion: z.ZodLiteral<"openpond.rewardCheckRun.v1">;
|
|
2822
2978
|
id: z.ZodString;
|
|
2823
2979
|
revision: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../../../src/learning/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,mFAAmF;AACnF,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAG5D;AAED,0FAA0F;AAC1F,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../../../src/learning/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,mFAAmF;AACnF,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAG5D;AAED,0FAA0F;AAC1F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"schemaVersion": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "openpond.learningChain.v1"
|
|
8
|
+
},
|
|
9
|
+
"id": {
|
|
10
|
+
"$ref": "#/$defs/__schema0"
|
|
11
|
+
},
|
|
12
|
+
"revision": {
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"exclusiveMinimum": 0,
|
|
15
|
+
"maximum": 9007199254740991
|
|
16
|
+
},
|
|
17
|
+
"modelProjectId": {
|
|
18
|
+
"$ref": "#/$defs/__schema0"
|
|
19
|
+
},
|
|
20
|
+
"activeIterationId": {
|
|
21
|
+
"anyOf": [
|
|
22
|
+
{
|
|
23
|
+
"$ref": "#/$defs/__schema0"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "null"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"latestIterationId": {
|
|
31
|
+
"$ref": "#/$defs/__schema0"
|
|
32
|
+
},
|
|
33
|
+
"lastReservedAt": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{
|
|
36
|
+
"$ref": "#/$defs/__schema1"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "null"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"updatedAt": {
|
|
44
|
+
"$ref": "#/$defs/__schema1"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"schemaVersion",
|
|
49
|
+
"id",
|
|
50
|
+
"revision",
|
|
51
|
+
"modelProjectId",
|
|
52
|
+
"activeIterationId",
|
|
53
|
+
"latestIterationId",
|
|
54
|
+
"lastReservedAt",
|
|
55
|
+
"updatedAt"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"$defs": {
|
|
59
|
+
"__schema0": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 240
|
|
63
|
+
},
|
|
64
|
+
"__schema1": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": "date-time",
|
|
67
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"$id": "urn:openpond:learning:v1:chain",
|
|
71
|
+
"$comment": "Generated from @openpond/evals. Cross-resource identity, authorization, idempotency, admission, grading and split constraints are enforced by the shared domain service in addition to this structural schema."
|
|
72
|
+
}
|