@@ -18,6 +18,10 @@ import {
1818 LanguageString,
1919 type RemoteDocument,
2020} from \\"@fedify/vocab-runtime\\";
21+ import {
22+ isTemporalDuration,
23+ isTemporalInstant,
24+ } from \\"@fedify/vocab-runtime/temporal\\";
2125
2226
2327/** Describes an object of any kind. The Object type serves as the base type for
@@ -388,7 +392,7 @@ proofs?: (DataIntegrityProof | URL)[];}
388392 }
389393
390394 if (\\"endTime\\" in values && values.endTime != null) {
391- if (values.endTime instanceof Temporal.Instant ) {
395+ if (isTemporalInstant( values.endTime) ) {
392396 // @ts-ignore: type is checked above.
393397 this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
394398
@@ -620,7 +624,7 @@ proofs?: (DataIntegrityProof | URL)[];}
620624 }
621625
622626 if (\\"published\\" in values && values.published != null) {
623- if (values.published instanceof Temporal.Instant ) {
627+ if (isTemporalInstant( values.published) ) {
624628 // @ts-ignore: type is checked above.
625629 this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
626630
@@ -685,7 +689,7 @@ proofs?: (DataIntegrityProof | URL)[];}
685689 }
686690
687691 if (\\"startTime\\" in values && values.startTime != null) {
688- if (values.startTime instanceof Temporal.Instant ) {
692+ if (isTemporalInstant( values.startTime) ) {
689693 // @ts-ignore: type is checked above.
690694 this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
691695
@@ -753,7 +757,7 @@ proofs?: (DataIntegrityProof | URL)[];}
753757 }
754758
755759 if (\\"updated\\" in values && values.updated != null) {
756- if (values.updated instanceof Temporal.Instant ) {
760+ if (isTemporalInstant( values.updated) ) {
757761 // @ts-ignore: type is checked above.
758762 this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
759763
@@ -975,7 +979,7 @@ proofs?: (DataIntegrityProof | URL)[];}
975979 }
976980
977981 if (\\"duration\\" in values && values.duration != null) {
978- if (values.duration instanceof Temporal.Duration ) {
982+ if (isTemporalDuration( values.duration) ) {
979983 // @ts-ignore: type is checked above.
980984 this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
981985
@@ -1298,7 +1302,7 @@ proofs?: (DataIntegrityProof | URL)[];}
12981302 }
12991303 clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
13001304 if (\\"endTime\\" in values && values.endTime != null) {
1301- if (values.endTime instanceof Temporal.Instant ) {
1305+ if (isTemporalInstant( values.endTime) ) {
13021306 // @ts-ignore: type is checked above.
13031307 clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
13041308
@@ -1536,7 +1540,7 @@ proofs?: (DataIntegrityProof | URL)[];}
15361540 }
15371541 clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
15381542 if (\\"published\\" in values && values.published != null) {
1539- if (values.published instanceof Temporal.Instant ) {
1543+ if (isTemporalInstant( values.published) ) {
15401544 // @ts-ignore: type is checked above.
15411545 clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
15421546
@@ -1601,7 +1605,7 @@ proofs?: (DataIntegrityProof | URL)[];}
16011605 }
16021606 clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
16031607 if (\\"startTime\\" in values && values.startTime != null) {
1604- if (values.startTime instanceof Temporal.Instant ) {
1608+ if (isTemporalInstant( values.startTime) ) {
16051609 // @ts-ignore: type is checked above.
16061610 clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
16071611
@@ -1670,7 +1674,7 @@ proofs?: (DataIntegrityProof | URL)[];}
16701674 }
16711675 clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
16721676 if (\\"updated\\" in values && values.updated != null) {
1673- if (values.updated instanceof Temporal.Instant ) {
1677+ if (isTemporalInstant( values.updated) ) {
16741678 // @ts-ignore: type is checked above.
16751679 clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
16761680
@@ -1896,7 +1900,7 @@ proofs?: (DataIntegrityProof | URL)[];}
18961900 }
18971901 clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
18981902 if (\\"duration\\" in values && values.duration != null) {
1899- if (values.duration instanceof Temporal.Duration ) {
1903+ if (isTemporalDuration( values.duration) ) {
19001904 // @ts-ignore: type is checked above.
19011905 clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
19021906
@@ -17191,7 +17195,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL |
1719117195 }
1719217196
1719317197 if (\\"created\\" in values && values.created != null) {
17194- if (values.created instanceof Temporal.Instant ) {
17198+ if (isTemporalInstant( values.created) ) {
1719517199 // @ts-ignore: type is checked above.
1719617200 this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
1719717201
@@ -17292,7 +17296,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL |
1729217296 }
1729317297 clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
1729417298 if (\\"created\\" in values && values.created != null) {
17295- if (values.created instanceof Temporal.Instant ) {
17299+ if (isTemporalInstant( values.created) ) {
1729617300 // @ts-ignore: type is checked above.
1729717301 clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
1729817302
@@ -67912,7 +67916,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
6791267916 }
6791367917
6791467918 if (\\"closed\\" in values && values.closed != null) {
67915- if (values.closed instanceof Temporal.Instant || typeof values.closed === \\"boolean\\") {
67919+ if (isTemporalInstant( values.closed) || typeof values.closed === \\"boolean\\") {
6791667920 // @ts-ignore: type is checked above.
6791767921 this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
6791867922
@@ -68041,7 +68045,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
6804168045 }
6804268046 clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
6804368047 if (\\"closed\\" in values && values.closed != null) {
68044- if (values.closed instanceof Temporal.Instant || typeof values.closed === \\"boolean\\") {
68048+ if (isTemporalInstant( values.closed) || typeof values.closed === \\"boolean\\") {
6804568049 // @ts-ignore: type is checked above.
6804668050 clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
6804768051
@@ -68648,7 +68652,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
6864868652 array = [];
6864968653 for (const v of this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed) {
6865068654 const element = (
68651- v instanceof Temporal.Instant ? {
68655+ isTemporalInstant(v) ? {
6865268656 \\"@type\\": \\"http://www.w3.org/2001/XMLSchema#dateTime\\",
6865368657 \\"@value\\": v.toString(),
6865468658 } : { \\"@value\\": v }
@@ -79727,7 +79731,7 @@ proofs?: (DataIntegrityProof | URL)[];deleted?: Temporal.Instant | null;}
7972779731 ) {
7972879732 super(values, options);
7972979733 if (\\"deleted\\" in values && values.deleted != null) {
79730- if (values.deleted instanceof Temporal.Instant ) {
79734+ if (isTemporalInstant( values.deleted) ) {
7973179735 // @ts-ignore: type is checked above.
7973279736 this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
7973379737
@@ -79784,7 +79788,7 @@ proofs?: (DataIntegrityProof | URL)[];deleted?: Temporal.Instant | null;}
7978479788 }
7978579789 const clone = super.clone(values, options) as unknown as Tombstone;clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
7978679790 if (\\"deleted\\" in values && values.deleted != null) {
79787- if (values.deleted instanceof Temporal.Instant ) {
79791+ if (isTemporalInstant( values.deleted) ) {
7978879792 // @ts-ignore: type is checked above.
7978979793 clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
7979079794
0 commit comments