@decocms/runtime 0.27.0-beta.1 → 0.28.0-beta.1

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.
@@ -1,4 +1,4 @@
1
- export { D as DeconfigClient, i as DeconfigResource, b as DeconfigResourceOptions, E as EnhancedResourcesTools, N as NotFoundError, h as RESOURCE_WATCH_BASE_PATHNAME, R as ResourcesBinding, d as ResourcesTools, U as UserInputError, W as WatchOptions, a as createDeconfigResource } from '../../index-6dtc1EK6.js';
1
+ export { D as DeconfigClient, i as DeconfigResource, b as DeconfigResourceOptions, E as EnhancedResourcesTools, N as NotFoundError, h as RESOURCE_WATCH_BASE_PATHNAME, R as ResourcesBinding, d as ResourcesTools, U as UserInputError, W as WatchOptions, a as createDeconfigResource } from '../../index-DqyElLzZ.js';
2
2
  import '@mastra/core';
3
3
  import '../../index-COMJ3oN7.js';
4
4
  import '@cloudflare/workers-types';
@@ -1,6 +1,6 @@
1
1
  import * as zod from 'zod';
2
2
  import { z } from 'zod';
3
- export { B as BaseResourceDataSchema, D as DeconfigClient, b as DeconfigResourceOptions, E as EnhancedResourcesTools, f as ResourceBinding, g as ResourceBindingsFunction, R as ResourcesBinding, d as ResourcesTools, a as createDeconfigResource, c as createResourceBindings, e as deconfigTools } from '../index-6dtc1EK6.js';
3
+ export { B as BaseResourceDataSchema, D as DeconfigClient, b as DeconfigResourceOptions, E as EnhancedResourcesTools, f as ResourceBinding, g as ResourceBindingsFunction, R as ResourcesBinding, d as ResourcesTools, a as createDeconfigResource, c as createResourceBindings, e as deconfigTools } from '../index-DqyElLzZ.js';
4
4
  import * as _mastra_core from '@mastra/core';
5
5
  import { c as createPrivateTool, a as createStreamableTool, S as StreamableTool } from '../index-COMJ3oN7.js';
6
6
  import { MCPConnection } from '@decocms/bindings/connection';
@@ -312,13 +312,13 @@ declare const ViewBinding: {
312
312
  prompt: z.ZodOptional<z.ZodString>;
313
313
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
314
314
  }, "strip", z.ZodTypeAny, {
315
- tools: string[];
316
315
  title: string;
316
+ tools: string[];
317
317
  icon: string;
318
- id?: string | undefined;
319
318
  url?: string | undefined;
320
319
  name?: string | undefined;
321
320
  description?: string | undefined;
321
+ id?: string | undefined;
322
322
  resourceName?: string | undefined;
323
323
  mimeTypePattern?: string | undefined;
324
324
  prompt?: string | undefined;
@@ -326,11 +326,11 @@ declare const ViewBinding: {
326
326
  }, {
327
327
  title: string;
328
328
  icon: string;
329
- id?: string | undefined;
330
329
  url?: string | undefined;
331
330
  name?: string | undefined;
332
- tools?: string[] | undefined;
333
331
  description?: string | undefined;
332
+ tools?: string[] | undefined;
333
+ id?: string | undefined;
334
334
  resourceName?: string | undefined;
335
335
  mimeTypePattern?: string | undefined;
336
336
  prompt?: string | undefined;
@@ -338,13 +338,13 @@ declare const ViewBinding: {
338
338
  }>, "many">;
339
339
  }, "strip", z.ZodTypeAny, {
340
340
  views: {
341
- tools: string[];
342
341
  title: string;
342
+ tools: string[];
343
343
  icon: string;
344
- id?: string | undefined;
345
344
  url?: string | undefined;
346
345
  name?: string | undefined;
347
346
  description?: string | undefined;
347
+ id?: string | undefined;
348
348
  resourceName?: string | undefined;
349
349
  mimeTypePattern?: string | undefined;
350
350
  prompt?: string | undefined;
@@ -354,11 +354,11 @@ declare const ViewBinding: {
354
354
  views: {
355
355
  title: string;
356
356
  icon: string;
357
- id?: string | undefined;
358
357
  url?: string | undefined;
359
358
  name?: string | undefined;
360
- tools?: string[] | undefined;
361
359
  description?: string | undefined;
360
+ tools?: string[] | undefined;
361
+ id?: string | undefined;
362
362
  resourceName?: string | undefined;
363
363
  mimeTypePattern?: string | undefined;
364
364
  prompt?: string | undefined;
@@ -391,13 +391,13 @@ declare const VIEW_BINDING: readonly [{
391
391
  prompt: z.ZodOptional<z.ZodString>;
392
392
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
393
393
  }, "strip", z.ZodTypeAny, {
394
- tools: string[];
395
394
  title: string;
395
+ tools: string[];
396
396
  icon: string;
397
- id?: string | undefined;
398
397
  url?: string | undefined;
399
398
  name?: string | undefined;
400
399
  description?: string | undefined;
400
+ id?: string | undefined;
401
401
  resourceName?: string | undefined;
402
402
  mimeTypePattern?: string | undefined;
403
403
  prompt?: string | undefined;
@@ -405,11 +405,11 @@ declare const VIEW_BINDING: readonly [{
405
405
  }, {
406
406
  title: string;
407
407
  icon: string;
408
- id?: string | undefined;
409
408
  url?: string | undefined;
410
409
  name?: string | undefined;
411
- tools?: string[] | undefined;
412
410
  description?: string | undefined;
411
+ tools?: string[] | undefined;
412
+ id?: string | undefined;
413
413
  resourceName?: string | undefined;
414
414
  mimeTypePattern?: string | undefined;
415
415
  prompt?: string | undefined;
@@ -417,13 +417,13 @@ declare const VIEW_BINDING: readonly [{
417
417
  }>, "many">;
418
418
  }, "strip", z.ZodTypeAny, {
419
419
  views: {
420
- tools: string[];
421
420
  title: string;
421
+ tools: string[];
422
422
  icon: string;
423
- id?: string | undefined;
424
423
  url?: string | undefined;
425
424
  name?: string | undefined;
426
425
  description?: string | undefined;
426
+ id?: string | undefined;
427
427
  resourceName?: string | undefined;
428
428
  mimeTypePattern?: string | undefined;
429
429
  prompt?: string | undefined;
@@ -433,11 +433,11 @@ declare const VIEW_BINDING: readonly [{
433
433
  views: {
434
434
  title: string;
435
435
  icon: string;
436
- id?: string | undefined;
437
436
  url?: string | undefined;
438
437
  name?: string | undefined;
439
- tools?: string[] | undefined;
440
438
  description?: string | undefined;
439
+ tools?: string[] | undefined;
440
+ id?: string | undefined;
441
441
  resourceName?: string | undefined;
442
442
  mimeTypePattern?: string | undefined;
443
443
  prompt?: string | undefined;
@@ -459,13 +459,13 @@ declare const listViewsSchema: z.ZodObject<{
459
459
  prompt: z.ZodOptional<z.ZodString>;
460
460
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
461
461
  }, "strip", z.ZodTypeAny, {
462
- tools: string[];
463
462
  title: string;
463
+ tools: string[];
464
464
  icon: string;
465
- id?: string | undefined;
466
465
  url?: string | undefined;
467
466
  name?: string | undefined;
468
467
  description?: string | undefined;
468
+ id?: string | undefined;
469
469
  resourceName?: string | undefined;
470
470
  mimeTypePattern?: string | undefined;
471
471
  prompt?: string | undefined;
@@ -473,11 +473,11 @@ declare const listViewsSchema: z.ZodObject<{
473
473
  }, {
474
474
  title: string;
475
475
  icon: string;
476
- id?: string | undefined;
477
476
  url?: string | undefined;
478
477
  name?: string | undefined;
479
- tools?: string[] | undefined;
480
478
  description?: string | undefined;
479
+ tools?: string[] | undefined;
480
+ id?: string | undefined;
481
481
  resourceName?: string | undefined;
482
482
  mimeTypePattern?: string | undefined;
483
483
  prompt?: string | undefined;
@@ -485,13 +485,13 @@ declare const listViewsSchema: z.ZodObject<{
485
485
  }>, "many">;
486
486
  }, "strip", z.ZodTypeAny, {
487
487
  views: {
488
- tools: string[];
489
488
  title: string;
489
+ tools: string[];
490
490
  icon: string;
491
- id?: string | undefined;
492
491
  url?: string | undefined;
493
492
  name?: string | undefined;
494
493
  description?: string | undefined;
494
+ id?: string | undefined;
495
495
  resourceName?: string | undefined;
496
496
  mimeTypePattern?: string | undefined;
497
497
  prompt?: string | undefined;
@@ -501,11 +501,11 @@ declare const listViewsSchema: z.ZodObject<{
501
501
  views: {
502
502
  title: string;
503
503
  icon: string;
504
- id?: string | undefined;
505
504
  url?: string | undefined;
506
505
  name?: string | undefined;
507
- tools?: string[] | undefined;
508
506
  description?: string | undefined;
507
+ tools?: string[] | undefined;
508
+ id?: string | undefined;
509
509
  resourceName?: string | undefined;
510
510
  mimeTypePattern?: string | undefined;
511
511
  prompt?: string | undefined;
@@ -24,10 +24,10 @@ declare const ResourcesReadOutputSchema: z.ZodObject<{
24
24
  data: z.ZodString;
25
25
  type: z.ZodEnum<["text", "blob"]>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- uri: string;
28
27
  type: "text" | "blob";
29
- name: string;
30
28
  data: string;
29
+ uri: string;
30
+ name: string;
31
31
  mimeType?: string | undefined;
32
32
  title?: string | undefined;
33
33
  description?: string | undefined;
@@ -36,10 +36,10 @@ declare const ResourcesReadOutputSchema: z.ZodObject<{
36
36
  timestamp?: string | undefined;
37
37
  size?: number | undefined;
38
38
  }, {
39
- uri: string;
40
39
  type: "text" | "blob";
41
- name: string;
42
40
  data: string;
41
+ uri: string;
42
+ name: string;
43
43
  mimeType?: string | undefined;
44
44
  title?: string | undefined;
45
45
  description?: string | undefined;
@@ -147,27 +147,27 @@ declare const ResourceCreateInputSchema: z.ZodObject<{
147
147
  }>;
148
148
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
149
149
  }, "strip", z.ZodTypeAny, {
150
- name: string;
151
150
  content: {
152
151
  type: "text" | "blob";
153
152
  data: string;
154
153
  mimeType?: string | undefined;
155
154
  };
155
+ name: string;
156
156
  resourceName: string;
157
- metadata?: Record<string, any> | undefined;
158
157
  title?: string | undefined;
159
158
  description?: string | undefined;
159
+ metadata?: Record<string, any> | undefined;
160
160
  }, {
161
- name: string;
162
161
  content: {
163
162
  type: "text" | "blob";
164
163
  data: string;
165
164
  mimeType?: string | undefined;
166
165
  };
166
+ name: string;
167
167
  resourceName: string;
168
- metadata?: Record<string, any> | undefined;
169
168
  title?: string | undefined;
170
169
  description?: string | undefined;
170
+ metadata?: Record<string, any> | undefined;
171
171
  }>;
172
172
  declare const ResourceCreateOutputSchema: z.ZodObject<{
173
173
  name: z.ZodString;
@@ -223,7 +223,6 @@ declare const ResourceUpdateInputSchema: z.ZodObject<{
223
223
  }, "strip", z.ZodTypeAny, {
224
224
  uri: string;
225
225
  name: string;
226
- metadata?: Record<string, any> | undefined;
227
226
  content?: {
228
227
  type: "text" | "blob";
229
228
  data: string;
@@ -231,11 +230,11 @@ declare const ResourceUpdateInputSchema: z.ZodObject<{
231
230
  } | undefined;
232
231
  title?: string | undefined;
233
232
  description?: string | undefined;
233
+ metadata?: Record<string, any> | undefined;
234
234
  resourceName?: string | undefined;
235
235
  }, {
236
236
  uri: string;
237
237
  name: string;
238
- metadata?: Record<string, any> | undefined;
239
238
  content?: {
240
239
  type: "text" | "blob";
241
240
  data: string;
@@ -243,6 +242,7 @@ declare const ResourceUpdateInputSchema: z.ZodObject<{
243
242
  } | undefined;
244
243
  title?: string | undefined;
245
244
  description?: string | undefined;
245
+ metadata?: Record<string, any> | undefined;
246
246
  resourceName?: string | undefined;
247
247
  }>;
248
248
  declare const ResourceUpdateOutputSchema: z.ZodObject<{
package/dist/views.d.ts CHANGED
@@ -14,13 +14,13 @@ declare const ViewsListOutputSchema: z.ZodObject<{
14
14
  prompt: z.ZodOptional<z.ZodString>;
15
15
  installBehavior: z.ZodOptional<z.ZodEnum<["none", "open", "autoPin"]>>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- tools: string[];
18
17
  title: string;
18
+ tools: string[];
19
19
  icon: string;
20
- id?: string | undefined;
21
20
  url?: string | undefined;
22
21
  name?: string | undefined;
23
22
  description?: string | undefined;
23
+ id?: string | undefined;
24
24
  resourceName?: string | undefined;
25
25
  mimeTypePattern?: string | undefined;
26
26
  prompt?: string | undefined;
@@ -28,11 +28,11 @@ declare const ViewsListOutputSchema: z.ZodObject<{
28
28
  }, {
29
29
  title: string;
30
30
  icon: string;
31
- id?: string | undefined;
32
31
  url?: string | undefined;
33
32
  name?: string | undefined;
34
- tools?: string[] | undefined;
35
33
  description?: string | undefined;
34
+ tools?: string[] | undefined;
35
+ id?: string | undefined;
36
36
  resourceName?: string | undefined;
37
37
  mimeTypePattern?: string | undefined;
38
38
  prompt?: string | undefined;
@@ -40,13 +40,13 @@ declare const ViewsListOutputSchema: z.ZodObject<{
40
40
  }>, "many">;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  views: {
43
- tools: string[];
44
43
  title: string;
44
+ tools: string[];
45
45
  icon: string;
46
- id?: string | undefined;
47
46
  url?: string | undefined;
48
47
  name?: string | undefined;
49
48
  description?: string | undefined;
49
+ id?: string | undefined;
50
50
  resourceName?: string | undefined;
51
51
  mimeTypePattern?: string | undefined;
52
52
  prompt?: string | undefined;
@@ -56,11 +56,11 @@ declare const ViewsListOutputSchema: z.ZodObject<{
56
56
  views: {
57
57
  title: string;
58
58
  icon: string;
59
- id?: string | undefined;
60
59
  url?: string | undefined;
61
60
  name?: string | undefined;
62
- tools?: string[] | undefined;
63
61
  description?: string | undefined;
62
+ tools?: string[] | undefined;
63
+ id?: string | undefined;
64
64
  resourceName?: string | undefined;
65
65
  mimeTypePattern?: string | undefined;
66
66
  prompt?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/runtime",
3
- "version": "0.27.0-beta.1",
3
+ "version": "0.28.0-beta.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -90,7 +90,6 @@ declare function createResourceBindings<TDataSchema extends BaseResourceDataSche
90
90
  created_by: z.ZodOptional<z.ZodString>;
91
91
  updated_by: z.ZodOptional<z.ZodString>;
92
92
  }, "strip", z.ZodTypeAny, {
93
- uri: string;
94
93
  data: {
95
94
  name: string;
96
95
  description?: string | undefined;
@@ -99,12 +98,12 @@ declare function createResourceBindings<TDataSchema extends BaseResourceDataSche
99
98
  name: string;
100
99
  description: string;
101
100
  };
101
+ uri: string;
102
102
  created_at?: string | undefined;
103
103
  updated_at?: string | undefined;
104
104
  created_by?: string | undefined;
105
105
  updated_by?: string | undefined;
106
106
  }, {
107
- uri: string;
108
107
  data: {
109
108
  name: string;
110
109
  description?: string | undefined;
@@ -113,6 +112,7 @@ declare function createResourceBindings<TDataSchema extends BaseResourceDataSche
113
112
  name: string;
114
113
  description: string;
115
114
  };
115
+ uri: string;
116
116
  created_at?: string | undefined;
117
117
  updated_at?: string | undefined;
118
118
  created_by?: string | undefined;
@@ -126,7 +126,6 @@ declare function createResourceBindings<TDataSchema extends BaseResourceDataSche
126
126
  hasPreviousPage: z.ZodBoolean;
127
127
  }, "strip", z.ZodTypeAny, {
128
128
  items: {
129
- uri: string;
130
129
  data: {
131
130
  name: string;
132
131
  description?: string | undefined;
@@ -135,6 +134,7 @@ declare function createResourceBindings<TDataSchema extends BaseResourceDataSche
135
134
  name: string;
136
135
  description: string;
137
136
  };
137
+ uri: string;
138
138
  created_at?: string | undefined;
139
139
  updated_at?: string | undefined;
140
140
  created_by?: string | undefined;
@@ -148,7 +148,6 @@ declare function createResourceBindings<TDataSchema extends BaseResourceDataSche
148
148
  hasPreviousPage: boolean;
149
149
  }, {
150
150
  items: {
151
- uri: string;
152
151
  data: {
153
152
  name: string;
154
153
  description?: string | undefined;
@@ -157,6 +156,7 @@ declare function createResourceBindings<TDataSchema extends BaseResourceDataSche
157
156
  name: string;
158
157
  description: string;
159
158
  };
159
+ uri: string;
160
160
  created_at?: string | undefined;
161
161
  updated_at?: string | undefined;
162
162
  created_by?: string | undefined;