@milaboratories/pl-model-middle-layer 1.8.20 → 1.8.22

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 (37) hide show
  1. package/dist/block_meta/block_description.cjs +1 -1
  2. package/dist/block_meta/block_description.cjs.map +1 -1
  3. package/dist/block_meta/block_description.d.ts +876 -110
  4. package/dist/block_meta/block_description.d.ts.map +1 -1
  5. package/dist/block_meta/block_description.js +1 -1
  6. package/dist/block_meta/block_description.js.map +1 -1
  7. package/dist/block_meta/block_manifest.cjs +1 -1
  8. package/dist/block_meta/block_manifest.cjs.map +1 -1
  9. package/dist/block_meta/block_manifest.d.ts +3801 -332
  10. package/dist/block_meta/block_manifest.d.ts.map +1 -1
  11. package/dist/block_meta/block_manifest.js +1 -1
  12. package/dist/block_meta/block_manifest.js.map +1 -1
  13. package/dist/block_meta/block_meta.cjs +1 -1
  14. package/dist/block_meta/block_meta.cjs.map +1 -1
  15. package/dist/block_meta/block_meta.d.ts +151 -93
  16. package/dist/block_meta/block_meta.d.ts.map +1 -1
  17. package/dist/block_meta/block_meta.js +1 -1
  18. package/dist/block_meta/block_meta.js.map +1 -1
  19. package/dist/block_registry/overview.cjs +8 -4
  20. package/dist/block_registry/overview.cjs.map +1 -1
  21. package/dist/block_registry/overview.d.ts +10103 -1144
  22. package/dist/block_registry/overview.d.ts.map +1 -1
  23. package/dist/block_registry/overview.js +7 -5
  24. package/dist/block_registry/overview.js.map +1 -1
  25. package/dist/index.cjs +2 -0
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/pframe/internal_api/http_helpers.cjs.map +1 -1
  29. package/dist/pframe/internal_api/http_helpers.d.ts +4 -1
  30. package/dist/pframe/internal_api/http_helpers.d.ts.map +1 -1
  31. package/dist/pframe/internal_api/http_helpers.js.map +1 -1
  32. package/package.json +4 -4
  33. package/src/block_meta/block_description.ts +1 -1
  34. package/src/block_meta/block_manifest.ts +1 -1
  35. package/src/block_meta/block_meta.ts +1 -1
  36. package/src/block_registry/overview.ts +9 -5
  37. package/src/pframe/internal_api/http_helpers.ts +4 -1
@@ -1 +1 @@
1
- {"version":3,"file":"block_manifest.d.ts","sourceRoot":"","sources":["../../src/block_meta/block_manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AACzF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4D,CAAC;AAC/F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,qDAAqD;AACrD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAW,EAAE;QAAE,EAAE,EAAE,WAAW,CAAA;KAAE,CAAA;CAAE,EACpF,QAAQ,EAAE,CAAC,EACX,UAAU,EAAE,MAAM,GACjB,CAAC,CAEH"}
@@ -24,7 +24,7 @@ const BlockPackManifest = z.object({
24
24
  description: BlockPackDescriptionManifest,
25
25
  timestamp: z.number().optional(),
26
26
  files: z.array(ManifestFileInfo)
27
- });
27
+ }).passthrough();
28
28
  const BlockPackManifestFile = 'manifest.json';
29
29
  function overrideManifestVersion(manifest, newVersion) {
30
30
  return R.mergeDeep(manifest, { description: { id: { version: newVersion } } });
@@ -1 +1 @@
1
- {"version":3,"file":"block_manifest.js","sources":["../../src/block_meta/block_manifest.ts"],"sourcesContent":["import { z } from 'zod';\nimport { BlockComponents } from './block_components';\nimport { ContentRelative, ContentRelativeBinary, ContentRelativeText } from './content_types';\nimport { CreateBlockPackDescriptionSchema } from './block_description';\nimport { BlockPackMeta } from './block_meta';\nimport * as R from 'remeda';\nimport { BlockPackId } from './block_id';\n\nexport const BlockComponentsManifest = BlockComponents(ContentRelative, ContentRelative);\nexport type BlockComponentsManifest = z.infer<typeof BlockComponentsManifest>;\n\nexport const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);\nexport type BlockPackMetaManifest = z.infer<typeof BlockPackMetaManifest>;\n\n/** Block description to be used in block manifest */\nexport const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(\n BlockComponentsManifest,\n BlockPackMetaManifest\n);\nexport type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;\n\nexport const Sha256Schema = z\n .string()\n .regex(/[0-9a-fA-F]/)\n .toUpperCase()\n .length(64); // 256 / 4 (bits per hex register);\n\nexport const ManifestFileInfo = z.object({\n name: z.string(),\n size: z.number().int(),\n sha256: Sha256Schema\n});\nexport type ManifestFileInfo = z.infer<typeof ManifestFileInfo>;\n\nexport const BlockPackManifest = z.object({\n schema: z.literal('v2'),\n description: BlockPackDescriptionManifest,\n timestamp: z.number().optional(),\n files: z.array(ManifestFileInfo)\n});\nexport type BlockPackManifest = z.infer<typeof BlockPackManifest>;\n\nexport const BlockPackManifestFile = 'manifest.json';\n\nexport function overrideManifestVersion<T extends { description: { id: BlockPackId } }>(\n manifest: T,\n newVersion: string\n): T {\n return R.mergeDeep(manifest, { description: { id: { version: newVersion } } }) as T;\n}\n"],"names":[],"mappings":";;;;;;;AAQO,MAAM,uBAAuB,GAAG,eAAe,CAAC,eAAe,EAAE,eAAe;AAGhF,MAAM,qBAAqB,GAAG,aAAa,CAAC,mBAAmB,EAAE,qBAAqB;AAG7F;AACO,MAAM,4BAA4B,GAAG,gCAAgC,CAC1E,uBAAuB,EACvB,qBAAqB;AAIhB,MAAM,YAAY,GAAG;AACzB,KAAA,MAAM;KACN,KAAK,CAAC,aAAa;AACnB,KAAA,WAAW;AACX,KAAA,MAAM,CAAC,EAAE,EAAE;AAEP,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;AACvC,IAAA,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;AAChB,IAAA,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;AACtB,IAAA,MAAM,EAAE;AACT,CAAA;AAGM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;AACxC,IAAA,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;AACvB,IAAA,WAAW,EAAE,4BAA4B;AACzC,IAAA,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;AAChC,IAAA,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB;AAChC,CAAA;AAGM,MAAM,qBAAqB,GAAG;AAE/B,SAAU,uBAAuB,CACrC,QAAW,EACX,UAAkB,EAAA;IAElB,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAM;AACrF;;;;"}
1
+ {"version":3,"file":"block_manifest.js","sources":["../../src/block_meta/block_manifest.ts"],"sourcesContent":["import { z } from 'zod';\nimport { BlockComponents } from './block_components';\nimport { ContentRelative, ContentRelativeBinary, ContentRelativeText } from './content_types';\nimport { CreateBlockPackDescriptionSchema } from './block_description';\nimport { BlockPackMeta } from './block_meta';\nimport * as R from 'remeda';\nimport { BlockPackId } from './block_id';\n\nexport const BlockComponentsManifest = BlockComponents(ContentRelative, ContentRelative);\nexport type BlockComponentsManifest = z.infer<typeof BlockComponentsManifest>;\n\nexport const BlockPackMetaManifest = BlockPackMeta(ContentRelativeText, ContentRelativeBinary);\nexport type BlockPackMetaManifest = z.infer<typeof BlockPackMetaManifest>;\n\n/** Block description to be used in block manifest */\nexport const BlockPackDescriptionManifest = CreateBlockPackDescriptionSchema(\n BlockComponentsManifest,\n BlockPackMetaManifest\n);\nexport type BlockPackDescriptionManifest = z.infer<typeof BlockPackDescriptionManifest>;\n\nexport const Sha256Schema = z\n .string()\n .regex(/[0-9a-fA-F]/)\n .toUpperCase()\n .length(64); // 256 / 4 (bits per hex register);\n\nexport const ManifestFileInfo = z.object({\n name: z.string(),\n size: z.number().int(),\n sha256: Sha256Schema\n});\nexport type ManifestFileInfo = z.infer<typeof ManifestFileInfo>;\n\nexport const BlockPackManifest = z.object({\n schema: z.literal('v2'),\n description: BlockPackDescriptionManifest,\n timestamp: z.number().optional(),\n files: z.array(ManifestFileInfo)\n}).passthrough();\nexport type BlockPackManifest = z.infer<typeof BlockPackManifest>;\n\nexport const BlockPackManifestFile = 'manifest.json';\n\nexport function overrideManifestVersion<T extends { description: { id: BlockPackId } }>(\n manifest: T,\n newVersion: string\n): T {\n return R.mergeDeep(manifest, { description: { id: { version: newVersion } } }) as T;\n}\n"],"names":[],"mappings":";;;;;;;AAQO,MAAM,uBAAuB,GAAG,eAAe,CAAC,eAAe,EAAE,eAAe;AAGhF,MAAM,qBAAqB,GAAG,aAAa,CAAC,mBAAmB,EAAE,qBAAqB;AAG7F;AACO,MAAM,4BAA4B,GAAG,gCAAgC,CAC1E,uBAAuB,EACvB,qBAAqB;AAIhB,MAAM,YAAY,GAAG;AACzB,KAAA,MAAM;KACN,KAAK,CAAC,aAAa;AACnB,KAAA,WAAW;AACX,KAAA,MAAM,CAAC,EAAE,EAAE;AAEP,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;AACvC,IAAA,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;AAChB,IAAA,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;AACtB,IAAA,MAAM,EAAE;AACT,CAAA;AAGM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;AACxC,IAAA,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;AACvB,IAAA,WAAW,EAAE,4BAA4B;AACzC,IAAA,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;AAChC,IAAA,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB;CAChC,CAAC,CAAC,WAAW;AAGP,MAAM,qBAAqB,GAAG;AAE/B,SAAU,uBAAuB,CACrC,QAAW,EACX,UAAkB,EAAA;IAElB,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAM;AACrF;;;;"}
@@ -18,7 +18,7 @@ function BlockPackMeta(longString, binary) {
18
18
  name: zod.z.string(),
19
19
  url: zod.z.string().url(),
20
20
  logo: binary.optional()
21
- }),
21
+ }).passthrough(),
22
22
  /**
23
23
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
24
24
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -1 +1 @@
1
- {"version":3,"file":"block_meta.cjs","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText\n} from './content_types';\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional()\n }),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional()\n });\n}\n\n// prettier-ignore\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":["z","DescriptionContentText","DescriptionContentBinary","ContentExplicitBase64","ContentExplicitBytes"],"mappings":";;;;;AAQM,SAAU,aAAa,CAG3B,UAA0B,EAAE,MAAkB,EAAA;IAC9C,OAAOA,KAAC,CAAC,MAAM,CAAC;A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BC,sCAAwB;AAI1B;AACO,MAAM,2BAA2B,GAAG,aAAa,CACtDF,KAAC,CAAC,MAAM,EAAE,EACVG,mCAAqB;AAIvB;AACO,MAAM,0BAA0B,GAAG,aAAa,CACrDH,KAAC,CAAC,MAAM,EAAE,EACVI,kCAAoB;;;;;;;"}
1
+ {"version":3,"file":"block_meta.cjs","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText\n} from './content_types';\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional()\n }).passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional()\n });\n}\n\n// prettier-ignore\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":["z","DescriptionContentText","DescriptionContentBinary","ContentExplicitBase64","ContentExplicitBytes"],"mappings":";;;;;AAQM,SAAU,aAAa,CAG3B,UAA0B,EAAE,MAAkB,EAAA;IAC9C,OAAOA,KAAC,CAAC,MAAM,CAAC;AACd,QAAA,KAAK,EAAEA,KAAC,CAAC,MAAM,EAAE;AACjB,QAAA,WAAW,EAAEA,KAAC,CAAC,MAAM,EAAE;AACvB,QAAA,eAAe,EAAE,UAAU,CAAC,QAAQ,EAAE;AACtC,QAAA,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE;AAChC,QAAA,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;QACvB,GAAG,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACjC,OAAO,EAAEA,KAAC,CAAC,KAAK,CAAC,CAACA,KAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;AACnE,QAAA,IAAI,EAAEA,KAAC,CAAC,KAAK,CAACA,KAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;AACpC,QAAA,YAAY,EAAEA,KAAC,CAAC,MAAM,CAAC;AACrB,YAAA,IAAI,EAAEA,KAAC,CAAC,MAAM,EAAE;AAChB,YAAA,GAAG,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;AACrB,YAAA,IAAI,EAAE,MAAM,CAAC,QAAQ;SACtB,CAAC,CAAC,WAAW,EAAE;AAChB;;;AAGG;AACH,QAAA,kBAAkB,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;AACzC;;AAEG;AACH,QAAA,UAAU,EAAEA,KAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;AAClC;;AAEG;QACH,iBAAiB,EAAEA,KAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ;AAC7C,KAAA,CAAC;AACJ;AAEA;AACO,MAAM,2BAA2B,GAAG,aAAa,CACtDC,oCAAsB,EACtBC,sCAAwB;AAI1B;AACO,MAAM,2BAA2B,GAAG,aAAa,CACtDF,KAAC,CAAC,MAAM,EAAE,EACVG,mCAAqB;AAIvB;AACO,MAAM,0BAA0B,GAAG,aAAa,CACrDH,KAAC,CAAC,MAAM,EAAE,EACVI,kCAAoB;;;;;;;"}
@@ -13,23 +13,15 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
13
13
  name: z.ZodString;
14
14
  url: z.ZodString;
15
15
  logo: z.ZodOptional<BinaryType>;
16
- }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
16
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
17
17
  name: z.ZodString;
18
18
  url: z.ZodString;
19
19
  logo: z.ZodOptional<BinaryType>;
20
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
20
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
21
21
  name: z.ZodString;
22
22
  url: z.ZodString;
23
23
  logo: z.ZodOptional<BinaryType>;
24
- }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
25
- name: z.ZodString;
26
- url: z.ZodString;
27
- logo: z.ZodOptional<BinaryType>;
28
- }>]: z.baseObjectInputType<{
29
- name: z.ZodString;
30
- url: z.ZodString;
31
- logo: z.ZodOptional<BinaryType>;
32
- }>[k_1]; }>;
24
+ }, z.ZodTypeAny, "passthrough">>;
33
25
  /**
34
26
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
35
27
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -43,7 +35,7 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
43
35
  * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
44
36
  */
45
37
  termsOfServiceUrl: z.ZodOptional<z.ZodString>;
46
- }, "strip", z.ZodTypeAny, { [k_2 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
38
+ }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
47
39
  title: z.ZodString;
48
40
  description: z.ZodString;
49
41
  longDescription: z.ZodOptional<LongStringType>;
@@ -57,23 +49,15 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
57
49
  name: z.ZodString;
58
50
  url: z.ZodString;
59
51
  logo: z.ZodOptional<BinaryType>;
60
- }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
61
- name: z.ZodString;
62
- url: z.ZodString;
63
- logo: z.ZodOptional<BinaryType>;
64
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
65
- name: z.ZodString;
66
- url: z.ZodString;
67
- logo: z.ZodOptional<BinaryType>;
68
- }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
52
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
69
53
  name: z.ZodString;
70
54
  url: z.ZodString;
71
55
  logo: z.ZodOptional<BinaryType>;
72
- }>]: z.baseObjectInputType<{
56
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
73
57
  name: z.ZodString;
74
58
  url: z.ZodString;
75
59
  logo: z.ZodOptional<BinaryType>;
76
- }>[k_1]; }>;
60
+ }, z.ZodTypeAny, "passthrough">>;
77
61
  /**
78
62
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
79
63
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -101,23 +85,15 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
101
85
  name: z.ZodString;
102
86
  url: z.ZodString;
103
87
  logo: z.ZodOptional<BinaryType>;
104
- }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
105
- name: z.ZodString;
106
- url: z.ZodString;
107
- logo: z.ZodOptional<BinaryType>;
108
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
88
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
109
89
  name: z.ZodString;
110
90
  url: z.ZodString;
111
91
  logo: z.ZodOptional<BinaryType>;
112
- }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
92
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
113
93
  name: z.ZodString;
114
94
  url: z.ZodString;
115
95
  logo: z.ZodOptional<BinaryType>;
116
- }>]: z.baseObjectInputType<{
117
- name: z.ZodString;
118
- url: z.ZodString;
119
- logo: z.ZodOptional<BinaryType>;
120
- }>[k_1]; }>;
96
+ }, z.ZodTypeAny, "passthrough">>;
121
97
  /**
122
98
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
123
99
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -131,7 +107,7 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
131
107
  * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
132
108
  */
133
109
  termsOfServiceUrl: z.ZodOptional<z.ZodString>;
134
- }>, any>[k_2]; }, { [k_1_1 in keyof z.baseObjectInputType<{
110
+ }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
135
111
  title: z.ZodString;
136
112
  description: z.ZodString;
137
113
  longDescription: z.ZodOptional<LongStringType>;
@@ -145,23 +121,15 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
145
121
  name: z.ZodString;
146
122
  url: z.ZodString;
147
123
  logo: z.ZodOptional<BinaryType>;
148
- }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
124
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
149
125
  name: z.ZodString;
150
126
  url: z.ZodString;
151
127
  logo: z.ZodOptional<BinaryType>;
152
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
128
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
153
129
  name: z.ZodString;
154
130
  url: z.ZodString;
155
131
  logo: z.ZodOptional<BinaryType>;
156
- }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
157
- name: z.ZodString;
158
- url: z.ZodString;
159
- logo: z.ZodOptional<BinaryType>;
160
- }>]: z.baseObjectInputType<{
161
- name: z.ZodString;
162
- url: z.ZodString;
163
- logo: z.ZodOptional<BinaryType>;
164
- }>[k_1]; }>;
132
+ }, z.ZodTypeAny, "passthrough">>;
165
133
  /**
166
134
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
167
135
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -189,23 +157,15 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
189
157
  name: z.ZodString;
190
158
  url: z.ZodString;
191
159
  logo: z.ZodOptional<BinaryType>;
192
- }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
193
- name: z.ZodString;
194
- url: z.ZodString;
195
- logo: z.ZodOptional<BinaryType>;
196
- }>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
160
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
197
161
  name: z.ZodString;
198
162
  url: z.ZodString;
199
163
  logo: z.ZodOptional<BinaryType>;
200
- }>, any>[k]; }, { [k_1 in keyof z.baseObjectInputType<{
164
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
201
165
  name: z.ZodString;
202
166
  url: z.ZodString;
203
167
  logo: z.ZodOptional<BinaryType>;
204
- }>]: z.baseObjectInputType<{
205
- name: z.ZodString;
206
- url: z.ZodString;
207
- logo: z.ZodOptional<BinaryType>;
208
- }>[k_1]; }>;
168
+ }, z.ZodTypeAny, "passthrough">>;
209
169
  /**
210
170
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
211
171
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -219,7 +179,7 @@ export declare function BlockPackMeta<const LongStringType extends z.ZodTypeAny,
219
179
  * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.
220
180
  */
221
181
  termsOfServiceUrl: z.ZodOptional<z.ZodString>;
222
- }>[k_1_1]; }>;
182
+ }>[k_1]; }>;
223
183
  export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
224
184
  title: z.ZodString;
225
185
  description: z.ZodString;
@@ -374,35 +334,89 @@ export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
374
334
  type: "absolute-file";
375
335
  file: string;
376
336
  }>]>]>>;
377
- }, "strip", z.ZodTypeAny, {
378
- url: string;
379
- name: string;
380
- logo?: {
337
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
338
+ name: z.ZodString;
339
+ url: z.ZodString;
340
+ logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
381
341
  type: "explicit-base64";
382
342
  content: string;
383
343
  mimeType: string;
384
344
  } | {
385
345
  type: "relative";
386
346
  path: string;
387
- } | {
347
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
348
+ type: z.ZodLiteral<"explicit-base64">;
349
+ mimeType: z.ZodString;
350
+ content: z.ZodString;
351
+ }, "strict", z.ZodTypeAny, {
352
+ type: "explicit-base64";
353
+ content: string;
354
+ mimeType: string;
355
+ }, {
356
+ type: "explicit-base64";
357
+ content: string;
358
+ mimeType: string;
359
+ }>, z.ZodObject<{
360
+ type: z.ZodLiteral<"relative">;
361
+ path: z.ZodString;
362
+ }, "strict", z.ZodTypeAny, {
363
+ type: "relative";
364
+ path: string;
365
+ }, {
366
+ type: "relative";
367
+ path: string;
368
+ }>, z.ZodObject<{
369
+ type: z.ZodLiteral<"absolute-file">;
370
+ file: z.ZodString;
371
+ }, "strict", z.ZodTypeAny, {
388
372
  type: "absolute-file";
389
373
  file: string;
390
- } | undefined;
391
- }, {
392
- url: string;
393
- name: string;
394
- logo?: string | {
374
+ }, {
375
+ type: "absolute-file";
376
+ file: string;
377
+ }>]>]>>;
378
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
379
+ name: z.ZodString;
380
+ url: z.ZodString;
381
+ logo: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, {
395
382
  type: "explicit-base64";
396
383
  content: string;
397
384
  mimeType: string;
398
385
  } | {
399
386
  type: "relative";
400
387
  path: string;
401
- } | {
388
+ }, string>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
389
+ type: z.ZodLiteral<"explicit-base64">;
390
+ mimeType: z.ZodString;
391
+ content: z.ZodString;
392
+ }, "strict", z.ZodTypeAny, {
393
+ type: "explicit-base64";
394
+ content: string;
395
+ mimeType: string;
396
+ }, {
397
+ type: "explicit-base64";
398
+ content: string;
399
+ mimeType: string;
400
+ }>, z.ZodObject<{
401
+ type: z.ZodLiteral<"relative">;
402
+ path: z.ZodString;
403
+ }, "strict", z.ZodTypeAny, {
404
+ type: "relative";
405
+ path: string;
406
+ }, {
407
+ type: "relative";
408
+ path: string;
409
+ }>, z.ZodObject<{
410
+ type: z.ZodLiteral<"absolute-file">;
411
+ file: z.ZodString;
412
+ }, "strict", z.ZodTypeAny, {
402
413
  type: "absolute-file";
403
414
  file: string;
404
- } | undefined;
405
- }>;
415
+ }, {
416
+ type: "absolute-file";
417
+ file: string;
418
+ }>]>]>>;
419
+ }, z.ZodTypeAny, "passthrough">>;
406
420
  /**
407
421
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
408
422
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -431,6 +445,8 @@ export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
431
445
  type: "absolute-file";
432
446
  file: string;
433
447
  } | undefined;
448
+ } & {
449
+ [k: string]: unknown;
434
450
  };
435
451
  title: string;
436
452
  description: string;
@@ -487,6 +503,8 @@ export declare const BlockPackMetaDescriptionRaw: z.ZodObject<{
487
503
  type: "absolute-file";
488
504
  file: string;
489
505
  } | undefined;
506
+ } & {
507
+ [k: string]: unknown;
490
508
  };
491
509
  title: string;
492
510
  description: string;
@@ -568,23 +586,39 @@ export declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
568
586
  content: string;
569
587
  mimeType: string;
570
588
  }>>;
571
- }, "strip", z.ZodTypeAny, {
572
- url: string;
573
- name: string;
574
- logo?: {
589
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
590
+ name: z.ZodString;
591
+ url: z.ZodString;
592
+ logo: z.ZodOptional<z.ZodObject<{
593
+ type: z.ZodLiteral<"explicit-base64">;
594
+ mimeType: z.ZodString;
595
+ content: z.ZodString;
596
+ }, "strict", z.ZodTypeAny, {
575
597
  type: "explicit-base64";
576
598
  content: string;
577
599
  mimeType: string;
578
- } | undefined;
579
- }, {
580
- url: string;
581
- name: string;
582
- logo?: {
600
+ }, {
583
601
  type: "explicit-base64";
584
602
  content: string;
585
603
  mimeType: string;
586
- } | undefined;
587
- }>;
604
+ }>>;
605
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
606
+ name: z.ZodString;
607
+ url: z.ZodString;
608
+ logo: z.ZodOptional<z.ZodObject<{
609
+ type: z.ZodLiteral<"explicit-base64">;
610
+ mimeType: z.ZodString;
611
+ content: z.ZodString;
612
+ }, "strict", z.ZodTypeAny, {
613
+ type: "explicit-base64";
614
+ content: string;
615
+ mimeType: string;
616
+ }, {
617
+ type: "explicit-base64";
618
+ content: string;
619
+ mimeType: string;
620
+ }>>;
621
+ }, z.ZodTypeAny, "passthrough">>;
588
622
  /**
589
623
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
590
624
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -607,6 +641,8 @@ export declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
607
641
  content: string;
608
642
  mimeType: string;
609
643
  } | undefined;
644
+ } & {
645
+ [k: string]: unknown;
610
646
  };
611
647
  title: string;
612
648
  description: string;
@@ -633,6 +669,8 @@ export declare const BlockPackMetaEmbeddedBase64: z.ZodObject<{
633
669
  content: string;
634
670
  mimeType: string;
635
671
  } | undefined;
672
+ } & {
673
+ [k: string]: unknown;
636
674
  };
637
675
  title: string;
638
676
  description: string;
@@ -690,23 +728,39 @@ export declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
690
728
  content: Uint8Array;
691
729
  mimeType: string;
692
730
  }>>;
693
- }, "strip", z.ZodTypeAny, {
694
- url: string;
695
- name: string;
696
- logo?: {
731
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
732
+ name: z.ZodString;
733
+ url: z.ZodString;
734
+ logo: z.ZodOptional<z.ZodObject<{
735
+ type: z.ZodLiteral<"explicit-bytes">;
736
+ mimeType: z.ZodString;
737
+ content: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
738
+ }, "strict", z.ZodTypeAny, {
697
739
  type: "explicit-bytes";
698
740
  content: Uint8Array;
699
741
  mimeType: string;
700
- } | undefined;
701
- }, {
702
- url: string;
703
- name: string;
704
- logo?: {
742
+ }, {
705
743
  type: "explicit-bytes";
706
744
  content: Uint8Array;
707
745
  mimeType: string;
708
- } | undefined;
709
- }>;
746
+ }>>;
747
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
748
+ name: z.ZodString;
749
+ url: z.ZodString;
750
+ logo: z.ZodOptional<z.ZodObject<{
751
+ type: z.ZodLiteral<"explicit-bytes">;
752
+ mimeType: z.ZodString;
753
+ content: z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>;
754
+ }, "strict", z.ZodTypeAny, {
755
+ type: "explicit-bytes";
756
+ content: Uint8Array;
757
+ mimeType: string;
758
+ }, {
759
+ type: "explicit-bytes";
760
+ content: Uint8Array;
761
+ mimeType: string;
762
+ }>>;
763
+ }, z.ZodTypeAny, "passthrough">>;
710
764
  /**
711
765
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
712
766
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -729,6 +783,8 @@ export declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
729
783
  content: Uint8Array;
730
784
  mimeType: string;
731
785
  } | undefined;
786
+ } & {
787
+ [k: string]: unknown;
732
788
  };
733
789
  title: string;
734
790
  description: string;
@@ -755,6 +811,8 @@ export declare const BlockPackMetaEmbeddedBytes: z.ZodObject<{
755
811
  content: Uint8Array;
756
812
  mimeType: string;
757
813
  } | undefined;
814
+ } & {
815
+ [k: string]: unknown;
758
816
  };
759
817
  title: string;
760
818
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"block_meta.d.ts","sourceRoot":"","sources":["../../src/block_meta/block_meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,wBAAgB,aAAa,CAC3B,KAAK,CAAC,cAAc,SAAS,CAAC,CAAC,UAAU,EACzC,KAAK,CAAC,UAAU,SAAS,CAAC,CAAC,UAAU,EACrC,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgB5C;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAXH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAXH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAXH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAXH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;cAGN;AAGD,eAAO,MAAM,2BAA2B;;;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AGG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBN,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAGtF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA/BnC;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBN,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -16,7 +16,7 @@ function BlockPackMeta(longString, binary) {
16
16
  name: z.string(),
17
17
  url: z.string().url(),
18
18
  logo: binary.optional()
19
- }),
19
+ }).passthrough(),
20
20
  /**
21
21
  * The order of blocks on the "marketplace" (higher values push block higher to the top of the list).
22
22
  * `undefined` value or absent field is treated exactly the same as number `0`.
@@ -1 +1 @@
1
- {"version":3,"file":"block_meta.js","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText\n} from './content_types';\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional()\n }),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional()\n });\n}\n\n// prettier-ignore\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":[],"mappings":";;;AAQM,SAAU,aAAa,CAG3B,UAA0B,EAAE,MAAkB,EAAA;IAC9C,OAAO,CAAC,CAAC,MAAM,CAAC;AACd,QAAA,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;AACjB,QAAA,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;AACvB,QAAA,eAAe,EAAE,UAAU,CAAC,QAAQ,EAAE;AACtC,QAAA,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE;AAChC,QAAA,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;QACvB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QACjC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;AACnE,QAAA,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;AACpC,QAAA,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;AACrB,YAAA,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;AAChB,YAAA,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;AACrB,YAAA,IAAI,EAAE,MAAM,CAAC,QAAQ;SACtB,CAAC;AACF;;;AAGG;AACH,QAAA,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;AACzC;;AAEG;AACH,QAAA,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;AAClC;;AAEG;QACH,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ;AAC7C,KAAA,CAAC;AACJ;AAEA;AACO,MAAM,2BAA2B,GAAG,aAAa,CACtD,sBAAsB,EACtB,wBAAwB;AAI1B;AACO,MAAM,2BAA2B,GAAG,aAAa,CACtD,CAAC,CAAC,MAAM,EAAE,EACV,qBAAqB;AAIvB;AACO,MAAM,0BAA0B,GAAG,aAAa,CACrD,CAAC,CAAC,MAAM,EAAE,EACV,oBAAoB;;;;"}
1
+ {"version":3,"file":"block_meta.js","sources":["../../src/block_meta/block_meta.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n ContentExplicitBase64,\n ContentExplicitBytes,\n DescriptionContentBinary,\n DescriptionContentText\n} from './content_types';\n\nexport function BlockPackMeta<\n const LongStringType extends z.ZodTypeAny,\n const BinaryType extends z.ZodTypeAny\n>(longString: LongStringType, binary: BinaryType) {\n return z.object({\n title: z.string(),\n description: z.string(),\n longDescription: longString.optional(),\n changelog: longString.optional(),\n logo: binary.optional(),\n url: z.string().url().optional(),\n docs: z.string().url().optional(),\n support: z.union([z.string().url(), z.string().email()]).optional(),\n tags: z.array(z.string()).optional(),\n organization: z.object({\n name: z.string(),\n url: z.string().url(),\n logo: binary.optional()\n }).passthrough(),\n /**\n * The order of blocks on the \"marketplace\" (higher values push block higher to the top of the list).\n * `undefined` value or absent field is treated exactly the same as number `0`.\n */\n marketplaceRanking: z.number().optional(),\n /**\n * If true, the block is deprecated and should not be used.\n */\n deprecated: z.boolean().optional(),\n /**\n * The URL to the Terms of Service for the block. If provided checkbox with link to this URL should be shown in order to add block.\n */\n termsOfServiceUrl: z.string().url().optional()\n });\n}\n\n// prettier-ignore\nexport const BlockPackMetaDescriptionRaw = BlockPackMeta(\n DescriptionContentText,\n DescriptionContentBinary\n);\nexport type BlockPackMetaDescriptionRaw = z.infer<typeof BlockPackMetaDescriptionRaw>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBase64 = BlockPackMeta(\n z.string(),\n ContentExplicitBase64\n);\nexport type BlockPackMetaEmbeddedBase64 = z.infer<typeof BlockPackMetaEmbeddedBase64>;\n\n// prettier-ignore\nexport const BlockPackMetaEmbeddedBytes = BlockPackMeta(\n z.string(),\n ContentExplicitBytes\n);\nexport type BlockPackMetaEmbeddedBytes = z.infer<typeof BlockPackMetaEmbeddedBytes>;\n"],"names":[],"mappings":";;;AAQM,SAAU,aAAa,CAG3B,UAA0B,EAAE,MAAkB,EAAA;IAC9C,OAAO,CAAC,CAAC,MAAM,CAAC;AACd,QAAA,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;AACjB,QAAA,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;AACvB,QAAA,eAAe,EAAE,UAAU,CAAC,QAAQ,EAAE;AACtC,QAAA,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE;AAChC,QAAA,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE;QACvB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,G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ockPackSpec,
22
22
  otherVersions: zod.z.array(semver.SemVer)
23
- });
23
+ }).passthrough();
24
24
  const AnyChannel = 'any';
25
25
  const StableChannel = 'stable';
26
26
  const VersionWithChannels = zod.z.object({
27
27
  version: semver.SemVer,
28
28
  channels: zod.z.array(zod.z.string())
29
- });
29
+ }).passthrough();
30
30
  /**
31
31
  * Information about specific block pack version.
32
32
  * */
@@ -35,16 +35,18 @@ const SingleBlockPackOverview = zod.z.object({
35
35
  meta: block_meta.BlockPackMetaEmbeddedBytes,
36
36
  featureFlags: block_description.FeatureFlags.optional(),
37
37
  spec: block_pack_spec.BlockPackSpec,
38
- });
38
+ }).passthrough();
39
39
  /**
40
40
  * Latest information about specific block pack. Contain information about latest version of the package.
41
41
  * */
42
- const BlockPackOverview = zod.z.object({
42
+ const BlockPackOverviewRaw = zod.z.object({
43
43
  id: block_id.BlockPackIdNoVersion,
44
44
  latestByChannel: zod.z.record(zod.z.string(), SingleBlockPackOverview),
45
45
  allVersions: zod.z.array(VersionWithChannels),
46
46
  registryId: zod.z.string()
47
47
  });
48
+ const BlockPackOverview = BlockPackOverviewRaw.passthrough();
49
+ const BlockPackOverviewNoRegistryId = BlockPackOverviewRaw.omit({ registryId: true }).passthrough();
48
50
  const RegistryStatus = registry_spec.RegistryEntry.extend({
49
51
  status: zod.z.union([zod.z.literal('online'), zod.z.literal('offline')])
50
52
  });
@@ -71,6 +73,8 @@ exports.AnyChannel = AnyChannel;
71
73
  exports.BlockPackListing = BlockPackListing;
72
74
  exports.BlockPackOverview = BlockPackOverview;
73
75
  exports.BlockPackOverviewLegacy = BlockPackOverviewLegacy;
76
+ exports.BlockPackOverviewNoRegistryId = BlockPackOverviewNoRegistryId;
77
+ exports.BlockPackOverviewRaw = BlockPackOverviewRaw;
74
78
  exports.RegistryStatus = RegistryStatus;
75
79
  exports.SingleBlockPackOverview = SingleBlockPackOverview;
76
80
  exports.StableChannel = StableChannel;
@@ -1 +1 @@
1
- {"version":3,"file":"overview.cjs","sources":["../../src/block_registry/overview.ts"],"sourcesContent":["import { z } from 'zod';\nimport {\n BlockPackId,\n BlockPackIdNoVersion,\n BlockPackMetaEmbeddedBytes,\n FeatureFlags,\n SemVer\n} from '../block_meta';\nimport { BlockPackFromRegistryV2, BlockPackSpec } from './block_pack_spec';\nimport { RegistryEntry } from './registry_spec';\n\n/**\n * Latest information about specific block pack. Contain information about latest version of the package.\n * */\nexport const BlockPackOverviewLegacy = z.object({\n registryId: z.string(),\n id: BlockPackId,\n meta: BlockPackMetaEmbeddedBytes,\n spec: BlockPackSpec,\n otherVersions: z.array(SemVer)\n});\nexport type BlockPackOverviewLegacy = z.infer<typeof BlockPackOverviewLegacy>;\n\nexport const AnyChannel = 'any';\nexport const StableChannel = 'stable';\n\nexport const VersionWithChannels = z.object({\n version: SemVer,\n channels: z.array(z.string())\n});\n\n/**\n * Information about specific block pack version.\n * */\nexport const SingleBlockPackOverview = z.object({\n id: BlockPackId,\n meta: BlockPackMetaEmbeddedBytes,\n featureFlags: FeatureFlags.optional(),\n spec: BlockPackSpec,\n});\nexport type SingleBlockPackOverview = z.infer<typeof SingleBlockPackOverview>;\n\n/**\n * Latest information about specific block pack. Contain information about latest version of the package.\n * */\nexport const BlockPackOverview = z.object({\n id: BlockPackIdNoVersion,\n latestByChannel: z.record(z.string(), SingleBlockPackOverview),\n allVersions: z.array(VersionWithChannels),\n registryId: z.string()\n});\nexport type BlockPackOverview = z.infer<typeof BlockPackOverview>;\n\nexport const RegistryStatus = RegistryEntry.extend({\n status: z.union([z.literal('online'), z.literal('offline')])\n});\nexport type RegistryStatus = z.infer<typeof RegistryStatus>;\n\nexport const BlockPackListing = z.object({\n registries: z.array(RegistryStatus),\n blockPacks: z.array(BlockPackOverview)\n});\nexport type BlockPackListing = z.infer<typeof BlockPackListing>;\n\nexport function blockPackOverviewToLegacy(bpo: BlockPackOverview): BlockPackOverviewLegacy {\n const mainChannel = bpo.latestByChannel[StableChannel] !== undefined ? StableChannel : AnyChannel;\n const latestOverview = bpo.latestByChannel[mainChannel];\n return {\n id: latestOverview.id,\n meta: latestOverview.meta,\n // so we only add stable channel specs to projects, to smooth the transition\n spec: { ...(latestOverview.spec as BlockPackFromRegistryV2), channel: StableChannel },\n otherVersions: bpo.allVersions\n .filter((v) => v.channels.indexOf(mainChannel) >= 0)\n .map((v) => v.version),\n registryId: bpo.registryId\n };\n}\n"],"names":["z","BlockPackId","BlockPackMetaEmbeddedBytes","BlockPackSpec","SemVer","FeatureFlags","BlockPackIdNoVersion","RegistryEntry"],"mappings":";;;;;;;;;;;;;AAWA;;AAEK;AACE,MAAM,uBAAuB,GAAGA,KAAC,CAAC,MAAM,CAAC;AAC9C,IAAA,UAAU,EAAEA,KAAC,CAAC,MAAM,EAAE;AACtB,IAAA,EAAE,EAAEC,oBAAW;AACf,IAAA,IAAI,EAAEC,qCAA0B;AAChC,IAAA,IAAI,EAAEC,6BAAa;AACnB,IAAA,aAAa,EAAEH,KAAC,CAAC,KAAK,CAACI,aAAM;AAC9B,CAAA;AAGM,MAAM,UAAU,GAAG;AACnB,MAAM,aAAa,GAAG;AAEtB,MAAM,mBAAmB,GAAGJ,KAAC,CAAC,MAAM,CAAC;AAC1C,IAAA,OAAO,EAAEI,aAAM;IACf,QAAQ,EAAEJ,KAAC,CAAC,KAAK,CAACA,KAAC,CAAC,MAAM,EAAE;AAC7B,CAAA;AAED;;AAEK;AACE,MAAM,uBAAuB,GAAGA,KAAC,CAAC,MAAM,CAAC;AAC9C,IAAA,EAAE,EAAEC,oBAAW;AACf,IAAA,IAAI,EAAEC,qCAA0B;AAChC,IAAA,YAAY,EAAEG,8BAAY,CAAC,QAAQ,EAAE;AACrC,IAAA,IAAI,EAAEF,6BAAa;AACpB,CAAA;AAGD;;AAEK;AACE,MAAM,iBAAiB,GAAGH,KAAC,CAAC,MAAM,CAAC;AACxC,IAAA,EAAE,EAAEM,6BAAoB;IACxB,eAAe,EAAEN,KAAC,CAAC,MAAM,CAACA,KAAC,CAAC,MAAM,EAAE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,\n BlockPackIdNoVersion,\n BlockPackMetaEmbeddedBytes,\n FeatureFlags,\n SemVer\n} from '../block_meta';\nimport { BlockPackFromRegistryV2, BlockPackSpec } from './block_pack_spec';\nimport { RegistryEntry } from './registry_spec';\n\n/**\n * Latest information about specific block pack. Contain information about latest version of the package.\n * */\nexport const BlockPackOverviewLegacy = z.object({\n registryId: z.string(),\n id: BlockPackId,\n meta: BlockPackMetaEmbeddedBytes,\n spec: BlockPackSpec,\n otherVersions: z.array(SemVer)\n}).passthrough();\nexport type BlockPackOverviewLegacy = z.infer<typeof BlockPackOverviewLegacy>;\n\nexport const AnyChannel = 'any';\nexport const StableChannel = 'stable';\n\nexport const VersionWithChannels = z.object({\n version: SemVer,\n channels: z.array(z.string())\n}).passthrough();\n\n/**\n * Information about specific block pack version.\n * */\nexport const SingleBlockPackOverview = z.object({\n id: BlockPackId,\n meta: BlockPackMetaEmbeddedBytes,\n featureFlags: FeatureFlags.optional(),\n spec: BlockPackSpec,\n}).passthrough();\nexport type SingleBlockPackOverview = z.infer<typeof SingleBlockPackOverview>;\n\n/**\n * Latest information about specific block pack. Contain information about latest version of the package.\n * */\nexport const BlockPackOverviewRaw = z.object({\n id: BlockPackIdNoVersion,\n latestByChannel: z.record(z.string(), SingleBlockPackOverview),\n allVersions: z.array(VersionWithChannels),\n registryId: z.string()\n})\nexport const BlockPackOverview = BlockPackOverviewRaw.passthrough();\nexport type BlockPackOverview = z.infer<typeof BlockPackOverview>;\n\nexport const BlockPackOverviewNoRegistryId = BlockPackOverviewRaw.omit({ registryId: true }).passthrough();\nexport type BlockPackOverviewNoRegistryId = z.infer<typeof BlockPackOverviewNoRegistryId>;\n\nexport const RegistryStatus = RegistryEntry.extend({\n status: z.union([z.literal('online'), z.literal('offline')])\n});\nexport type RegistryStatus = z.infer<typeof RegistryStatus>;\n\nexport const BlockPackListing = z.object({\n registries: z.array(RegistryStatus),\n blockPacks: z.array(BlockPackOverview)\n});\nexport type BlockPackListing = z.infer<typeof BlockPackListing>;\n\nexport function blockPackOverviewToLegacy(bpo: BlockPackOverview): BlockPackOverviewLegacy {\n const mainChannel = bpo.latestByChannel[StableChannel] !== undefined ? StableChannel : AnyChannel;\n const latestOverview = bpo.latestByChannel[mainChannel];\n return {\n id: latestOverview.id,\n meta: latestOverview.meta,\n // so we only add stable channel specs to projects, to smooth the transition\n spec: { ...(latestOverview.spec as BlockPackFromRegistryV2), channel: StableChannel },\n otherVersions: bpo.allVersions\n .filter((v) => v.channels.indexOf(mainChannel) >= 0)\n .map((v) => v.version),\n registryId: bpo.registryId\n };\n}\n"],"names":["z","BlockPackId","BlockPackMetaEmbeddedBytes","BlockPackSpec","SemVer","FeatureFlags","BlockPackIdNoVersion","RegistryEntry"],"mappings":";;;;;;;;;;;;;AAWA;;AAEK;AACE,MAAM,uBAAuB,GAAGA,KAAC,CAAC,MAAM,CAAC;AAC9C,IAAA,UAAU,EAAEA,KAAC,CAAC,MAAM,EAAE;AACtB,IAAA,EAAE,EAAEC,oBAAW;AACf,IAAA,IAAI,EAAEC,qCAA0B;AAChC,IAAA,IAAI,EAAEC,6BAAa;AACnB,IAAA,aAAa,EAAEH,KAAC,CAAC,KAAK,CAACI,aAAM;CAC9B,CAAC,CAAC,WAAW;AAGP,MAAM,UAAU,GAAG;AACnB,MAAM,aAAa,GAAG;AAEtB,MAAM,mBAAmB,GAAGJ,KAAC,CAAC,MAAM,CAAC;AAC1C,IAAA,OAAO,EAAEI,aAAM;IACf,QAAQ,EAAEJ,KAAC,CAAC,KAAK,CAACA,KAAC,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC,WAAW;AAEd;;AAEK;AACE,MAAM,uBAAuB,GAAGA,KAAC,CAAC,MAAM,CAAC;AAC9C,IAAA,EAAE,EAAEC,oBAAW;AACf,IAAA,IAAI,EAAEC,qCAA0B;AAChC,IAAA,YAAY,EAAEG,8BAAY,CAAC,QAAQ,EAAE;AACrC,IAAA,IAAI,EAAEF,6BAAa;CACpB,CAAC,CAAC,WAAW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