@noya-app/noya-api-client-react 0.1.53 → 0.1.55

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/index.mjs CHANGED
@@ -5476,49 +5476,67 @@ var gistSchema = Type.Object({
5476
5476
 
5477
5477
  // ../noya-schemas/src/jsonSchema.ts
5478
5478
  var jsonSchema = Type.Recursive(
5479
- (This) => Type.Union(
5480
- [
5481
- Type.Object({
5482
- type: Type.Literal("string"),
5483
- default: Type.Optional(Type.String()),
5484
- _kind: Type.Literal("String")
5485
- }),
5486
- Type.Object({
5487
- type: Type.Literal("number"),
5488
- default: Type.Optional(Type.Number()),
5489
- minimum: Type.Optional(Type.Number()),
5490
- maximum: Type.Optional(Type.Number()),
5491
- _kind: Type.Literal("Number")
5492
- }),
5493
- Type.Object({
5494
- type: Type.Literal("boolean"),
5495
- default: Type.Optional(Type.Boolean()),
5496
- _kind: Type.Literal("Boolean")
5497
- }),
5498
- Type.Object({
5499
- type: Type.Literal("null"),
5500
- _kind: Type.Literal("Null")
5501
- }),
5502
- Type.Object({
5503
- type: Type.Literal("array"),
5504
- items: This,
5505
- // default: Type.Optional(Type.Array(Type.Any())),
5506
- // minItems: Type.Optional(Type.Number()),
5507
- // maxItems: Type.Optional(Type.Number()),
5508
- _kind: Type.Literal("Array")
5509
- }),
5510
- Type.Object({
5511
- type: Type.Literal("object"),
5512
- properties: Type.Record(Type.String(), This),
5513
- required: Type.Optional(Type.Array(Type.String())),
5514
- // default: Type.Optional(Type.Record(Type.String(), Type.Any())),
5515
- _kind: Type.Literal("Object")
5516
- })
5517
- ],
5518
- {
5519
- discriminator: "type"
5520
- }
5521
- ),
5479
+ (This) => Type.Union([
5480
+ Type.Object({
5481
+ type: Type.Literal("string"),
5482
+ default: Type.Optional(Type.String()),
5483
+ _kind: Type.Literal("String")
5484
+ }),
5485
+ Type.Object({
5486
+ type: Type.Literal("number"),
5487
+ default: Type.Optional(Type.Number()),
5488
+ minimum: Type.Optional(Type.Number()),
5489
+ maximum: Type.Optional(Type.Number()),
5490
+ _kind: Type.Literal("Number")
5491
+ }),
5492
+ Type.Object({
5493
+ type: Type.Literal("boolean"),
5494
+ default: Type.Optional(Type.Boolean()),
5495
+ _kind: Type.Literal("Boolean")
5496
+ }),
5497
+ Type.Object({
5498
+ type: Type.Literal("null"),
5499
+ _kind: Type.Literal("Null")
5500
+ }),
5501
+ Type.Object({
5502
+ type: Type.Literal("array"),
5503
+ items: This,
5504
+ // default: Type.Optional(Type.Array(Type.Any())),
5505
+ // minItems: Type.Optional(Type.Number()),
5506
+ // maxItems: Type.Optional(Type.Number()),
5507
+ _kind: Type.Literal("Array")
5508
+ }),
5509
+ Type.Object({
5510
+ type: Type.Literal("object"),
5511
+ properties: Type.Record(Type.String(), This),
5512
+ required: Type.Optional(Type.Array(Type.String())),
5513
+ // default: Type.Optional(Type.Record(Type.String(), Type.Any())),
5514
+ _kind: Type.Literal("Object")
5515
+ }),
5516
+ Type.Object({
5517
+ const: Type.Union([
5518
+ Type.String(),
5519
+ Type.Number(),
5520
+ Type.Boolean(),
5521
+ Type.Null()
5522
+ ]),
5523
+ type: Type.Optional(
5524
+ Type.Union([
5525
+ Type.Literal("string"),
5526
+ Type.Literal("number"),
5527
+ Type.Literal("boolean"),
5528
+ Type.Literal("null")
5529
+ ])
5530
+ ),
5531
+ _kind: Type.Literal("Literal")
5532
+ }),
5533
+ Type.Object({
5534
+ anyOf: Type.Array(This, { minItems: 1 }),
5535
+ discriminator: Type.Optional(Type.String()),
5536
+ default: Type.Optional(Type.Any()),
5537
+ _kind: Type.Literal("Union")
5538
+ })
5539
+ ]),
5522
5540
  {
5523
5541
  $id: "jsonSchema"
5524
5542
  }
@@ -5600,6 +5618,13 @@ var SchemaTree = (0, import_tree_visit.defineTree)((schema) => {
5600
5618
  });
5601
5619
 
5602
5620
  // ../noya-schemas/src/resourceSchema.ts
5621
+ var targetFileSchema = Type.Object({
5622
+ id: Type.String(),
5623
+ toolId: Type.String(),
5624
+ tool: Type.Object({
5625
+ theme: Type.Optional(Type.Any())
5626
+ })
5627
+ });
5603
5628
  var baseSchemaProperties = {
5604
5629
  id: Type.String(),
5605
5630
  stableId: Type.String(),
@@ -5615,6 +5640,7 @@ var baseSchemaProperties = {
5615
5640
  })
5616
5641
  ),
5617
5642
  accessibleByFileVersionId: Nullable(Type.String()),
5643
+ file: Type.Optional(Nullable(targetFileSchema)),
5618
5644
  url: Type.Optional(Type.String()),
5619
5645
  transformUrl: Type.Optional(Type.String())
5620
5646
  };