@graphprotocol/hypergraph 0.5.0 → 0.6.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.
- package/dist/cli/Cli.js +1 -1
- package/dist/cli/bin.js +0 -0
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/bun.js +0 -0
- package/dist/cli/services/Model.d.ts +99 -0
- package/dist/cli/services/Model.d.ts.map +1 -0
- package/dist/cli/services/Model.js +52 -0
- package/dist/cli/services/Model.js.map +1 -0
- package/dist/cli/services/Typesync.d.ts +7 -4
- package/dist/cli/services/Typesync.d.ts.map +1 -1
- package/dist/cli/services/Typesync.js +114 -6
- package/dist/cli/services/Typesync.js.map +1 -1
- package/dist/cli/services/Utils.d.ts +81 -0
- package/dist/cli/services/Utils.d.ts.map +1 -1
- package/dist/cli/services/Utils.js +198 -8
- package/dist/cli/services/Utils.js.map +1 -1
- package/dist/cli/subcommands/typesync.d.ts +13 -2
- package/dist/cli/subcommands/typesync.d.ts.map +1 -1
- package/dist/cli/subcommands/typesync.js +145 -21
- package/dist/cli/subcommands/typesync.js.map +1 -1
- package/dist/connect/login.d.ts.map +1 -1
- package/dist/connect/login.js +3 -0
- package/dist/connect/login.js.map +1 -1
- package/dist/connect/smart-account.d.ts +1 -1
- package/dist/connect/smart-account.d.ts.map +1 -1
- package/dist/connect/smart-account.js +5 -1
- package/dist/connect/smart-account.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mapping/Mapping.d.ts +24 -12
- package/dist/mapping/Mapping.d.ts.map +1 -1
- package/dist/mapping/Mapping.js +12 -4
- package/dist/mapping/Mapping.js.map +1 -1
- package/dist/typesync-studio/dist/assets/authenticate-callback-DN5-Vy9K.js +1 -0
- package/dist/typesync-studio/dist/assets/authenticate-callback-DN5-Vy9K.js.map +1 -0
- package/dist/typesync-studio/dist/assets/ccip-Dy0vD6Om.js +1 -0
- package/dist/typesync-studio/dist/assets/ccip-Dy0vD6Om.js.map +1 -0
- package/dist/typesync-studio/dist/assets/index-C9YLgP33.js +215 -0
- package/dist/typesync-studio/dist/assets/index-C9YLgP33.js.map +1 -0
- package/dist/typesync-studio/dist/assets/index-CgfQUe9o.js +88 -0
- package/dist/typesync-studio/dist/assets/index-CgfQUe9o.js.map +1 -0
- package/dist/typesync-studio/dist/assets/index-VJZgO5f3.css +1 -0
- package/dist/typesync-studio/dist/index.html +30 -0
- package/dist/typesync-studio/dist/manifest.json +20 -0
- package/dist/typesync-studio/dist/robots.txt +3 -0
- package/package.json +15 -8
- package/src/cli/Cli.ts +1 -1
- package/src/cli/bin.ts +0 -1
- package/src/cli/services/Model.ts +87 -0
- package/src/cli/services/Typesync.ts +154 -16
- package/src/cli/services/Utils.ts +231 -11
- package/src/cli/subcommands/typesync.ts +258 -42
- package/src/connect/login.ts +3 -0
- package/src/connect/smart-account.ts +6 -2
- package/src/index.ts +1 -0
- package/src/mapping/Mapping.ts +21 -6
|
@@ -157,10 +157,10 @@ export type Action = {
|
|
|
157
157
|
// We re-export these functions to allow creating sessions with policies for
|
|
158
158
|
// additional actions without needing the Rhinestone module SDK.
|
|
159
159
|
export {
|
|
160
|
-
getSudoPolicy,
|
|
161
|
-
getUniversalActionPolicy,
|
|
162
160
|
getSpendingLimitsPolicy,
|
|
161
|
+
getSudoPolicy,
|
|
163
162
|
getTimeFramePolicy,
|
|
163
|
+
getUniversalActionPolicy,
|
|
164
164
|
getUsageLimitPolicy,
|
|
165
165
|
getValueLimitPolicy,
|
|
166
166
|
};
|
|
@@ -440,16 +440,20 @@ export const smartAccountNeedsUpdate = async (
|
|
|
440
440
|
chain: Chain,
|
|
441
441
|
rpcUrl: string,
|
|
442
442
|
): Promise<boolean> => {
|
|
443
|
+
console.log('entering smartAccountNeedsUpdate');
|
|
443
444
|
if (chain.id === GEO_TESTNET.id) {
|
|
444
445
|
// We don't have the smart sessions module deployed on testnet yet, so we need to use the legacy smart account wallet client
|
|
445
446
|
// TODO: remove this once we have the smart sessions module deployed on testnet
|
|
447
|
+
console.log('leaving smartAccountNeedsUpdate A');
|
|
446
448
|
return false;
|
|
447
449
|
}
|
|
448
450
|
// If we haven't deployed the smart account, we would always deploy an updated version
|
|
449
451
|
if (!(await isSmartAccountDeployed(smartAccountClient))) {
|
|
452
|
+
console.log('leaving smartAccountNeedsUpdate B');
|
|
450
453
|
return false;
|
|
451
454
|
}
|
|
452
455
|
const updateStatus = await legacySmartAccountUpdateStatus(smartAccountClient, chain, rpcUrl);
|
|
456
|
+
console.log('leaving smartAccountNeedsUpdate C');
|
|
453
457
|
return !updateStatus.has7579Module || !updateStatus.hasSmartSessionsValidator || !updateStatus.hasOwnableValidator;
|
|
454
458
|
};
|
|
455
459
|
|
package/src/index.ts
CHANGED
package/src/mapping/Mapping.ts
CHANGED
|
@@ -129,12 +129,21 @@ export function getDataType(val: string): SchemaDataType {
|
|
|
129
129
|
}
|
|
130
130
|
throw new Error(`Passed dataType ${val} is not supported`);
|
|
131
131
|
}
|
|
132
|
+
|
|
133
|
+
const BaseSchemaTypeProperty = EffectSchema.Struct({
|
|
134
|
+
name: EffectSchema.NonEmptyTrimmedString,
|
|
135
|
+
knowledgeGraphId: EffectSchema.NullOr(EffectSchema.UUID),
|
|
136
|
+
/**
|
|
137
|
+
* @since 0.4.0
|
|
138
|
+
*/
|
|
139
|
+
optional: EffectSchema.optional(EffectSchema.NullishOr(EffectSchema.Boolean)),
|
|
140
|
+
});
|
|
141
|
+
|
|
132
142
|
/**
|
|
133
143
|
* @since 0.2.0
|
|
134
144
|
*/
|
|
135
145
|
export const SchemaTypePropertyRelation = EffectSchema.Struct({
|
|
136
|
-
|
|
137
|
-
knowledgeGraphId: EffectSchema.NullOr(EffectSchema.UUID),
|
|
146
|
+
...BaseSchemaTypeProperty.fields,
|
|
138
147
|
dataType: SchemaDataTypeRelation,
|
|
139
148
|
relationType: EffectSchema.NonEmptyTrimmedString.annotations({
|
|
140
149
|
identifier: 'SchemaTypePropertyRelation.relationType',
|
|
@@ -150,8 +159,7 @@ export type SchemaTypePropertyRelation = typeof SchemaTypePropertyRelation.Type;
|
|
|
150
159
|
* @since 0.2.0
|
|
151
160
|
*/
|
|
152
161
|
export const SchemaTypePropertyPrimitive = EffectSchema.Struct({
|
|
153
|
-
|
|
154
|
-
knowledgeGraphId: EffectSchema.NullOr(EffectSchema.UUID),
|
|
162
|
+
...BaseSchemaTypeProperty.fields,
|
|
155
163
|
dataType: SchemaDataTypePrimitive,
|
|
156
164
|
});
|
|
157
165
|
/**
|
|
@@ -217,7 +225,7 @@ export const Schema = EffectSchema.Struct({
|
|
|
217
225
|
{
|
|
218
226
|
name: 'Account',
|
|
219
227
|
knowledgeGraphId: null,
|
|
220
|
-
properties: [{ name: 'username', knowledgeGraphId: null, dataType: 'String' }],
|
|
228
|
+
properties: [{ name: 'username', optional: null, knowledgeGraphId: null, dataType: 'String' }],
|
|
221
229
|
},
|
|
222
230
|
],
|
|
223
231
|
},
|
|
@@ -226,7 +234,14 @@ export const Schema = EffectSchema.Struct({
|
|
|
226
234
|
{
|
|
227
235
|
name: 'Account',
|
|
228
236
|
knowledgeGraphId: 'a5fd07b1-120f-46c6-b46f-387ef98396a6',
|
|
229
|
-
properties: [
|
|
237
|
+
properties: [
|
|
238
|
+
{
|
|
239
|
+
name: 'name',
|
|
240
|
+
optional: true,
|
|
241
|
+
knowledgeGraphId: 'a126ca53-0c8e-48d5-b888-82c734c38935',
|
|
242
|
+
dataType: 'String',
|
|
243
|
+
},
|
|
244
|
+
],
|
|
230
245
|
},
|
|
231
246
|
],
|
|
232
247
|
},
|