@@ -7736,7 +7736,9 @@ export class Document extends Object {
7736
7736
static get typeId(): URL {
7737
7737
return new URL(\\"https://www.w3.org/ns/activitystreams#Document\\");
7738
7738
}
7739
-
7739
+ #_2e9AP7WdHBJYAgXG6GEyq7nSkNMe: number[] = [];
7740
+ #_2cGKFeFJMmiNpGZFEF75mCwFQsKb: number[] = [];
7741
+
7740
7742
/**
7741
7743
* Constructs a new instance of Document with the given values.
7742
7744
* @param values The values to initialize the instance with.
@@ -7761,7 +7763,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
7761
7763
tos?: (Object | URL)[];bto?: Object | URL | null;
7762
7764
btos?: (Object | URL)[];cc?: Object | URL | null;
7763
7765
ccs?: (Object | URL)[];bcc?: Object | URL | null;
7764
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
7766
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
7765
7767
,
7766
7768
{
7767
7769
documentLoader,
@@ -7771,7 +7773,15 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
7771
7773
contextLoader?: DocumentLoader,
7772
7774
} = {},
7773
7775
) {
7774
- super(values, { documentLoader, contextLoader });}
7776
+ super(values, { documentLoader, contextLoader });
7777
+ if (\\"width\\" in values && values.width != null) {
7778
+ this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe = [values.width];
7779
+ }
7780
+
7781
+ if (\\"height\\" in values && values.height != null) {
7782
+ this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb = [values.height];
7783
+ }
7784
+ }
7775
7785
7776
7786
/**
7777
7787
* Clones this instance, optionally updating it with the given values.
@@ -7798,18 +7808,44 @@ urls?: (URL | Link)[];to?: Object | URL | null;
7798
7808
tos?: (Object | URL)[];bto?: Object | URL | null;
7799
7809
btos?: (Object | URL)[];cc?: Object | URL | null;
7800
7810
ccs?: (Object | URL)[];bcc?: Object | URL | null;
7801
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
7811
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
7802
7812
7803
7813
= {},
7804
7814
options: {
7805
7815
documentLoader?: DocumentLoader,
7806
7816
contextLoader?: DocumentLoader,
7807
7817
} = {}
7808
7818
): Document {
7809
- const clone = super.clone(values, options) as unknown as Document;
7819
+ const clone = super.clone(values, options) as unknown as Document;clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe;
7820
+ if (\\"width\\" in values && values.width != null) {
7821
+ clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe = [values.width];
7822
+ }
7823
+ clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb;
7824
+ if (\\"height\\" in values && values.height != null) {
7825
+ clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb = [values.height];
7826
+ }
7827
+
7810
7828
return clone;
7811
7829
}
7812
7830
7831
+ /** Specifies a hint as to the rendering width in
7832
+ * device-independent pixels of the linked resource.
7833
+ *
7834
+ */
7835
+ get width(): (number | null) {
7836
+ if (this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe.length < 1) return null;
7837
+ return this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe[0];
7838
+ }
7839
+
7840
+ /** Specifies a hint as to the rendering height in
7841
+ * device-independent pixels of the linked resource.
7842
+ *
7843
+ */
7844
+ get height(): (number | null) {
7845
+ if (this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb.length < 1) return null;
7846
+ return this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb[0];
7847
+ }
7848
+
7813
7849
/**
7814
7850
* Converts this object to a JSON-LD structure.
7815
7851
* @returns The JSON-LD representation of this object.
@@ -7831,6 +7867,28 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
7831
7867
}) as unknown[];
7832
7868
const values = baseValues[0] as Record<string, unknown[] | string>;
7833
7869
7870
+ array = [];
7871
+ for (const v of this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe) {
7872
+ array.push(
7873
+ {
7874
+ \\"@type\\": \\"http://www.w3.org/2001/XMLSchema#nonNegativeInteger\\",
7875
+ \\"@value\\": v,
7876
+ }
7877
+ );
7878
+ }
7879
+ if (array.length > 0) values[\\"https://www.w3.org/ns/activitystreams#width\\"] = array;
7880
+
7881
+ array = [];
7882
+ for (const v of this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb) {
7883
+ array.push(
7884
+ {
7885
+ \\"@type\\": \\"http://www.w3.org/2001/XMLSchema#nonNegativeInteger\\",
7886
+ \\"@value\\": v,
7887
+ }
7888
+ );
7889
+ }
7890
+ if (array.length > 0) values[\\"https://www.w3.org/ns/activitystreams#height\\"] = array;
7891
+
7834
7892
values[\\"@type\\"] = [\\"https://www.w3.org/ns/activitystreams#Document\\"];
7835
7893
if (this.id) values[\\"@id\\"] = this.id.href;
7836
7894
if (options.expand) {
@@ -7912,12 +7970,66 @@ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration |
7912
7970
if (!(instance instanceof Document)) {
7913
7971
throw new TypeError(\\"Unexpected type: \\" + instance.constructor.name);
7914
7972
}
7973
+ const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe: number[] = [];
7974
+
7975
+ for (const v of values[\\"https://www.w3.org/ns/activitystreams#width\\"] ?? []) {
7976
+ if (v == null) continue;
7977
+ _2e9AP7WdHBJYAgXG6GEyq7nSkNMe.push(v[\\"@value\\"])
7978
+ }
7979
+ instance.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe;
7980
+ const _2cGKFeFJMmiNpGZFEF75mCwFQsKb: number[] = [];
7981
+
7982
+ for (const v of values[\\"https://www.w3.org/ns/activitystreams#height\\"] ?? []) {
7983
+ if (v == null) continue;
7984
+ _2cGKFeFJMmiNpGZFEF75mCwFQsKb.push(v[\\"@value\\"])
7985
+ }
7986
+ instance.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb = _2cGKFeFJMmiNpGZFEF75mCwFQsKb;
7915
7987
7916
7988
return instance;
7917
7989
}
7918
7990
7919
7991
protected _getCustomInspectProxy(): Record<string, unknown> {
7920
7992
const proxy: Record<string, unknown> = super._getCustomInspectProxy();
7993
+ const _2e9AP7WdHBJYAgXG6GEyq7nSkNMe = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe
7994
+ // deno-lint-ignore no-explicit-any
7995
+ .map((v: any) => v instanceof URL
7996
+ ? {
7997
+ [Symbol.for(\\"Deno.customInspect\\")]: (
7998
+ inspect: typeof Deno.inspect,
7999
+ options: Deno.InspectOptions,
8000
+ ): string => \\"URL \\" + inspect(v.href, options),
8001
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
8002
+ _depth: number,
8003
+ options: unknown,
8004
+ inspect: (value: unknown, options: unknown) => string,
8005
+ ): string => \\"URL \\" + inspect(v.href, options),
8006
+ }
8007
+ : v);
8008
+
8009
+ if (_2e9AP7WdHBJYAgXG6GEyq7nSkNMe.length == 1) {
8010
+ proxy.width = _2e9AP7WdHBJYAgXG6GEyq7nSkNMe[0];
8011
+ }
8012
+
8013
+ const _2cGKFeFJMmiNpGZFEF75mCwFQsKb = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb
8014
+ // deno-lint-ignore no-explicit-any
8015
+ .map((v: any) => v instanceof URL
8016
+ ? {
8017
+ [Symbol.for(\\"Deno.customInspect\\")]: (
8018
+ inspect: typeof Deno.inspect,
8019
+ options: Deno.InspectOptions,
8020
+ ): string => \\"URL \\" + inspect(v.href, options),
8021
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
8022
+ _depth: number,
8023
+ options: unknown,
8024
+ inspect: (value: unknown, options: unknown) => string,
8025
+ ): string => \\"URL \\" + inspect(v.href, options),
8026
+ }
8027
+ : v);
8028
+
8029
+ if (_2cGKFeFJMmiNpGZFEF75mCwFQsKb.length == 1) {
8030
+ proxy.height = _2cGKFeFJMmiNpGZFEF75mCwFQsKb[0];
8031
+ }
8032
+
7921
8033
return proxy;
7922
8034
}
7923
8035
@@ -7974,7 +8086,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
7974
8086
tos?: (Object | URL)[];bto?: Object | URL | null;
7975
8087
btos?: (Object | URL)[];cc?: Object | URL | null;
7976
8088
ccs?: (Object | URL)[];bcc?: Object | URL | null;
7977
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
8089
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
7978
8090
,
7979
8091
{
7980
8092
documentLoader,
@@ -8011,7 +8123,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
8011
8123
tos?: (Object | URL)[];bto?: Object | URL | null;
8012
8124
btos?: (Object | URL)[];cc?: Object | URL | null;
8013
8125
ccs?: (Object | URL)[];bcc?: Object | URL | null;
8014
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
8126
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
8015
8127
8016
8128
= {},
8017
8129
options: {
@@ -13182,7 +13294,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
13182
13294
tos?: (Object | URL)[];bto?: Object | URL | null;
13183
13295
btos?: (Object | URL)[];cc?: Object | URL | null;
13184
13296
ccs?: (Object | URL)[];bcc?: Object | URL | null;
13185
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
13297
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
13186
13298
,
13187
13299
{
13188
13300
documentLoader,
@@ -13219,7 +13331,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
13219
13331
tos?: (Object | URL)[];bto?: Object | URL | null;
13220
13332
btos?: (Object | URL)[];cc?: Object | URL | null;
13221
13333
ccs?: (Object | URL)[];bcc?: Object | URL | null;
13222
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
13334
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
13223
13335
13224
13336
= {},
13225
13337
options: {
@@ -16909,7 +17021,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
16909
17021
tos?: (Object | URL)[];bto?: Object | URL | null;
16910
17022
btos?: (Object | URL)[];cc?: Object | URL | null;
16911
17023
ccs?: (Object | URL)[];bcc?: Object | URL | null;
16912
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
17024
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
16913
17025
,
16914
17026
{
16915
17027
documentLoader,
@@ -16946,7 +17058,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
16946
17058
tos?: (Object | URL)[];bto?: Object | URL | null;
16947
17059
btos?: (Object | URL)[];cc?: Object | URL | null;
16948
17060
ccs?: (Object | URL)[];bcc?: Object | URL | null;
16949
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
17061
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
16950
17062
16951
17063
= {},
16952
17064
options: {
@@ -22439,7 +22551,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
22439
22551
tos?: (Object | URL)[];bto?: Object | URL | null;
22440
22552
btos?: (Object | URL)[];cc?: Object | URL | null;
22441
22553
ccs?: (Object | URL)[];bcc?: Object | URL | null;
22442
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
22554
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
22443
22555
,
22444
22556
{
22445
22557
documentLoader,
@@ -22476,7 +22588,7 @@ urls?: (URL | Link)[];to?: Object | URL | null;
22476
22588
tos?: (Object | URL)[];bto?: Object | URL | null;
22477
22589
btos?: (Object | URL)[];cc?: Object | URL | null;
22478
22590
ccs?: (Object | URL)[];bcc?: Object | URL | null;
22479
- bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;}
22591
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;width?: number | null;height?: number | null; }
22480
22592
22481
22593
= {},
22482
22594
options: {
0 commit comments