@zodic/shared 0.0.131 → 0.0.132
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/package.json +1 -1
- package/types/scopes/generic.ts +76 -77
- package/utils/index.ts +5 -5
package/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -308,94 +308,93 @@ export type ControlNetConfig =
|
|
|
308
308
|
| {
|
|
309
309
|
initImageId: string;
|
|
310
310
|
initImageType: 'UPLOADED' | 'GENERATED';
|
|
311
|
-
preprocessorId: 100;
|
|
311
|
+
preprocessorId: 100;
|
|
312
312
|
strengthType: ControlNetStrenghtType;
|
|
313
313
|
}
|
|
314
314
|
| {
|
|
315
315
|
initImageId: string;
|
|
316
316
|
initImageType: 'UPLOADED' | 'GENERATED';
|
|
317
|
-
preprocessorId: 19;
|
|
317
|
+
preprocessorId: 19;
|
|
318
318
|
weight: number;
|
|
319
319
|
};
|
|
320
320
|
|
|
321
321
|
export type AstroKVData = {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
name: string;
|
|
341
|
-
percentage: number;
|
|
342
|
-
}[];
|
|
343
|
-
description: string;
|
|
344
|
-
dominantElementId: number;
|
|
345
|
-
};
|
|
346
|
-
modes: {
|
|
347
|
-
modes: {
|
|
348
|
-
name: string;
|
|
349
|
-
percentage: number;
|
|
350
|
-
}[];
|
|
351
|
-
description: string;
|
|
352
|
-
dominantModeId: number;
|
|
353
|
-
};
|
|
354
|
-
hemisphere: {
|
|
355
|
-
eastWest: {
|
|
356
|
-
name: string;
|
|
357
|
-
id: number;
|
|
358
|
-
description: string;
|
|
359
|
-
};
|
|
360
|
-
northSouth: {
|
|
361
|
-
name: string;
|
|
362
|
-
id: number;
|
|
363
|
-
description: string;
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
dominantSign: {
|
|
367
|
-
name: string;
|
|
368
|
-
percentage: number;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
planets: {
|
|
322
|
+
birthChart: {
|
|
323
|
+
wheelUrl: string;
|
|
324
|
+
planets: {
|
|
325
|
+
name: string;
|
|
326
|
+
sign: string;
|
|
327
|
+
house: number | null;
|
|
328
|
+
}[];
|
|
329
|
+
ascendant: {
|
|
330
|
+
sign: string;
|
|
331
|
+
};
|
|
332
|
+
moonPhase: {
|
|
333
|
+
name: string;
|
|
334
|
+
id: number;
|
|
335
|
+
calc: string;
|
|
336
|
+
description: string;
|
|
337
|
+
};
|
|
338
|
+
elements: {
|
|
339
|
+
elements: {
|
|
372
340
|
name: string;
|
|
373
|
-
|
|
374
|
-
house: number | null;
|
|
375
|
-
degree: number;
|
|
376
|
-
retrograde: boolean;
|
|
377
|
-
signReport: string;
|
|
378
|
-
houseReport: string;
|
|
341
|
+
percentage: number;
|
|
379
342
|
}[];
|
|
380
|
-
|
|
343
|
+
description: string;
|
|
344
|
+
dominantElementId: number;
|
|
345
|
+
};
|
|
346
|
+
modes: {
|
|
347
|
+
modes: {
|
|
381
348
|
name: string;
|
|
382
|
-
|
|
383
|
-
house: number | null;
|
|
384
|
-
degree: number;
|
|
385
|
-
retrograde: boolean;
|
|
386
|
-
}[];
|
|
387
|
-
houses: {
|
|
388
|
-
house: number;
|
|
389
|
-
sign: string;
|
|
390
|
-
degree: number;
|
|
391
|
-
report: string;
|
|
392
|
-
}[];
|
|
393
|
-
aspects: {
|
|
394
|
-
aspectingPlanet: string;
|
|
395
|
-
aspectedPlanet: string;
|
|
396
|
-
type: string;
|
|
397
|
-
orb: number;
|
|
398
|
-
diff: number;
|
|
349
|
+
percentage: number;
|
|
399
350
|
}[];
|
|
351
|
+
description: string;
|
|
352
|
+
dominantModeId: number;
|
|
353
|
+
};
|
|
354
|
+
hemisphere: {
|
|
355
|
+
eastWest: {
|
|
356
|
+
name: string;
|
|
357
|
+
id: number;
|
|
358
|
+
description: string;
|
|
359
|
+
};
|
|
360
|
+
northSouth: {
|
|
361
|
+
name: string;
|
|
362
|
+
id: number;
|
|
363
|
+
description: string;
|
|
364
|
+
};
|
|
400
365
|
};
|
|
401
|
-
|
|
366
|
+
dominantSign: {
|
|
367
|
+
name: string;
|
|
368
|
+
percentage: number;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
planets: {
|
|
372
|
+
name: string;
|
|
373
|
+
sign: string;
|
|
374
|
+
house: number | null;
|
|
375
|
+
degree: number;
|
|
376
|
+
retrograde: boolean;
|
|
377
|
+
signReport: string;
|
|
378
|
+
houseReport: string;
|
|
379
|
+
}[];
|
|
380
|
+
advancedPlanets: {
|
|
381
|
+
name: string;
|
|
382
|
+
sign: string;
|
|
383
|
+
house: number | null;
|
|
384
|
+
degree: number;
|
|
385
|
+
retrograde: boolean;
|
|
386
|
+
}[];
|
|
387
|
+
houses: {
|
|
388
|
+
house: number;
|
|
389
|
+
sign: string;
|
|
390
|
+
degree: number;
|
|
391
|
+
report: string;
|
|
392
|
+
}[];
|
|
393
|
+
aspects: {
|
|
394
|
+
aspectingPlanet: string;
|
|
395
|
+
aspectedPlanet: string;
|
|
396
|
+
type: string;
|
|
397
|
+
orb: number;
|
|
398
|
+
diff: number;
|
|
399
|
+
}[];
|
|
400
|
+
};
|
package/utils/index.ts
CHANGED
|
@@ -101,17 +101,17 @@ export const verifyToken = async (
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
export const providers: (c: AuthCtx) => Record<Provider, ProviderInfo> = () => ({
|
|
104
|
+
export const providers: (c: AuthCtx) => Record<Provider, ProviderInfo> = (c) => ({
|
|
105
105
|
google: {
|
|
106
106
|
serverUrl: 'https://accounts.google.com/o/oauth2/v2/auth',
|
|
107
|
-
clientId:
|
|
108
|
-
clientSecret:
|
|
107
|
+
clientId: c.env.GOOGLE_OAUTH_CLIENT_ID!,
|
|
108
|
+
clientSecret: c.env.GOOGLE_OAUTH_CLIENT_SECRET!,
|
|
109
109
|
resourceUrl: 'https://www.googleapis.com/oauth2/v2/userinfo',
|
|
110
110
|
},
|
|
111
111
|
facebook: {
|
|
112
112
|
serverUrl: 'https://www.facebook.com/v13.0/dialog/oauth',
|
|
113
|
-
clientId:
|
|
114
|
-
clientSecret:
|
|
113
|
+
clientId: c.env.FACEBOOK_OAUTH_CLIENT_ID!,
|
|
114
|
+
clientSecret: c.env.FACEBOOK_OAUTH_CLIENT_SECRET!,
|
|
115
115
|
resourceUrl: 'https://graph.facebook.com/me?fields=id,name,email,picture',
|
|
116
116
|
},
|
|
117
117
|
});
|