@seedprotocol/eas 0.5.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.
Files changed (57) hide show
  1. package/dist/EasClient/BaseEasClient.d.ts +16 -0
  2. package/dist/EasClient/BaseEasClient.d.ts.map +1 -0
  3. package/dist/EasClient/IEasClient.d.ts +5 -0
  4. package/dist/EasClient/IEasClient.d.ts.map +1 -0
  5. package/dist/QueryClient/BaseQueryClient.d.ts +9 -0
  6. package/dist/QueryClient/BaseQueryClient.d.ts.map +1 -0
  7. package/dist/QueryClient/IQueryClient.d.ts +15 -0
  8. package/dist/QueryClient/IQueryClient.d.ts.map +1 -0
  9. package/dist/QueryClient/IQueryClientFactory.d.ts +5 -0
  10. package/dist/QueryClient/IQueryClientFactory.d.ts.map +1 -0
  11. package/dist/api.d.ts +25 -0
  12. package/dist/api.d.ts.map +1 -0
  13. package/dist/constants-Ch1B4W2F.js +35 -0
  14. package/dist/constants-Ch1B4W2F.js.map +1 -0
  15. package/dist/constants.d.ts +5 -0
  16. package/dist/constants.d.ts.map +1 -0
  17. package/dist/easPropertyCanonical.d.ts +15 -0
  18. package/dist/easPropertyCanonical.d.ts.map +1 -0
  19. package/dist/easRevokedFilter.d.ts +10 -0
  20. package/dist/easRevokedFilter.d.ts.map +1 -0
  21. package/dist/easUid.d.ts +13 -0
  22. package/dist/easUid.d.ts.map +1 -0
  23. package/dist/graphql/fragments/Attestation.d.ts +2 -0
  24. package/dist/graphql/fragments/Attestation.d.ts.map +1 -0
  25. package/dist/graphql/fragments/Schema.d.ts +2 -0
  26. package/dist/graphql/fragments/Schema.d.ts.map +1 -0
  27. package/dist/graphql/fragments/index.d.ts +3 -0
  28. package/dist/graphql/fragments/index.d.ts.map +1 -0
  29. package/dist/graphql/gql/fragment-masking.d.ts +20 -0
  30. package/dist/graphql/gql/fragment-masking.d.ts.map +1 -0
  31. package/dist/graphql/gql/gql.d.ts +97 -0
  32. package/dist/graphql/gql/gql.d.ts.map +1 -0
  33. package/dist/graphql/gql/graphql.d.ts +2683 -0
  34. package/dist/graphql/gql/graphql.d.ts.map +1 -0
  35. package/dist/graphql/gql/index.d.ts +3 -0
  36. package/dist/graphql/gql/index.d.ts.map +1 -0
  37. package/dist/index.d.ts +16 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +2210 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/node/EasClient.d.ts +9 -0
  42. package/dist/node/EasClient.d.ts.map +1 -0
  43. package/dist/node/QueryClient.d.ts +8 -0
  44. package/dist/node/QueryClient.d.ts.map +1 -0
  45. package/dist/node/index.d.ts +5 -0
  46. package/dist/node/index.d.ts.map +1 -0
  47. package/dist/node.js +31 -0
  48. package/dist/node.js.map +1 -0
  49. package/dist/queries.d.ts +36 -0
  50. package/dist/queries.d.ts.map +1 -0
  51. package/dist/shims/typed-document-node.d.ts +5 -0
  52. package/dist/shims/typed-document-node.d.ts.map +1 -0
  53. package/dist/stores/schemaUidCache.d.ts +13 -0
  54. package/dist/stores/schemaUidCache.d.ts.map +1 -0
  55. package/dist/utils.d.ts +4 -0
  56. package/dist/utils.d.ts.map +1 -0
  57. package/package.json +57 -0
@@ -0,0 +1,16 @@
1
+ import type { Attestation } from '../graphql/gql/graphql.js';
2
+ import type { GraphQLClient } from 'graphql-request';
3
+ import type { IEasClient } from './IEasClient.js';
4
+ export declare abstract class BaseEasClient {
5
+ private static _impl;
6
+ static configure(impl: IEasClient): void;
7
+ private static requireImpl;
8
+ static getEasClient(): GraphQLClient;
9
+ /**
10
+ * @deprecated Prefer getSeedsBySchemaName from @seedprotocol/eas api helpers.
11
+ * Kept for API compatibility; not implemented by platform clients.
12
+ */
13
+ static getSeedsBySchemaName(_schemaName: string): Promise<Attestation[]>;
14
+ }
15
+ export { BaseEasClient as EasClient };
16
+ //# sourceMappingURL=BaseEasClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseEasClient.d.ts","sourceRoot":"","sources":["../../src/EasClient/BaseEasClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,8BAAsB,aAAa;IACjC,OAAO,CAAC,MAAM,CAAC,KAAK,CAA0B;IAE9C,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IASxC,OAAO,CAAC,MAAM,CAAC,WAAW;IAS1B,MAAM,CAAC,YAAY,IAAI,aAAa;IAIpC;;;OAGG;WACU,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAK/E;AAED,OAAO,EAAE,aAAa,IAAI,SAAS,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { GraphQLClient } from 'graphql-request';
2
+ export interface IEasClient {
3
+ getEasClient(): GraphQLClient;
4
+ }
5
+ //# sourceMappingURL=IEasClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IEasClient.d.ts","sourceRoot":"","sources":["../../src/EasClient/IEasClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD,MAAM,WAAW,UAAU;IACzB,YAAY,IAAI,aAAa,CAAA;CAC9B"}
@@ -0,0 +1,9 @@
1
+ import type { IQueryClient } from './IQueryClient.js';
2
+ import type { IQueryClientFactory } from './IQueryClientFactory.js';
3
+ export declare abstract class BaseQueryClient {
4
+ private static _impl;
5
+ static configure(impl: IQueryClientFactory): void;
6
+ private static requireImpl;
7
+ static getQueryClient(): IQueryClient;
8
+ }
9
+ //# sourceMappingURL=BaseQueryClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseQueryClient.d.ts","sourceRoot":"","sources":["../../src/QueryClient/BaseQueryClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,8BAAsB,eAAe;IACnC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAmC;IAEvD,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,mBAAmB,GAAG,IAAI;IASjD,OAAO,CAAC,MAAM,CAAC,WAAW;IAS1B,MAAM,CAAC,cAAc,IAAI,YAAY;CAGtC"}
@@ -0,0 +1,15 @@
1
+ type FetchQueryOptions<T = unknown> = {
2
+ queryKey: readonly unknown[];
3
+ queryFn: () => Promise<T>;
4
+ networkMode?: 'offlineFirst' | 'onlineOnly';
5
+ staleTime?: number;
6
+ };
7
+ export type { FetchQueryOptions };
8
+ export interface IQueryClient {
9
+ fetchQuery: <T>(options: FetchQueryOptions<T>) => Promise<T>;
10
+ getQueryData: (queryKey: readonly unknown[]) => unknown;
11
+ removeQueries: (filters: {
12
+ queryKey: readonly unknown[];
13
+ }) => Promise<void>;
14
+ }
15
+ //# sourceMappingURL=IQueryClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IQueryClient.d.ts","sourceRoot":"","sources":["../../src/QueryClient/IQueryClient.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI;IACpC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IAC5B,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAA;IACzB,WAAW,CAAC,EAAE,cAAc,GAAG,YAAY,CAAA;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,YAAY,EAAE,iBAAiB,EAAE,CAAA;AAEjC,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;IAC5D,YAAY,EAAE,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,KAAK,OAAO,CAAA;IACvD,aAAa,EAAE,CAAC,OAAO,EAAE;QAAE,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5E"}
@@ -0,0 +1,5 @@
1
+ import type { IQueryClient } from './IQueryClient.js';
2
+ export interface IQueryClientFactory {
3
+ getQueryClient(): IQueryClient;
4
+ }
5
+ //# sourceMappingURL=IQueryClientFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IQueryClientFactory.d.ts","sourceRoot":"","sources":["../../src/QueryClient/IQueryClientFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,WAAW,mBAAmB;IAClC,cAAc,IAAI,YAAY,CAAA;CAC/B"}
package/dist/api.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ import type { Attestation } from './graphql/gql/graphql.js';
2
+ export type { Attestation, Schema as EASSchema } from './graphql/gql/graphql.js';
3
+ export declare const getItemVersionsFromEas: ({ seedUids, excludeRevoked, }: {
4
+ seedUids: string[];
5
+ excludeRevoked?: boolean;
6
+ }) => Promise<Attestation[]>;
7
+ export declare const getItemPropertiesFromEas: ({ versionUids, excludeRevoked, }: {
8
+ versionUids: string[];
9
+ excludeRevoked?: boolean;
10
+ }) => Promise<Attestation[]>;
11
+ export declare const getCanonicalItemPropertiesFromEas: (props: {
12
+ versionUids: string[];
13
+ excludeRevoked?: boolean;
14
+ }) => Promise<Attestation[]>;
15
+ export declare const getEasSchemaUidBySchemaName: ({ schemaName, }: {
16
+ schemaName: string;
17
+ }) => Promise<string | undefined>;
18
+ export declare const getSeedsFromSchemaUids: ({ schemaUids, addresses, excludeRevoked, }: {
19
+ schemaUids: string[];
20
+ addresses: string[];
21
+ excludeRevoked?: boolean;
22
+ }) => Promise<Attestation[]>;
23
+ export declare const getSeedsBySchemaName: (schemaName: string, limit?: number, skip?: number) => Promise<Attestation[]>;
24
+ export declare const getSeedUidsBySchemaName: (schemaName: string, limit?: number) => Promise<string[]>;
25
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,0BAA0B,CAAA;AAEhF,YAAY,EAAE,WAAW,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEhF,eAAO,MAAM,sBAAsB,GAAU,+BAG1C;IACD,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,KAAG,OAAO,CAAC,WAAW,EAAE,CAiBxB,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAU,kCAG5C;IACD,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,KAAG,OAAO,CAAC,WAAW,EAAE,CAiBxB,CAAA;AAED,eAAO,MAAM,iCAAiC,GAAU,OAAO;IAC7D,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,KAAG,OAAO,CAAC,WAAW,EAAE,CAGxB,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAU,iBAE/C;IACD,UAAU,EAAE,MAAM,CAAA;CACnB,KAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAgC7B,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAU,4CAI1C;IACD,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,2BAsCA,CAAA;AAED,eAAO,MAAM,oBAAoB,GAC/B,YAAY,MAAM,EAClB,QAAO,MAAW,EAClB,OAAO,MAAM,2BA8Bd,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAU,YAAY,MAAM,EAAE,QAAO,MAAW,sBAGnF,CAAA"}
@@ -0,0 +1,35 @@
1
+ //#region src/EasClient/BaseEasClient.ts
2
+ var e = class e {
3
+ static _impl = null;
4
+ static configure(t) {
5
+ if (!t) throw Error("Cannot configure EasClient with undefined or null. Ensure the platform-specific EasClient is properly created.");
6
+ e._impl = t;
7
+ }
8
+ static requireImpl() {
9
+ if (!e._impl) throw Error("EasClient not configured. Import from @seedprotocol/eas/node to register the Node.js implementation, or ensure SDK platform init has run.");
10
+ return e._impl;
11
+ }
12
+ static getEasClient() {
13
+ return e.requireImpl().getEasClient();
14
+ }
15
+ static async getSeedsBySchemaName(e) {
16
+ throw Error("BaseEasClient.getSeedsBySchemaName is not implemented. Use getSeedsBySchemaName from @seedprotocol/eas instead.");
17
+ }
18
+ }, t = class e {
19
+ static _impl = null;
20
+ static configure(t) {
21
+ if (!t) throw Error("Cannot configure QueryClient with undefined or null. Ensure the platform-specific QueryClient is properly created.");
22
+ e._impl = t;
23
+ }
24
+ static requireImpl() {
25
+ if (!e._impl) throw Error("QueryClient not configured. Import from @seedprotocol/eas/node to register the Node.js implementation.");
26
+ return e._impl;
27
+ }
28
+ static getQueryClient() {
29
+ return e.requireImpl().getQueryClient();
30
+ }
31
+ }, n = "0x0000000000000000000000000000000000000000", r = "0x", i = "0x0000000000000000000000000000000000000000000000000000000000000000", a = typeof process < "u" && process.env?.NEXT_PUBLIC_EAS_ENDPOINT || typeof process < "u" && process.env?.EAS_ENDPOINT || "https://optimism-sepolia.easscan.org/graphql";
32
+ //#endregion
33
+ export { t as a, i, n, e as o, r, a as t };
34
+
35
+ //# sourceMappingURL=constants-Ch1B4W2F.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-Ch1B4W2F.js","names":[],"sources":["../src/EasClient/BaseEasClient.ts","../src/QueryClient/BaseQueryClient.ts","../src/constants.ts"],"sourcesContent":["import type { Attestation } from '../graphql/gql/graphql.js'\nimport type { GraphQLClient } from 'graphql-request'\nimport type { IEasClient } from './IEasClient.js'\n\nexport abstract class BaseEasClient {\n private static _impl: IEasClient | null = null\n\n static configure(impl: IEasClient): void {\n if (!impl) {\n throw new Error(\n 'Cannot configure EasClient with undefined or null. Ensure the platform-specific EasClient is properly created.',\n )\n }\n BaseEasClient._impl = impl\n }\n\n private static requireImpl(): IEasClient {\n if (!BaseEasClient._impl) {\n throw new Error(\n 'EasClient not configured. Import from @seedprotocol/eas/node to register the Node.js implementation, or ensure SDK platform init has run.',\n )\n }\n return BaseEasClient._impl\n }\n\n static getEasClient(): GraphQLClient {\n return BaseEasClient.requireImpl().getEasClient()\n }\n\n /**\n * @deprecated Prefer getSeedsBySchemaName from @seedprotocol/eas api helpers.\n * Kept for API compatibility; not implemented by platform clients.\n */\n static async getSeedsBySchemaName(_schemaName: string): Promise<Attestation[]> {\n throw new Error(\n 'BaseEasClient.getSeedsBySchemaName is not implemented. Use getSeedsBySchemaName from @seedprotocol/eas instead.',\n )\n }\n}\n\nexport { BaseEasClient as EasClient }\n","import type { IQueryClient } from './IQueryClient.js'\nimport type { IQueryClientFactory } from './IQueryClientFactory.js'\n\nexport abstract class BaseQueryClient {\n private static _impl: IQueryClientFactory | null = null\n\n static configure(impl: IQueryClientFactory): void {\n if (!impl) {\n throw new Error(\n 'Cannot configure QueryClient with undefined or null. Ensure the platform-specific QueryClient is properly created.',\n )\n }\n BaseQueryClient._impl = impl\n }\n\n private static requireImpl(): IQueryClientFactory {\n if (!BaseQueryClient._impl) {\n throw new Error(\n 'QueryClient not configured. Import from @seedprotocol/eas/node to register the Node.js implementation.',\n )\n }\n return BaseQueryClient._impl\n }\n\n static getQueryClient(): IQueryClient {\n return BaseQueryClient.requireImpl().getQueryClient()\n }\n}\n","export const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'\nexport const ZERO_BYTES = '0x'\nexport const ZERO_BYTES32 =\n '0x0000000000000000000000000000000000000000000000000000000000000000'\n\nexport const EAS_ENDPOINT =\n (typeof process !== 'undefined' && process.env?.NEXT_PUBLIC_EAS_ENDPOINT) ||\n (typeof process !== 'undefined' && process.env?.EAS_ENDPOINT) ||\n 'https://optimism-sepolia.easscan.org/graphql'\n"],"mappings":";AAIA,IAAsB,IAAtB,MAAsB,EAAc;CAClC,OAAe,QAA2B;CAE1C,OAAO,UAAU,GAAwB;EACvC,IAAI,CAAC,GACH,MAAU,MACR,gHACF;EAEF,EAAc,QAAQ;CACxB;CAEA,OAAe,cAA0B;EACvC,IAAI,CAAC,EAAc,OACjB,MAAU,MACR,2IACF;EAEF,OAAO,EAAc;CACvB;CAEA,OAAO,eAA8B;EACnC,OAAO,EAAc,YAAY,EAAE,aAAa;CAClD;CAMA,aAAa,qBAAqB,GAA6C;EAC7E,MAAU,MACR,iHACF;CACF;AACF,GCnCsB,IAAtB,MAAsB,EAAgB;CACpC,OAAe,QAAoC;CAEnD,OAAO,UAAU,GAAiC;EAChD,IAAI,CAAC,GACH,MAAU,MACR,oHACF;EAEF,EAAgB,QAAQ;CAC1B;CAEA,OAAe,cAAmC;EAChD,IAAI,CAAC,EAAgB,OACnB,MAAU,MACR,wGACF;EAEF,OAAO,EAAgB;CACzB;CAEA,OAAO,iBAA+B;EACpC,OAAO,EAAgB,YAAY,EAAE,eAAe;CACtD;AACF,GC3Ba,IAAe,8CACf,IAAa,MACb,IACX,sEAEW,IACV,OAAO,UAAY,OAAe,QAAQ,KAAK,4BAC/C,OAAO,UAAY,OAAe,QAAQ,KAAK,gBAChD"}
@@ -0,0 +1,5 @@
1
+ export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
2
+ export declare const ZERO_BYTES = "0x";
3
+ export declare const ZERO_BYTES32 = "0x0000000000000000000000000000000000000000000000000000000000000000";
4
+ export declare const EAS_ENDPOINT: string;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+CAA+C,CAAA;AACxE,eAAO,MAAM,UAAU,OAAO,CAAA;AAC9B,eAAO,MAAM,YAAY,uEAC6C,CAAA;AAEtE,eAAO,MAAM,YAAY,QAGuB,CAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * When multiple property attestations exist for the same Version (refUID) and schema
3
+ * (e.g. after a same-Version patch publish), the canonical value is the **newest**
4
+ * non-revoked attestation: greatest `timeCreated` per `(refUID, schemaId)`.
5
+ *
6
+ * Use this after `getItemPropertiesFromEas` (or any flat list) before displaying
7
+ * values or writing to DB so duplicate schemas resolve to one row.
8
+ */
9
+ export type AttestationLikeForCanonical = {
10
+ schemaId?: string | null;
11
+ timeCreated?: number | null;
12
+ refUID?: string | null;
13
+ };
14
+ export declare function pickLatestPropertyAttestationsByRefAndSchema<T extends AttestationLikeForCanonical>(attestations: T[]): T[];
15
+ //# sourceMappingURL=easPropertyCanonical.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"easPropertyCanonical.d.ts","sourceRoot":"","sources":["../src/easPropertyCanonical.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAA;AAED,wBAAgB,4CAA4C,CAC1D,CAAC,SAAS,2BAA2B,EACrC,YAAY,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAcxB"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Merges `revoked: { equals: false }` into an EAS AttestationWhereInput
3
+ * so revoked attestations are excluded from discovery/feed queries.
4
+ *
5
+ * Uses AND to combine with existing conditions without overwriting them.
6
+ */
7
+ export declare function withExcludeRevokedFilter<T extends Record<string, unknown>>(where: T): T & {
8
+ AND?: unknown[];
9
+ };
10
+ //# sourceMappingURL=easRevokedFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"easRevokedFilter.d.ts","sourceRoot":"","sources":["../src/easRevokedFilter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxE,KAAK,EAAE,CAAC,GACP,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,CAOzB"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * True when the value is not a real EAS attestation UID stored in SQLite
3
+ * (missing, empty, legacy 'NULL' sentinel, or zero bytes32).
4
+ */
5
+ export declare function isPlaceholderUid(value: string | null | undefined): boolean;
6
+ /**
7
+ * Strict EAS attestation UID: 0x-prefixed 32-byte hex (case-insensitive 0x / hex body).
8
+ * Excludes placeholders and ZERO_BYTES32.
9
+ */
10
+ export declare function isValidEasAttestationUid(value: string | null | undefined): boolean;
11
+ /** Normalize bytes32 hex strings for case-insensitive comparison (schema UIDs, etc.). */
12
+ export declare function normalizeBytes32Hex(value: string | null | undefined): string;
13
+ //# sourceMappingURL=easUid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"easUid.d.ts","sourceRoot":"","sources":["../src/easUid.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAO1E;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAOlF;AAED,yFAAyF;AACzF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAM5E"}
@@ -0,0 +1,2 @@
1
+ export declare const ATTESTATION_FIELDS: import("@graphql-typed-document-node/core").TypedDocumentNode<import("../gql/graphql").AttestationFieldsFragment, unknown>;
2
+ //# sourceMappingURL=Attestation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attestation.d.ts","sourceRoot":"","sources":["../../../src/graphql/fragments/Attestation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,4HAkB5B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const SCHEMA_FIELDS: import("@graphql-typed-document-node/core").TypedDocumentNode<import("../gql/graphql").SchemaFieldsFragment, unknown>;
2
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/graphql/fragments/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,uHAcvB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Attestation';
2
+ export * from './Schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/fragments/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
2
+ import type { Incremental } from './graphql';
3
+ export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
4
+ ' $fragmentName'?: infer TKey;
5
+ }] ? TKey extends string ? {
6
+ ' $fragmentRefs'?: {
7
+ [key in TKey]: TType;
8
+ };
9
+ } : never : never : never;
10
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>): TType;
11
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined): TType | undefined;
12
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null): TType | null;
13
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined): TType | null | undefined;
14
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>): Array<TType>;
15
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): Array<TType> | null | undefined;
16
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
17
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
18
+ export declare function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(data: FT, _fragment: F): FragmentType<F>;
19
+ export declare function isFragmentReady<TQuery, TFrag>(queryNode: DocumentTypeDecoration<TQuery, any>, fragmentNode: TypedDocumentNode<TFrag>, data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined): data is FragmentType<typeof fragmentNode>;
20
+ //# sourceMappingURL=fragment-masking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fragment-masking.d.ts","sourceRoot":"","sources":["../../../src/graphql/gql/fragment-masking.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAExG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,MAAM,MAAM,YAAY,CAAC,aAAa,SAAS,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EAC9C,YAAY,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACtC,IAAI,EAAE,YAAY,CAAC,iBAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAChF,IAAI,IAAI,YAAY,CAAC,OAAO,YAAY,CAAC,CAW3C"}
@@ -0,0 +1,97 @@
1
+ import * as types from './graphql';
2
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
3
+ /**
4
+ * Map of all GraphQL operations in the project.
5
+ *
6
+ * This map has several performance disadvantages:
7
+ * 1. It is not tree-shakeable, so it will include all operations in the project.
8
+ * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
9
+ * 3. It does not support dead code elimination, so it will add unused operations.
10
+ *
11
+ * Therefore it is highly recommended to use the babel or swc plugin for production.
12
+ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
13
+ */
14
+ type Documents = {
15
+ "\n fragment attestationFields on Attestation {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n schemaId\n txid\n timeCreated\n time\n isOffchain\n }\n": typeof types.AttestationFieldsFragmentDoc;
16
+ "\n fragment schemaFields on Schema {\n id\n resolver\n revocable\n schema\n index\n schemaNames {\n name\n }\n time\n txid\n creator\n }\n": typeof types.SchemaFieldsFragmentDoc;
17
+ "\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n": typeof types.GetSchemasDocument;
18
+ "\n query GetSchemaByName($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n": typeof types.GetSchemaByNameDocument;
19
+ "\n query GetSeeds($where: AttestationWhereInput!, $take: Int, $skip: Int) {\n itemSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }], take: $take, skip: $skip) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n revocationTime\n schemaId\n timeCreated\n isOffchain\n }\n }\n": typeof types.GetSeedsDocument;
20
+ "\n query GetSeedIds($where: AttestationWhereInput!) {\n itemSeedIds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n }\n }\n": typeof types.GetSeedIdsDocument;
21
+ "\n query GetStorageTransactionId($where: AttestationWhereInput!) {\n storageTransactionId: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n id\n decodedDataJson\n }\n }\n": typeof types.GetStorageTransactionIdDocument;
22
+ "\n query GetVersions($where: AttestationWhereInput!) {\n itemVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n": typeof types.GetVersionsDocument;
23
+ "\n query GetProperties($where: AttestationWhereInput!) {\n itemProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n": typeof types.GetPropertiesDocument;
24
+ "\n query GetAllPropertiesForAllVersions($where: AttestationWhereInput!) {\n allProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n": typeof types.GetAllPropertiesForAllVersionsDocument;
25
+ "\n query GetFilesMetadata($where: AttestationWhereInput!) {\n filesMetadata: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n": typeof types.GetFilesMetadataDocument;
26
+ "\n query GetImageSeeds($where: AttestationWhereInput!) {\n imageSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n schemaId\n txid\n timeCreated\n time\n isOffchain\n }\n }\n": typeof types.GetImageSeedsDocument;
27
+ "\n query GetImageVersions($where: AttestationWhereInput!) {\n imageVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n": typeof types.GetImageVersionsDocument;
28
+ };
29
+ declare const documents: Documents;
30
+ /**
31
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
32
+ *
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
37
+ * ```
38
+ *
39
+ * The query argument is unknown!
40
+ * Please regenerate the types.
41
+ */
42
+ export declare function graphql(source: string): unknown;
43
+ /**
44
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
45
+ */
46
+ export declare function graphql(source: "\n fragment attestationFields on Attestation {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n schemaId\n txid\n timeCreated\n time\n isOffchain\n }\n"): (typeof documents)["\n fragment attestationFields on Attestation {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n schemaId\n txid\n timeCreated\n time\n isOffchain\n }\n"];
47
+ /**
48
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
49
+ */
50
+ export declare function graphql(source: "\n fragment schemaFields on Schema {\n id\n resolver\n revocable\n schema\n index\n schemaNames {\n name\n }\n time\n txid\n creator\n }\n"): (typeof documents)["\n fragment schemaFields on Schema {\n id\n resolver\n revocable\n schema\n index\n schemaNames {\n name\n }\n time\n txid\n creator\n }\n"];
51
+ /**
52
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
53
+ */
54
+ export declare function graphql(source: "\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n"): (typeof documents)["\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n"];
55
+ /**
56
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
57
+ */
58
+ export declare function graphql(source: "\n query GetSchemaByName($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n"): (typeof documents)["\n query GetSchemaByName($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n"];
59
+ /**
60
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
61
+ */
62
+ export declare function graphql(source: "\n query GetSeeds($where: AttestationWhereInput!, $take: Int, $skip: Int) {\n itemSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }], take: $take, skip: $skip) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n revocationTime\n schemaId\n timeCreated\n isOffchain\n }\n }\n"): (typeof documents)["\n query GetSeeds($where: AttestationWhereInput!, $take: Int, $skip: Int) {\n itemSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }], take: $take, skip: $skip) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n revocationTime\n schemaId\n timeCreated\n isOffchain\n }\n }\n"];
63
+ /**
64
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
65
+ */
66
+ export declare function graphql(source: "\n query GetSeedIds($where: AttestationWhereInput!) {\n itemSeedIds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n }\n }\n"): (typeof documents)["\n query GetSeedIds($where: AttestationWhereInput!) {\n itemSeedIds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n }\n }\n"];
67
+ /**
68
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
69
+ */
70
+ export declare function graphql(source: "\n query GetStorageTransactionId($where: AttestationWhereInput!) {\n storageTransactionId: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n id\n decodedDataJson\n }\n }\n"): (typeof documents)["\n query GetStorageTransactionId($where: AttestationWhereInput!) {\n storageTransactionId: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n id\n decodedDataJson\n }\n }\n"];
71
+ /**
72
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
73
+ */
74
+ export declare function graphql(source: "\n query GetVersions($where: AttestationWhereInput!) {\n itemVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"): (typeof documents)["\n query GetVersions($where: AttestationWhereInput!) {\n itemVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"];
75
+ /**
76
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
77
+ */
78
+ export declare function graphql(source: "\n query GetProperties($where: AttestationWhereInput!) {\n itemProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"): (typeof documents)["\n query GetProperties($where: AttestationWhereInput!) {\n itemProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"];
79
+ /**
80
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
81
+ */
82
+ export declare function graphql(source: "\n query GetAllPropertiesForAllVersions($where: AttestationWhereInput!) {\n allProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"): (typeof documents)["\n query GetAllPropertiesForAllVersions($where: AttestationWhereInput!) {\n allProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"];
83
+ /**
84
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
85
+ */
86
+ export declare function graphql(source: "\n query GetFilesMetadata($where: AttestationWhereInput!) {\n filesMetadata: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"): (typeof documents)["\n query GetFilesMetadata($where: AttestationWhereInput!) {\n filesMetadata: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"];
87
+ /**
88
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
89
+ */
90
+ export declare function graphql(source: "\n query GetImageSeeds($where: AttestationWhereInput!) {\n imageSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n schemaId\n txid\n timeCreated\n time\n isOffchain\n }\n }\n"): (typeof documents)["\n query GetImageSeeds($where: AttestationWhereInput!) {\n imageSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n schemaId\n txid\n timeCreated\n time\n isOffchain\n }\n }\n"];
91
+ /**
92
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
93
+ */
94
+ export declare function graphql(source: "\n query GetImageVersions($where: AttestationWhereInput!) {\n imageVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"): (typeof documents)["\n query GetImageVersions($where: AttestationWhereInput!) {\n imageVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"];
95
+ export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
96
+ export {};
97
+ //# sourceMappingURL=gql.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gql.d.ts","sourceRoot":"","sources":["../../../src/graphql/gql/gql.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,iBAAiB,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEtF;;;;;;;;;;GAUG;AACH,KAAK,SAAS,GAAG;IACb,gQAAgQ,EAAE,OAAO,KAAK,CAAC,4BAA4B,CAAC;IAC5S,iLAAiL,EAAE,OAAO,KAAK,CAAC,uBAAuB,CAAC;IACxN,6KAA6K,EAA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