@carrot-foundation/schemas 2.0.0 → 3.0.0

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.d.cts CHANGED
@@ -1982,7 +1982,7 @@ declare const CreditPurchaseReceiptCreditSchema: z.ZodObject<{
1982
1982
  ipfs_uri: z.ZodString;
1983
1983
  smart_contract_address: z.ZodString;
1984
1984
  slug: z.ZodEnum<{
1985
- "carbon-methane": "carbon-methane";
1985
+ "carbon-ch4": "carbon-ch4";
1986
1986
  biowaste: "biowaste";
1987
1987
  }>;
1988
1988
  symbol: z.ZodEnum<{
@@ -2010,7 +2010,7 @@ declare const CreditPurchaseReceiptCertificateSchema: z.ZodObject<{
2010
2010
  token_id: z.ZodString;
2011
2011
  }, z.core.$strict>;
2012
2012
  credit_slug: z.ZodEnum<{
2013
- "carbon-methane": "carbon-methane";
2013
+ "carbon-ch4": "carbon-ch4";
2014
2014
  biowaste: "biowaste";
2015
2015
  }>;
2016
2016
  purchased_amount: z.ZodNumber;
@@ -2073,7 +2073,7 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
2073
2073
  ipfs_uri: z.ZodString;
2074
2074
  smart_contract_address: z.ZodString;
2075
2075
  slug: z.ZodEnum<{
2076
- "carbon-methane": "carbon-methane";
2076
+ "carbon-ch4": "carbon-ch4";
2077
2077
  biowaste: "biowaste";
2078
2078
  }>;
2079
2079
  symbol: z.ZodEnum<{
@@ -2100,7 +2100,7 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
2100
2100
  token_id: z.ZodString;
2101
2101
  }, z.core.$strict>;
2102
2102
  credit_slug: z.ZodEnum<{
2103
- "carbon-methane": "carbon-methane";
2103
+ "carbon-ch4": "carbon-ch4";
2104
2104
  biowaste: "biowaste";
2105
2105
  }>;
2106
2106
  purchased_amount: z.ZodNumber;
@@ -2232,7 +2232,7 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
2232
2232
  ipfs_uri: z.ZodString;
2233
2233
  smart_contract_address: z.ZodString;
2234
2234
  slug: z.ZodEnum<{
2235
- "carbon-methane": "carbon-methane";
2235
+ "carbon-ch4": "carbon-ch4";
2236
2236
  biowaste: "biowaste";
2237
2237
  }>;
2238
2238
  symbol: z.ZodEnum<{
@@ -2259,7 +2259,7 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
2259
2259
  token_id: z.ZodString;
2260
2260
  }, z.core.$strict>;
2261
2261
  credit_slug: z.ZodEnum<{
2262
- "carbon-methane": "carbon-methane";
2262
+ "carbon-ch4": "carbon-ch4";
2263
2263
  biowaste: "biowaste";
2264
2264
  }>;
2265
2265
  purchased_amount: z.ZodNumber;
@@ -2348,7 +2348,7 @@ declare const CreditRetirementReceiptCreditSchema: z.ZodObject<{
2348
2348
  ipfs_uri: z.ZodString;
2349
2349
  smart_contract_address: z.ZodString;
2350
2350
  slug: z.ZodEnum<{
2351
- "carbon-methane": "carbon-methane";
2351
+ "carbon-ch4": "carbon-ch4";
2352
2352
  biowaste: "biowaste";
2353
2353
  }>;
2354
2354
  symbol: z.ZodEnum<{
@@ -2363,7 +2363,7 @@ declare const CreditRetirementReceiptCertificateCreditSchema: z.ZodObject<{
2363
2363
  "C-BIOW": "C-BIOW";
2364
2364
  }>;
2365
2365
  credit_slug: z.ZodEnum<{
2366
- "carbon-methane": "carbon-methane";
2366
+ "carbon-ch4": "carbon-ch4";
2367
2367
  biowaste: "biowaste";
2368
2368
  }>;
2369
2369
  amount: z.ZodNumber;
@@ -2404,7 +2404,7 @@ declare const CreditRetirementReceiptCertificateSchema: z.ZodObject<{
2404
2404
  "C-BIOW": "C-BIOW";
2405
2405
  }>;
2406
2406
  credit_slug: z.ZodEnum<{
2407
- "carbon-methane": "carbon-methane";
2407
+ "carbon-ch4": "carbon-ch4";
2408
2408
  biowaste: "biowaste";
2409
2409
  }>;
2410
2410
  amount: z.ZodNumber;
@@ -2460,7 +2460,7 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
2460
2460
  ipfs_uri: z.ZodString;
2461
2461
  smart_contract_address: z.ZodString;
2462
2462
  slug: z.ZodEnum<{
2463
- "carbon-methane": "carbon-methane";
2463
+ "carbon-ch4": "carbon-ch4";
2464
2464
  biowaste: "biowaste";
2465
2465
  }>;
2466
2466
  symbol: z.ZodEnum<{
@@ -2501,7 +2501,7 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
2501
2501
  "C-BIOW": "C-BIOW";
2502
2502
  }>;
2503
2503
  credit_slug: z.ZodEnum<{
2504
- "carbon-methane": "carbon-methane";
2504
+ "carbon-ch4": "carbon-ch4";
2505
2505
  biowaste: "biowaste";
2506
2506
  }>;
2507
2507
  amount: z.ZodNumber;
@@ -2634,7 +2634,7 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
2634
2634
  ipfs_uri: z.ZodString;
2635
2635
  smart_contract_address: z.ZodString;
2636
2636
  slug: z.ZodEnum<{
2637
- "carbon-methane": "carbon-methane";
2637
+ "carbon-ch4": "carbon-ch4";
2638
2638
  biowaste: "biowaste";
2639
2639
  }>;
2640
2640
  symbol: z.ZodEnum<{
@@ -2675,7 +2675,7 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
2675
2675
  "C-BIOW": "C-BIOW";
2676
2676
  }>;
2677
2677
  credit_slug: z.ZodEnum<{
2678
- "carbon-methane": "carbon-methane";
2678
+ "carbon-ch4": "carbon-ch4";
2679
2679
  biowaste: "biowaste";
2680
2680
  }>;
2681
2681
  amount: z.ZodNumber;
@@ -2790,7 +2790,7 @@ declare const CreditSchema: z.ZodObject<{
2790
2790
  "C-BIOW": "C-BIOW";
2791
2791
  }>;
2792
2792
  slug: z.ZodEnum<{
2793
- "carbon-methane": "carbon-methane";
2793
+ "carbon-ch4": "carbon-ch4";
2794
2794
  biowaste: "biowaste";
2795
2795
  }>;
2796
2796
  name: z.ZodEnum<{
@@ -3560,7 +3560,7 @@ declare const CreditTokenNameSchema: z.ZodEnum<{
3560
3560
  }>;
3561
3561
  type CreditTokenName = z.infer<typeof CreditTokenNameSchema>;
3562
3562
  declare const CreditTokenSlugSchema: z.ZodEnum<{
3563
- "carbon-methane": "carbon-methane";
3563
+ "carbon-ch4": "carbon-ch4";
3564
3564
  biowaste: "biowaste";
3565
3565
  }>;
3566
3566
  type CreditTokenSlug = z.infer<typeof CreditTokenSlugSchema>;
@@ -3818,7 +3818,7 @@ declare const CreditReferenceSchema: z.ZodObject<{
3818
3818
  ipfs_uri: z.ZodString;
3819
3819
  smart_contract_address: z.ZodString;
3820
3820
  slug: z.ZodEnum<{
3821
- "carbon-methane": "carbon-methane";
3821
+ "carbon-ch4": "carbon-ch4";
3822
3822
  biowaste: "biowaste";
3823
3823
  }>;
3824
3824
  symbol: z.ZodEnum<{
package/dist/index.d.ts CHANGED
@@ -1982,7 +1982,7 @@ declare const CreditPurchaseReceiptCreditSchema: z.ZodObject<{
1982
1982
  ipfs_uri: z.ZodString;
1983
1983
  smart_contract_address: z.ZodString;
1984
1984
  slug: z.ZodEnum<{
1985
- "carbon-methane": "carbon-methane";
1985
+ "carbon-ch4": "carbon-ch4";
1986
1986
  biowaste: "biowaste";
1987
1987
  }>;
1988
1988
  symbol: z.ZodEnum<{
@@ -2010,7 +2010,7 @@ declare const CreditPurchaseReceiptCertificateSchema: z.ZodObject<{
2010
2010
  token_id: z.ZodString;
2011
2011
  }, z.core.$strict>;
2012
2012
  credit_slug: z.ZodEnum<{
2013
- "carbon-methane": "carbon-methane";
2013
+ "carbon-ch4": "carbon-ch4";
2014
2014
  biowaste: "biowaste";
2015
2015
  }>;
2016
2016
  purchased_amount: z.ZodNumber;
@@ -2073,7 +2073,7 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
2073
2073
  ipfs_uri: z.ZodString;
2074
2074
  smart_contract_address: z.ZodString;
2075
2075
  slug: z.ZodEnum<{
2076
- "carbon-methane": "carbon-methane";
2076
+ "carbon-ch4": "carbon-ch4";
2077
2077
  biowaste: "biowaste";
2078
2078
  }>;
2079
2079
  symbol: z.ZodEnum<{
@@ -2100,7 +2100,7 @@ declare const CreditPurchaseReceiptDataSchema: z.ZodObject<{
2100
2100
  token_id: z.ZodString;
2101
2101
  }, z.core.$strict>;
2102
2102
  credit_slug: z.ZodEnum<{
2103
- "carbon-methane": "carbon-methane";
2103
+ "carbon-ch4": "carbon-ch4";
2104
2104
  biowaste: "biowaste";
2105
2105
  }>;
2106
2106
  purchased_amount: z.ZodNumber;
@@ -2232,7 +2232,7 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
2232
2232
  ipfs_uri: z.ZodString;
2233
2233
  smart_contract_address: z.ZodString;
2234
2234
  slug: z.ZodEnum<{
2235
- "carbon-methane": "carbon-methane";
2235
+ "carbon-ch4": "carbon-ch4";
2236
2236
  biowaste: "biowaste";
2237
2237
  }>;
2238
2238
  symbol: z.ZodEnum<{
@@ -2259,7 +2259,7 @@ declare const CreditPurchaseReceiptIpfsSchema: z.ZodObject<{
2259
2259
  token_id: z.ZodString;
2260
2260
  }, z.core.$strict>;
2261
2261
  credit_slug: z.ZodEnum<{
2262
- "carbon-methane": "carbon-methane";
2262
+ "carbon-ch4": "carbon-ch4";
2263
2263
  biowaste: "biowaste";
2264
2264
  }>;
2265
2265
  purchased_amount: z.ZodNumber;
@@ -2348,7 +2348,7 @@ declare const CreditRetirementReceiptCreditSchema: z.ZodObject<{
2348
2348
  ipfs_uri: z.ZodString;
2349
2349
  smart_contract_address: z.ZodString;
2350
2350
  slug: z.ZodEnum<{
2351
- "carbon-methane": "carbon-methane";
2351
+ "carbon-ch4": "carbon-ch4";
2352
2352
  biowaste: "biowaste";
2353
2353
  }>;
2354
2354
  symbol: z.ZodEnum<{
@@ -2363,7 +2363,7 @@ declare const CreditRetirementReceiptCertificateCreditSchema: z.ZodObject<{
2363
2363
  "C-BIOW": "C-BIOW";
2364
2364
  }>;
2365
2365
  credit_slug: z.ZodEnum<{
2366
- "carbon-methane": "carbon-methane";
2366
+ "carbon-ch4": "carbon-ch4";
2367
2367
  biowaste: "biowaste";
2368
2368
  }>;
2369
2369
  amount: z.ZodNumber;
@@ -2404,7 +2404,7 @@ declare const CreditRetirementReceiptCertificateSchema: z.ZodObject<{
2404
2404
  "C-BIOW": "C-BIOW";
2405
2405
  }>;
2406
2406
  credit_slug: z.ZodEnum<{
2407
- "carbon-methane": "carbon-methane";
2407
+ "carbon-ch4": "carbon-ch4";
2408
2408
  biowaste: "biowaste";
2409
2409
  }>;
2410
2410
  amount: z.ZodNumber;
@@ -2460,7 +2460,7 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
2460
2460
  ipfs_uri: z.ZodString;
2461
2461
  smart_contract_address: z.ZodString;
2462
2462
  slug: z.ZodEnum<{
2463
- "carbon-methane": "carbon-methane";
2463
+ "carbon-ch4": "carbon-ch4";
2464
2464
  biowaste: "biowaste";
2465
2465
  }>;
2466
2466
  symbol: z.ZodEnum<{
@@ -2501,7 +2501,7 @@ declare const CreditRetirementReceiptDataSchema: z.ZodObject<{
2501
2501
  "C-BIOW": "C-BIOW";
2502
2502
  }>;
2503
2503
  credit_slug: z.ZodEnum<{
2504
- "carbon-methane": "carbon-methane";
2504
+ "carbon-ch4": "carbon-ch4";
2505
2505
  biowaste: "biowaste";
2506
2506
  }>;
2507
2507
  amount: z.ZodNumber;
@@ -2634,7 +2634,7 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
2634
2634
  ipfs_uri: z.ZodString;
2635
2635
  smart_contract_address: z.ZodString;
2636
2636
  slug: z.ZodEnum<{
2637
- "carbon-methane": "carbon-methane";
2637
+ "carbon-ch4": "carbon-ch4";
2638
2638
  biowaste: "biowaste";
2639
2639
  }>;
2640
2640
  symbol: z.ZodEnum<{
@@ -2675,7 +2675,7 @@ declare const CreditRetirementReceiptIpfsSchema: z.ZodObject<{
2675
2675
  "C-BIOW": "C-BIOW";
2676
2676
  }>;
2677
2677
  credit_slug: z.ZodEnum<{
2678
- "carbon-methane": "carbon-methane";
2678
+ "carbon-ch4": "carbon-ch4";
2679
2679
  biowaste: "biowaste";
2680
2680
  }>;
2681
2681
  amount: z.ZodNumber;
@@ -2790,7 +2790,7 @@ declare const CreditSchema: z.ZodObject<{
2790
2790
  "C-BIOW": "C-BIOW";
2791
2791
  }>;
2792
2792
  slug: z.ZodEnum<{
2793
- "carbon-methane": "carbon-methane";
2793
+ "carbon-ch4": "carbon-ch4";
2794
2794
  biowaste: "biowaste";
2795
2795
  }>;
2796
2796
  name: z.ZodEnum<{
@@ -3560,7 +3560,7 @@ declare const CreditTokenNameSchema: z.ZodEnum<{
3560
3560
  }>;
3561
3561
  type CreditTokenName = z.infer<typeof CreditTokenNameSchema>;
3562
3562
  declare const CreditTokenSlugSchema: z.ZodEnum<{
3563
- "carbon-methane": "carbon-methane";
3563
+ "carbon-ch4": "carbon-ch4";
3564
3564
  biowaste: "biowaste";
3565
3565
  }>;
3566
3566
  type CreditTokenSlug = z.infer<typeof CreditTokenSlugSchema>;
@@ -3818,7 +3818,7 @@ declare const CreditReferenceSchema: z.ZodObject<{
3818
3818
  ipfs_uri: z.ZodString;
3819
3819
  smart_contract_address: z.ZodString;
3820
3820
  slug: z.ZodEnum<{
3821
- "carbon-methane": "carbon-methane";
3821
+ "carbon-ch4": "carbon-ch4";
3822
3822
  biowaste: "biowaste";
3823
3823
  }>;
3824
3824
  symbol: z.ZodEnum<{
package/dist/index.js CHANGED
@@ -28230,10 +28230,10 @@ var CreditTokenNameSchema = z.enum(["Carrot Carbon (CH\u2084)", "Carrot Biowaste
28230
28230
  description: "Human-readable display name for the credit token",
28231
28231
  examples: ["Carrot Carbon (CH\u2084)", "Carrot Biowaste"]
28232
28232
  });
28233
- var CreditTokenSlugSchema = z.enum(["carbon-methane", "biowaste"]).meta({
28233
+ var CreditTokenSlugSchema = z.enum(["carbon-ch4", "biowaste"]).meta({
28234
28234
  title: "Credit Token Slug",
28235
28235
  description: "URL-friendly identifier for the credit token",
28236
- examples: ["carbon-methane", "biowaste"]
28236
+ examples: ["carbon-ch4", "biowaste"]
28237
28237
  });
28238
28238
  var CreditTokenSymbolSchema = z.enum(["C-CARB.CH4", "C-BIOW"]).meta({
28239
28239
  title: "Credit Token Symbol",
@@ -29484,7 +29484,7 @@ function buildSchemaUrl(schemaPath) {
29484
29484
  return `${getSchemaBaseUrl()}/${cleanPath}`;
29485
29485
  }
29486
29486
  function getSchemaVersionOrDefault() {
29487
- return "2.0.0";
29487
+ return "3.0.0";
29488
29488
  }
29489
29489
 
29490
29490
  // src/shared/schema-validation.ts