@contentful/mcp-tools 0.2.2 → 0.2.4

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +316 -4
  2. package/dist/index.js +417 -308
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4300,7 +4300,132 @@ declare class ContentfulMcpTools {
4300
4300
  environmentId: zod.ZodString;
4301
4301
  } & {
4302
4302
  contentTypeId: zod.ZodString;
4303
- fields: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
4303
+ fields: zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodObject<{
4304
+ nodeType: zod.ZodLiteral<_contentful_rich_text_types.BLOCKS.DOCUMENT>;
4305
+ data: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
4306
+ content: zod.ZodArray<zod.ZodType<unknown, zod.ZodTypeDef, unknown>, "many">;
4307
+ }, "strip", zod.ZodTypeAny, {
4308
+ data: Record<string, any>;
4309
+ content: unknown[];
4310
+ nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
4311
+ }, {
4312
+ content: unknown[];
4313
+ nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
4314
+ data?: Record<string, any> | undefined;
4315
+ }>, zod.ZodObject<{
4316
+ sys: zod.ZodObject<{
4317
+ type: zod.ZodLiteral<"Link">;
4318
+ linkType: zod.ZodEnum<["Entry", "Asset"]>;
4319
+ id: zod.ZodString;
4320
+ }, "strip", zod.ZodTypeAny, {
4321
+ type: "Link";
4322
+ id: string;
4323
+ linkType: "Entry" | "Asset";
4324
+ }, {
4325
+ type: "Link";
4326
+ id: string;
4327
+ linkType: "Entry" | "Asset";
4328
+ }>;
4329
+ }, "strip", zod.ZodTypeAny, {
4330
+ sys: {
4331
+ type: "Link";
4332
+ id: string;
4333
+ linkType: "Entry" | "Asset";
4334
+ };
4335
+ }, {
4336
+ sys: {
4337
+ type: "Link";
4338
+ id: string;
4339
+ linkType: "Entry" | "Asset";
4340
+ };
4341
+ }>, zod.ZodObject<{
4342
+ sys: zod.ZodObject<{
4343
+ type: zod.ZodLiteral<"ResourceLink">;
4344
+ linkType: zod.ZodString;
4345
+ urn: zod.ZodString;
4346
+ }, "strip", zod.ZodTypeAny, {
4347
+ type: "ResourceLink";
4348
+ linkType: string;
4349
+ urn: string;
4350
+ }, {
4351
+ type: "ResourceLink";
4352
+ linkType: string;
4353
+ urn: string;
4354
+ }>;
4355
+ }, "strip", zod.ZodTypeAny, {
4356
+ sys: {
4357
+ type: "ResourceLink";
4358
+ linkType: string;
4359
+ urn: string;
4360
+ };
4361
+ }, {
4362
+ sys: {
4363
+ type: "ResourceLink";
4364
+ linkType: string;
4365
+ urn: string;
4366
+ };
4367
+ }>, zod.ZodObject<{
4368
+ lat: zod.ZodNumber;
4369
+ lon: zod.ZodNumber;
4370
+ }, "strip", zod.ZodTypeAny, {
4371
+ lat: number;
4372
+ lon: number;
4373
+ }, {
4374
+ lat: number;
4375
+ lon: number;
4376
+ }>, zod.ZodArray<zod.ZodString, "many">, zod.ZodArray<zod.ZodObject<{
4377
+ sys: zod.ZodObject<{
4378
+ type: zod.ZodLiteral<"Link">;
4379
+ linkType: zod.ZodEnum<["Entry", "Asset"]>;
4380
+ id: zod.ZodString;
4381
+ }, "strip", zod.ZodTypeAny, {
4382
+ type: "Link";
4383
+ id: string;
4384
+ linkType: "Entry" | "Asset";
4385
+ }, {
4386
+ type: "Link";
4387
+ id: string;
4388
+ linkType: "Entry" | "Asset";
4389
+ }>;
4390
+ }, "strip", zod.ZodTypeAny, {
4391
+ sys: {
4392
+ type: "Link";
4393
+ id: string;
4394
+ linkType: "Entry" | "Asset";
4395
+ };
4396
+ }, {
4397
+ sys: {
4398
+ type: "Link";
4399
+ id: string;
4400
+ linkType: "Entry" | "Asset";
4401
+ };
4402
+ }>, "many">, zod.ZodArray<zod.ZodObject<{
4403
+ sys: zod.ZodObject<{
4404
+ type: zod.ZodLiteral<"ResourceLink">;
4405
+ linkType: zod.ZodString;
4406
+ urn: zod.ZodString;
4407
+ }, "strip", zod.ZodTypeAny, {
4408
+ type: "ResourceLink";
4409
+ linkType: string;
4410
+ urn: string;
4411
+ }, {
4412
+ type: "ResourceLink";
4413
+ linkType: string;
4414
+ urn: string;
4415
+ }>;
4416
+ }, "strip", zod.ZodTypeAny, {
4417
+ sys: {
4418
+ type: "ResourceLink";
4419
+ linkType: string;
4420
+ urn: string;
4421
+ };
4422
+ }, {
4423
+ sys: {
4424
+ type: "ResourceLink";
4425
+ linkType: string;
4426
+ urn: string;
4427
+ };
4428
+ }>, "many">, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>>>;
4304
4429
  metadata: zod.ZodOptional<zod.ZodObject<{
4305
4430
  tags: zod.ZodArray<zod.ZodObject<{
4306
4431
  sys: zod.ZodObject<{
@@ -4397,7 +4522,38 @@ declare class ContentfulMcpTools {
4397
4522
  tool: (params: {
4398
4523
  spaceId: string;
4399
4524
  environmentId: string;
4400
- fields: Record<string, any>;
4525
+ fields: Record<string, Record<string, string | number | boolean | string[] | Record<string, any> | {
4526
+ data: Record<string, any>;
4527
+ content: unknown[];
4528
+ nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
4529
+ } | {
4530
+ sys: {
4531
+ type: "Link";
4532
+ id: string;
4533
+ linkType: "Entry" | "Asset";
4534
+ };
4535
+ } | {
4536
+ sys: {
4537
+ type: "ResourceLink";
4538
+ linkType: string;
4539
+ urn: string;
4540
+ };
4541
+ } | {
4542
+ lat: number;
4543
+ lon: number;
4544
+ } | {
4545
+ sys: {
4546
+ type: "Link";
4547
+ id: string;
4548
+ linkType: "Entry" | "Asset";
4549
+ };
4550
+ }[] | {
4551
+ sys: {
4552
+ type: "ResourceLink";
4553
+ linkType: string;
4554
+ urn: string;
4555
+ };
4556
+ }[]>>;
4401
4557
  contentTypeId: string;
4402
4558
  metadata?: {
4403
4559
  tags: {
@@ -4444,7 +4600,132 @@ declare class ContentfulMcpTools {
4444
4600
  environmentId: zod.ZodString;
4445
4601
  } & {
4446
4602
  entryId: zod.ZodString;
4447
- fields: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
4603
+ fields: zod.ZodRecord<zod.ZodString, zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean, zod.ZodObject<{
4604
+ nodeType: zod.ZodLiteral<_contentful_rich_text_types.BLOCKS.DOCUMENT>;
4605
+ data: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
4606
+ content: zod.ZodArray<zod.ZodType<unknown, zod.ZodTypeDef, unknown>, "many">;
4607
+ }, "strip", zod.ZodTypeAny, {
4608
+ data: Record<string, any>;
4609
+ content: unknown[];
4610
+ nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
4611
+ }, {
4612
+ content: unknown[];
4613
+ nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
4614
+ data?: Record<string, any> | undefined;
4615
+ }>, zod.ZodObject<{
4616
+ sys: zod.ZodObject<{
4617
+ type: zod.ZodLiteral<"Link">;
4618
+ linkType: zod.ZodEnum<["Entry", "Asset"]>;
4619
+ id: zod.ZodString;
4620
+ }, "strip", zod.ZodTypeAny, {
4621
+ type: "Link";
4622
+ id: string;
4623
+ linkType: "Entry" | "Asset";
4624
+ }, {
4625
+ type: "Link";
4626
+ id: string;
4627
+ linkType: "Entry" | "Asset";
4628
+ }>;
4629
+ }, "strip", zod.ZodTypeAny, {
4630
+ sys: {
4631
+ type: "Link";
4632
+ id: string;
4633
+ linkType: "Entry" | "Asset";
4634
+ };
4635
+ }, {
4636
+ sys: {
4637
+ type: "Link";
4638
+ id: string;
4639
+ linkType: "Entry" | "Asset";
4640
+ };
4641
+ }>, zod.ZodObject<{
4642
+ sys: zod.ZodObject<{
4643
+ type: zod.ZodLiteral<"ResourceLink">;
4644
+ linkType: zod.ZodString;
4645
+ urn: zod.ZodString;
4646
+ }, "strip", zod.ZodTypeAny, {
4647
+ type: "ResourceLink";
4648
+ linkType: string;
4649
+ urn: string;
4650
+ }, {
4651
+ type: "ResourceLink";
4652
+ linkType: string;
4653
+ urn: string;
4654
+ }>;
4655
+ }, "strip", zod.ZodTypeAny, {
4656
+ sys: {
4657
+ type: "ResourceLink";
4658
+ linkType: string;
4659
+ urn: string;
4660
+ };
4661
+ }, {
4662
+ sys: {
4663
+ type: "ResourceLink";
4664
+ linkType: string;
4665
+ urn: string;
4666
+ };
4667
+ }>, zod.ZodObject<{
4668
+ lat: zod.ZodNumber;
4669
+ lon: zod.ZodNumber;
4670
+ }, "strip", zod.ZodTypeAny, {
4671
+ lat: number;
4672
+ lon: number;
4673
+ }, {
4674
+ lat: number;
4675
+ lon: number;
4676
+ }>, zod.ZodArray<zod.ZodString, "many">, zod.ZodArray<zod.ZodObject<{
4677
+ sys: zod.ZodObject<{
4678
+ type: zod.ZodLiteral<"Link">;
4679
+ linkType: zod.ZodEnum<["Entry", "Asset"]>;
4680
+ id: zod.ZodString;
4681
+ }, "strip", zod.ZodTypeAny, {
4682
+ type: "Link";
4683
+ id: string;
4684
+ linkType: "Entry" | "Asset";
4685
+ }, {
4686
+ type: "Link";
4687
+ id: string;
4688
+ linkType: "Entry" | "Asset";
4689
+ }>;
4690
+ }, "strip", zod.ZodTypeAny, {
4691
+ sys: {
4692
+ type: "Link";
4693
+ id: string;
4694
+ linkType: "Entry" | "Asset";
4695
+ };
4696
+ }, {
4697
+ sys: {
4698
+ type: "Link";
4699
+ id: string;
4700
+ linkType: "Entry" | "Asset";
4701
+ };
4702
+ }>, "many">, zod.ZodArray<zod.ZodObject<{
4703
+ sys: zod.ZodObject<{
4704
+ type: zod.ZodLiteral<"ResourceLink">;
4705
+ linkType: zod.ZodString;
4706
+ urn: zod.ZodString;
4707
+ }, "strip", zod.ZodTypeAny, {
4708
+ type: "ResourceLink";
4709
+ linkType: string;
4710
+ urn: string;
4711
+ }, {
4712
+ type: "ResourceLink";
4713
+ linkType: string;
4714
+ urn: string;
4715
+ }>;
4716
+ }, "strip", zod.ZodTypeAny, {
4717
+ sys: {
4718
+ type: "ResourceLink";
4719
+ linkType: string;
4720
+ urn: string;
4721
+ };
4722
+ }, {
4723
+ sys: {
4724
+ type: "ResourceLink";
4725
+ linkType: string;
4726
+ urn: string;
4727
+ };
4728
+ }>, "many">, zod.ZodRecord<zod.ZodString, zod.ZodAny>]>>>;
4448
4729
  metadata: zod.ZodOptional<zod.ZodObject<{
4449
4730
  tags: zod.ZodArray<zod.ZodObject<{
4450
4731
  sys: zod.ZodObject<{
@@ -4541,7 +4822,38 @@ declare class ContentfulMcpTools {
4541
4822
  tool: (params: {
4542
4823
  spaceId: string;
4543
4824
  environmentId: string;
4544
- fields: Record<string, any>;
4825
+ fields: Record<string, Record<string, string | number | boolean | string[] | Record<string, any> | {
4826
+ data: Record<string, any>;
4827
+ content: unknown[];
4828
+ nodeType: _contentful_rich_text_types.BLOCKS.DOCUMENT;
4829
+ } | {
4830
+ sys: {
4831
+ type: "Link";
4832
+ id: string;
4833
+ linkType: "Entry" | "Asset";
4834
+ };
4835
+ } | {
4836
+ sys: {
4837
+ type: "ResourceLink";
4838
+ linkType: string;
4839
+ urn: string;
4840
+ };
4841
+ } | {
4842
+ lat: number;
4843
+ lon: number;
4844
+ } | {
4845
+ sys: {
4846
+ type: "Link";
4847
+ id: string;
4848
+ linkType: "Entry" | "Asset";
4849
+ };
4850
+ }[] | {
4851
+ sys: {
4852
+ type: "ResourceLink";
4853
+ linkType: string;
4854
+ urn: string;
4855
+ };
4856
+ }[]>>;
4545
4857
  entryId: string;
4546
4858
  metadata?: {
4547
4859
  tags: {