@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.
@@ -6,12 +6,12 @@ $ tsup src/index.ts --format cjs,esm --dts --sourcemap
6
6
  CJS Build start
7
7
  ESM Build start
8
8
  DTS Build start
9
- CJS dist/index.js 542.05 KB
10
- CJS dist/index.js.map 1.49 MB
11
- CJS ⚡️ Build success in 5635ms
12
- ESM dist/index.mjs 533.39 KB
13
- ESM dist/index.mjs.map 1.49 MB
14
- ESM ⚡️ Build success in 5637ms
15
- DTS ⚡️ Build success in 77431ms
9
+ CJS dist/index.js 542.70 KB
10
+ CJS dist/index.js.map 1.51 MB
11
+ CJS ⚡️ Build success in 3660ms
12
+ ESM dist/index.mjs 534.05 KB
13
+ ESM dist/index.mjs.map 1.51 MB
14
+ ESM ⚡️ Build success in 3663ms
15
+ DTS ⚡️ Build success in 63990ms
16
16
  DTS dist/index.d.ts 17.73 KB
17
17
  DTS dist/index.d.mts 17.73 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @noya-app/noya-api-client-react
2
2
 
3
+ ## 0.1.55
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [daccde7]
8
+ - @noya-app/noya-api@0.1.55
9
+
10
+ ## 0.1.54
11
+
12
+ ### Patch Changes
13
+
14
+ - @noya-app/noya-api@0.1.54
15
+
3
16
  ## 0.1.53
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -24,9 +24,9 @@ declare function useNoyaTools(initial?: NoyaAPI.Tool[]): {
24
24
  createdAt: string;
25
25
  url: string;
26
26
  description: string | null;
27
+ theme: any;
27
28
  updatedAt: string;
28
29
  icon: string | null;
29
- theme: any;
30
30
  assets: string[];
31
31
  slug: string | null;
32
32
  tagline: string | null;
@@ -57,9 +57,9 @@ declare function useOptionalNoyaTools(initial?: NoyaAPI.Tool[]): {
57
57
  createdAt: string;
58
58
  url: string;
59
59
  description: string | null;
60
+ theme: any;
60
61
  updatedAt: string;
61
62
  icon: string | null;
62
- theme: any;
63
63
  assets: string[];
64
64
  slug: string | null;
65
65
  tagline: string | null;
package/dist/index.d.ts CHANGED
@@ -24,9 +24,9 @@ declare function useNoyaTools(initial?: NoyaAPI.Tool[]): {
24
24
  createdAt: string;
25
25
  url: string;
26
26
  description: string | null;
27
+ theme: any;
27
28
  updatedAt: string;
28
29
  icon: string | null;
29
- theme: any;
30
30
  assets: string[];
31
31
  slug: string | null;
32
32
  tagline: string | null;
@@ -57,9 +57,9 @@ declare function useOptionalNoyaTools(initial?: NoyaAPI.Tool[]): {
57
57
  createdAt: string;
58
58
  url: string;
59
59
  description: string | null;
60
+ theme: any;
60
61
  updatedAt: string;
61
62
  icon: string | null;
62
- theme: any;
63
63
  assets: string[];
64
64
  slug: string | null;
65
65
  tagline: string | null;
package/dist/index.js CHANGED
@@ -5525,49 +5525,67 @@ var gistSchema = Type.Object({
5525
5525
 
5526
5526
  // ../noya-schemas/src/jsonSchema.ts
5527
5527
  var jsonSchema = Type.Recursive(
5528
- (This) => Type.Union(
5529
- [
5530
- Type.Object({
5531
- type: Type.Literal("string"),
5532
- default: Type.Optional(Type.String()),
5533
- _kind: Type.Literal("String")
5534
- }),
5535
- Type.Object({
5536
- type: Type.Literal("number"),
5537
- default: Type.Optional(Type.Number()),
5538
- minimum: Type.Optional(Type.Number()),
5539
- maximum: Type.Optional(Type.Number()),
5540
- _kind: Type.Literal("Number")
5541
- }),
5542
- Type.Object({
5543
- type: Type.Literal("boolean"),
5544
- default: Type.Optional(Type.Boolean()),
5545
- _kind: Type.Literal("Boolean")
5546
- }),
5547
- Type.Object({
5548
- type: Type.Literal("null"),
5549
- _kind: Type.Literal("Null")
5550
- }),
5551
- Type.Object({
5552
- type: Type.Literal("array"),
5553
- items: This,
5554
- // default: Type.Optional(Type.Array(Type.Any())),
5555
- // minItems: Type.Optional(Type.Number()),
5556
- // maxItems: Type.Optional(Type.Number()),
5557
- _kind: Type.Literal("Array")
5558
- }),
5559
- Type.Object({
5560
- type: Type.Literal("object"),
5561
- properties: Type.Record(Type.String(), This),
5562
- required: Type.Optional(Type.Array(Type.String())),
5563
- // default: Type.Optional(Type.Record(Type.String(), Type.Any())),
5564
- _kind: Type.Literal("Object")
5565
- })
5566
- ],
5567
- {
5568
- discriminator: "type"
5569
- }
5570
- ),
5528
+ (This) => Type.Union([
5529
+ Type.Object({
5530
+ type: Type.Literal("string"),
5531
+ default: Type.Optional(Type.String()),
5532
+ _kind: Type.Literal("String")
5533
+ }),
5534
+ Type.Object({
5535
+ type: Type.Literal("number"),
5536
+ default: Type.Optional(Type.Number()),
5537
+ minimum: Type.Optional(Type.Number()),
5538
+ maximum: Type.Optional(Type.Number()),
5539
+ _kind: Type.Literal("Number")
5540
+ }),
5541
+ Type.Object({
5542
+ type: Type.Literal("boolean"),
5543
+ default: Type.Optional(Type.Boolean()),
5544
+ _kind: Type.Literal("Boolean")
5545
+ }),
5546
+ Type.Object({
5547
+ type: Type.Literal("null"),
5548
+ _kind: Type.Literal("Null")
5549
+ }),
5550
+ Type.Object({
5551
+ type: Type.Literal("array"),
5552
+ items: This,
5553
+ // default: Type.Optional(Type.Array(Type.Any())),
5554
+ // minItems: Type.Optional(Type.Number()),
5555
+ // maxItems: Type.Optional(Type.Number()),
5556
+ _kind: Type.Literal("Array")
5557
+ }),
5558
+ Type.Object({
5559
+ type: Type.Literal("object"),
5560
+ properties: Type.Record(Type.String(), This),
5561
+ required: Type.Optional(Type.Array(Type.String())),
5562
+ // default: Type.Optional(Type.Record(Type.String(), Type.Any())),
5563
+ _kind: Type.Literal("Object")
5564
+ }),
5565
+ Type.Object({
5566
+ const: Type.Union([
5567
+ Type.String(),
5568
+ Type.Number(),
5569
+ Type.Boolean(),
5570
+ Type.Null()
5571
+ ]),
5572
+ type: Type.Optional(
5573
+ Type.Union([
5574
+ Type.Literal("string"),
5575
+ Type.Literal("number"),
5576
+ Type.Literal("boolean"),
5577
+ Type.Literal("null")
5578
+ ])
5579
+ ),
5580
+ _kind: Type.Literal("Literal")
5581
+ }),
5582
+ Type.Object({
5583
+ anyOf: Type.Array(This, { minItems: 1 }),
5584
+ discriminator: Type.Optional(Type.String()),
5585
+ default: Type.Optional(Type.Any()),
5586
+ _kind: Type.Literal("Union")
5587
+ })
5588
+ ]),
5571
5589
  {
5572
5590
  $id: "jsonSchema"
5573
5591
  }
@@ -5649,6 +5667,13 @@ var SchemaTree = (0, import_tree_visit.defineTree)((schema) => {
5649
5667
  });
5650
5668
 
5651
5669
  // ../noya-schemas/src/resourceSchema.ts
5670
+ var targetFileSchema = Type.Object({
5671
+ id: Type.String(),
5672
+ toolId: Type.String(),
5673
+ tool: Type.Object({
5674
+ theme: Type.Optional(Type.Any())
5675
+ })
5676
+ });
5652
5677
  var baseSchemaProperties = {
5653
5678
  id: Type.String(),
5654
5679
  stableId: Type.String(),
@@ -5664,6 +5689,7 @@ var baseSchemaProperties = {
5664
5689
  })
5665
5690
  ),
5666
5691
  accessibleByFileVersionId: Nullable(Type.String()),
5692
+ file: Type.Optional(Nullable(targetFileSchema)),
5667
5693
  url: Type.Optional(Type.String()),
5668
5694
  transformUrl: Type.Optional(Type.String())
5669
5695
  };