Loading CHANGES.md +33 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,39 @@ To be released. - Added `Source` class to Activity Vocabulary API. [[#114]] - Added `aliases` property to `Actor` type in Activity Vocabulary API. - Added `Application.getAliases()` method. - Added `Application.getAlias()` method. - `new Application()` constructor now accepts `alias` option. - `new Application()` constructor now accepts `aliases` option. - `Application.clone()` method now accepts `alias` option. - `Application.clone()` method now accepts `aliases` option. - Added `Group.getAliases()` method. - Added `Group.getAlias()` method. - `new Group()` constructor now accepts `alias` option. - `new Group()` constructor now accepts `aliases` option. - `Group.clone()` method now accepts `alias` option. - `Group.clone()` method now accepts `aliases` option. - Added `Organization.getAliases()` method. - Added `Organization.getAlias()` method. - `new Organization()` constructor now accepts `alias` option. - `new Organization()` constructor now accepts `aliases` option. - `Organization.clone()` method now accepts `alias` option. - `Organization.clone()` method now accepts `aliases` option. - Added `Person.getAliases()` method. - Added `Person.getAlias()` method. - `new Person()` constructor now accepts `alias` option. - `new Person()` constructor now accepts `aliases` option. - `Person.clone()` method now accepts `alias` option. - `Person.clone()` method now accepts `aliases` option. - Added `Service.getAliases()` method. - Added `Service.getAlias()` method. - `new Service()` constructor now accepts `alias` option. - `new Service()` constructor now accepts `aliases` option. - `Service.clone()` method now accepts `alias` option. - `Service.clone()` method now accepts `aliases` option. - Improved the performance of `Object.toJsonLd()` method. - `Object.toJsonLd()` method no longer guarantees that the returned Loading src/codegen/__snapshots__/class.test.ts.snap +1719 −44 File changed.Preview size limit exceeded, changes collapsed. Show changes src/vocab/__snapshots__/vocab.test.ts.snap +30 −15 Original line number Diff line number Diff line Loading @@ -903,7 +903,8 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -955,7 +956,8 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -1007,7 +1009,8 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading Loading @@ -2637,7 +2640,8 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -2689,7 +2693,8 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -2741,7 +2746,8 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading Loading @@ -4653,7 +4659,8 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -4705,7 +4712,8 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -4757,7 +4765,8 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading Loading @@ -4920,7 +4929,8 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -4972,7 +4982,8 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -5024,7 +5035,8 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading Loading @@ -5925,7 +5937,8 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -5977,7 +5990,8 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -6029,7 +6043,8 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading src/vocab/application.yaml +17 −0 Original line number Diff line number Diff line Loading @@ -242,3 +242,20 @@ properties: description: Whether the actor allows to be indexed. range: - "http://www.w3.org/2001/XMLSchema#boolean" - pluralName: aliases singularName: alias singularAccessor: true compactName: alsoKnownAs uri: "https://www.w3.org/ns/activitystreams#alsoKnownAs" description: | The `aliases` (`alsoKnownAs`) property is used to specify alternative names or aliases for an entity. It can be used to provide additional identifiers or labels for an entity, which can be useful in scenarios where an entity may have multiple names or aliases. range: - "https://www.w3.org/ns/activitystreams#Application" - "https://www.w3.org/ns/activitystreams#Group" - "https://www.w3.org/ns/activitystreams#Organization" - "https://www.w3.org/ns/activitystreams#Person" - "https://www.w3.org/ns/activitystreams#Service" src/vocab/group.yaml +17 −0 Original line number Diff line number Diff line Loading @@ -242,3 +242,20 @@ properties: description: Whether the actor allows to be indexed. range: - "http://www.w3.org/2001/XMLSchema#boolean" - pluralName: aliases singularName: alias singularAccessor: true compactName: alsoKnownAs uri: "https://www.w3.org/ns/activitystreams#alsoKnownAs" description: | The `aliases` (`alsoKnownAs`) property is used to specify alternative names or aliases for an entity. It can be used to provide additional identifiers or labels for an entity, which can be useful in scenarios where an entity may have multiple names or aliases. range: - "https://www.w3.org/ns/activitystreams#Application" - "https://www.w3.org/ns/activitystreams#Group" - "https://www.w3.org/ns/activitystreams#Organization" - "https://www.w3.org/ns/activitystreams#Person" - "https://www.w3.org/ns/activitystreams#Service" Loading
CHANGES.md +33 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,39 @@ To be released. - Added `Source` class to Activity Vocabulary API. [[#114]] - Added `aliases` property to `Actor` type in Activity Vocabulary API. - Added `Application.getAliases()` method. - Added `Application.getAlias()` method. - `new Application()` constructor now accepts `alias` option. - `new Application()` constructor now accepts `aliases` option. - `Application.clone()` method now accepts `alias` option. - `Application.clone()` method now accepts `aliases` option. - Added `Group.getAliases()` method. - Added `Group.getAlias()` method. - `new Group()` constructor now accepts `alias` option. - `new Group()` constructor now accepts `aliases` option. - `Group.clone()` method now accepts `alias` option. - `Group.clone()` method now accepts `aliases` option. - Added `Organization.getAliases()` method. - Added `Organization.getAlias()` method. - `new Organization()` constructor now accepts `alias` option. - `new Organization()` constructor now accepts `aliases` option. - `Organization.clone()` method now accepts `alias` option. - `Organization.clone()` method now accepts `aliases` option. - Added `Person.getAliases()` method. - Added `Person.getAlias()` method. - `new Person()` constructor now accepts `alias` option. - `new Person()` constructor now accepts `aliases` option. - `Person.clone()` method now accepts `alias` option. - `Person.clone()` method now accepts `aliases` option. - Added `Service.getAliases()` method. - Added `Service.getAlias()` method. - `new Service()` constructor now accepts `alias` option. - `new Service()` constructor now accepts `aliases` option. - `Service.clone()` method now accepts `alias` option. - `Service.clone()` method now accepts `aliases` option. - Improved the performance of `Object.toJsonLd()` method. - `Object.toJsonLd()` method no longer guarantees that the returned Loading
src/codegen/__snapshots__/class.test.ts.snap +1719 −44 File changed.Preview size limit exceeded, changes collapsed. Show changes
src/vocab/__snapshots__/vocab.test.ts.snap +30 −15 Original line number Diff line number Diff line Loading @@ -903,7 +903,8 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -955,7 +956,8 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -1007,7 +1009,8 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading Loading @@ -2637,7 +2640,8 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -2689,7 +2693,8 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -2741,7 +2746,8 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading Loading @@ -4653,7 +4659,8 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -4705,7 +4712,8 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -4757,7 +4765,8 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading Loading @@ -4920,7 +4929,8 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -4972,7 +4982,8 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -5024,7 +5035,8 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading Loading @@ -5925,7 +5937,8 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] }' `; Loading Loading @@ -5977,7 +5990,8 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, alias: URL "https://example.com/" }' `; Loading Loading @@ -6029,7 +6043,8 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = ` discoverable: true, suspended: true, memorial: true, indexable: true indexable: true, aliases: [ Application {}, Application {} ] }' `; Loading
src/vocab/application.yaml +17 −0 Original line number Diff line number Diff line Loading @@ -242,3 +242,20 @@ properties: description: Whether the actor allows to be indexed. range: - "http://www.w3.org/2001/XMLSchema#boolean" - pluralName: aliases singularName: alias singularAccessor: true compactName: alsoKnownAs uri: "https://www.w3.org/ns/activitystreams#alsoKnownAs" description: | The `aliases` (`alsoKnownAs`) property is used to specify alternative names or aliases for an entity. It can be used to provide additional identifiers or labels for an entity, which can be useful in scenarios where an entity may have multiple names or aliases. range: - "https://www.w3.org/ns/activitystreams#Application" - "https://www.w3.org/ns/activitystreams#Group" - "https://www.w3.org/ns/activitystreams#Organization" - "https://www.w3.org/ns/activitystreams#Person" - "https://www.w3.org/ns/activitystreams#Service"
src/vocab/group.yaml +17 −0 Original line number Diff line number Diff line Loading @@ -242,3 +242,20 @@ properties: description: Whether the actor allows to be indexed. range: - "http://www.w3.org/2001/XMLSchema#boolean" - pluralName: aliases singularName: alias singularAccessor: true compactName: alsoKnownAs uri: "https://www.w3.org/ns/activitystreams#alsoKnownAs" description: | The `aliases` (`alsoKnownAs`) property is used to specify alternative names or aliases for an entity. It can be used to provide additional identifiers or labels for an entity, which can be useful in scenarios where an entity may have multiple names or aliases. range: - "https://www.w3.org/ns/activitystreams#Application" - "https://www.w3.org/ns/activitystreams#Group" - "https://www.w3.org/ns/activitystreams#Organization" - "https://www.w3.org/ns/activitystreams#Person" - "https://www.w3.org/ns/activitystreams#Service"