@zodic/shared 0.0.130 → 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 +78 -78
- package/utils/index.ts +5 -5
package/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -308,93 +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
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
percentage: number;
|
|
341
|
-
}[];
|
|
342
|
-
description: string;
|
|
343
|
-
dominantElementId: number;
|
|
344
|
-
};
|
|
345
|
-
modes: {
|
|
346
|
-
modes: {
|
|
347
|
-
name: string;
|
|
348
|
-
percentage: number;
|
|
349
|
-
}[];
|
|
350
|
-
description: string;
|
|
351
|
-
dominantModeId: number;
|
|
352
|
-
};
|
|
353
|
-
hemisphere: {
|
|
354
|
-
eastWest: {
|
|
355
|
-
name: string;
|
|
356
|
-
id: number;
|
|
357
|
-
description: string;
|
|
358
|
-
};
|
|
359
|
-
northSouth: {
|
|
360
|
-
name: string;
|
|
361
|
-
id: number;
|
|
362
|
-
description: string;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
dominantSign: {
|
|
366
|
-
name: string;
|
|
367
|
-
percentage: number;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
planets: {
|
|
320
|
+
|
|
321
|
+
export type AstroKVData = {
|
|
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: {
|
|
371
340
|
name: string;
|
|
372
|
-
|
|
373
|
-
house: number | null;
|
|
374
|
-
degree: number;
|
|
375
|
-
retrograde: boolean;
|
|
376
|
-
signReport: string;
|
|
377
|
-
houseReport: string;
|
|
341
|
+
percentage: number;
|
|
378
342
|
}[];
|
|
379
|
-
|
|
343
|
+
description: string;
|
|
344
|
+
dominantElementId: number;
|
|
345
|
+
};
|
|
346
|
+
modes: {
|
|
347
|
+
modes: {
|
|
380
348
|
name: string;
|
|
381
|
-
|
|
382
|
-
house: number | null;
|
|
383
|
-
degree: number;
|
|
384
|
-
retrograde: boolean;
|
|
385
|
-
}[];
|
|
386
|
-
houses: {
|
|
387
|
-
house: number;
|
|
388
|
-
sign: string;
|
|
389
|
-
degree: number;
|
|
390
|
-
report: string;
|
|
391
|
-
}[];
|
|
392
|
-
aspects: {
|
|
393
|
-
aspectingPlanet: string;
|
|
394
|
-
aspectedPlanet: string;
|
|
395
|
-
type: string;
|
|
396
|
-
orb: number;
|
|
397
|
-
diff: number;
|
|
349
|
+
percentage: number;
|
|
398
350
|
}[];
|
|
351
|
+
description: string;
|
|
352
|
+
dominantModeId: number;
|
|
399
353
|
};
|
|
400
|
-
|
|
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: {
|
|
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
|
});
|