@secondlayer/subgraphs 7.1.0 → 7.2.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.ts CHANGED
@@ -390,6 +390,12 @@ type PrintEventPrints = Record<string, Record<string, PrintField>>;
390
390
  type PrintEventFields = FactoryScope & {
391
391
  type: "print_event";
392
392
  topic?: string;
393
+ /** Equality on top-level keys of the decoded print tuple, spelled as the
394
+ * contract prints them (`signer-manager`). A value matches the field's
395
+ * JSON form: principals `SP…`, uints as decimal strings, bools
396
+ * `"true"`/`"false"`, buffers `0x…`. An array is any-of; keys AND.
397
+ * Nested tuples and lists never match. */
398
+ where?: Record<string, string | readonly string[]>;
393
399
  };
394
400
  /**
395
401
  * Pinned to one or more contract ids with no trait — `prints` is required so
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ function defineSchema(schema) {
6
6
  return schema;
7
7
  }
8
8
  // src/validate.ts
9
+ import { PrintWhereSchema } from "@secondlayer/shared/schemas/webhooks";
9
10
  import { z } from "zod";
10
11
  var SubgraphNameSchema = z.string().min(1).max(63).regex(/^[a-z][a-z0-9-]*$/, "Must start with lowercase letter, contain only lowercase alphanumeric and hyphens");
11
12
  var SqlIdentifierSchema = z.string().min(1).max(63).regex(/^[a-z_][a-z0-9_]*$/i, "Must be a valid SQL identifier: start with a letter or underscore, then letters/digits/underscores only");
@@ -182,6 +183,7 @@ var SubgraphFilterUnion = z.discriminatedUnion("type", [
182
183
  type: z.literal("print_event"),
183
184
  contractId: contractIdField.optional(),
184
185
  topic: z.string().optional(),
186
+ where: PrintWhereSchema.optional(),
185
187
  prints: z.record(z.string(), z.record(z.string(), PrintFieldSchema)).optional(),
186
188
  ...traitScope,
187
189
  ...factoryScope
@@ -791,7 +793,7 @@ import { createHash } from "node:crypto";
791
793
  // package.json
792
794
  var package_default = {
793
795
  name: "@secondlayer/subgraphs",
794
- version: "7.1.0",
796
+ version: "7.2.0",
795
797
  description: "Describe the Stacks data you want as one TypeScript file; it fills itself and survives reorgs.",
796
798
  license: "MIT",
797
799
  repository: {
@@ -851,8 +853,8 @@ var package_default = {
851
853
  prepublishOnly: "bun run build"
852
854
  },
853
855
  dependencies: {
854
- "@secondlayer/shared": "^13.0.0",
855
- "@secondlayer/stacks": "^6.3.0",
856
+ "@secondlayer/shared": "^13.1.0",
857
+ "@secondlayer/stacks": "^6.4.0",
856
858
  "@secondlayer/verify": "^0.6.0",
857
859
  esbuild: "^0.28.2",
858
860
  kysely: "0.28.17",
@@ -2953,5 +2955,5 @@ export {
2953
2955
  validateSubgraphDefinition
2954
2956
  };
2955
2957
 
2956
- //# debugId=DC950AFB0608338264756E2164756E21
2958
+ //# debugId=A0749A4C359E248364756E2164756E21
2957
2959
  //# sourceMappingURL=index.js.map