@comfyorg/account-core 1.0.0-alpha.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/LICENSE +21 -0
- package/dist/core/billing/balanceWatch.d.ts +35 -0
- package/dist/core/billing/balanceWatch.js +83 -0
- package/dist/core/billing/billingContracts.d.ts +123 -0
- package/dist/core/billing/billingContracts.js +11 -0
- package/dist/core/billing/billingErrorBody.d.ts +8 -0
- package/dist/core/billing/billingErrorBody.js +11 -0
- package/dist/core/billing/billingScope.d.ts +39 -0
- package/dist/core/billing/billingScope.js +45 -0
- package/dist/core/billing/capabilities.d.ts +70 -0
- package/dist/core/billing/capabilities.js +137 -0
- package/dist/core/billing/capabilityDenials.d.ts +26 -0
- package/dist/core/billing/capabilityDenials.js +43 -0
- package/dist/core/billing/challengeDriver.d.ts +22 -0
- package/dist/core/billing/challengeDriver.js +38 -0
- package/dist/core/billing/credentialedTransport.d.ts +35 -0
- package/dist/core/billing/credentialedTransport.js +53 -0
- package/dist/core/billing/credits.d.ts +43 -0
- package/dist/core/billing/credits.js +29 -0
- package/dist/core/billing/httpStatus.d.ts +7 -0
- package/dist/core/billing/httpStatus.js +25 -0
- package/dist/core/billing/index.d.ts +52 -0
- package/dist/core/billing/index.js +23 -0
- package/dist/core/billing/operationLifecycle.d.ts +77 -0
- package/dist/core/billing/operationLifecycle.js +547 -0
- package/dist/core/billing/operationPointer.d.ts +48 -0
- package/dist/core/billing/operationPointer.js +89 -0
- package/dist/core/billing/operationPolicy.d.ts +26 -0
- package/dist/core/billing/operationPolicy.js +51 -0
- package/dist/core/billing/operationState.d.ts +128 -0
- package/dist/core/billing/operationState.js +187 -0
- package/dist/core/billing/paymentCopy.d.ts +18 -0
- package/dist/core/billing/paymentCopy.js +47 -0
- package/dist/core/billing/paymentMethods.d.ts +40 -0
- package/dist/core/billing/paymentMethods.js +37 -0
- package/dist/core/billing/paymentProjection.d.ts +34 -0
- package/dist/core/billing/paymentProjection.js +56 -0
- package/dist/core/billing/plans.d.ts +44 -0
- package/dist/core/billing/plans.js +29 -0
- package/dist/core/billing/presentation.d.ts +20 -0
- package/dist/core/billing/presentation.js +10 -0
- package/dist/core/billing/scopedReader.d.ts +61 -0
- package/dist/core/billing/scopedReader.js +108 -0
- package/dist/core/billing/sharedRead.d.ts +33 -0
- package/dist/core/billing/sharedRead.js +59 -0
- package/dist/core/billing/status.d.ts +27 -0
- package/dist/core/billing/status.js +21 -0
- package/dist/core/billing/subscriptionCommands.d.ts +367 -0
- package/dist/core/billing/subscriptionCommands.js +263 -0
- package/dist/core/billing/topup.d.ts +113 -0
- package/dist/core/billing/topup.js +209 -0
- package/dist/core/billing/transport.d.ts +14 -0
- package/dist/core/billing/transport.js +106 -0
- package/dist/core/billing/transportExchange.d.ts +24 -0
- package/dist/core/billing/transportExchange.js +79 -0
- package/dist/core/boundedOperation.d.ts +16 -0
- package/dist/core/boundedOperation.js +12 -0
- package/dist/core/credentialCache.d.ts +41 -0
- package/dist/core/credentialCache.js +97 -0
- package/dist/core/customerRecovery.d.ts +39 -0
- package/dist/core/customerRecovery.js +79 -0
- package/dist/core/exchange.d.ts +50 -0
- package/dist/core/exchange.js +137 -0
- package/dist/core/identity.d.ts +21 -0
- package/dist/core/identity.js +16 -0
- package/dist/core/mintCoordinator.d.ts +18 -0
- package/dist/core/mintCoordinator.js +31 -0
- package/dist/core/refreshScheduler.d.ts +46 -0
- package/dist/core/refreshScheduler.js +262 -0
- package/dist/core/session.d.ts +146 -0
- package/dist/core/session.js +312 -0
- package/dist/core/sessionContracts.d.ts +135 -0
- package/dist/core/sessionContracts.js +9 -0
- package/dist/core/sessionState.d.ts +118 -0
- package/dist/core/sessionState.js +235 -0
- package/dist/firebase/index.d.ts +53 -0
- package/dist/firebase/index.js +74 -0
- package/dist/firebaseAuthError.d.ts +52 -0
- package/dist/firebaseAuthError.js +88 -0
- package/dist/loadExternalScript.d.ts +7 -0
- package/dist/loadExternalScript.js +88 -0
- package/dist/provisioning.d.ts +53 -0
- package/dist/provisioning.js +76 -0
- package/dist/redirect.d.ts +13 -0
- package/dist/redirect.js +38 -0
- package/dist/signInSchemas.d.ts +88 -0
- package/dist/signInSchemas.js +71 -0
- package/dist/telemetry.d.ts +39 -0
- package/dist/telemetry.js +26 -0
- package/dist/testing.d.ts +7 -0
- package/dist/testing.js +3 -0
- package/dist/turnstile.d.ts +14 -0
- package/dist/turnstile.js +17 -0
- package/dist/turnstileScript.d.ts +18 -0
- package/dist/turnstileScript.js +6 -0
- package/dist/web/crossTabRefresh.d.ts +18 -0
- package/dist/web/crossTabRefresh.js +121 -0
- package/dist/webviewDetection.d.ts +5 -0
- package/dist/webviewDetection.js +62 -0
- package/package.json +114 -0
package/package.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@comfyorg/account-core",
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
|
+
"description": "Shared account layer: a framework-free session core that exchanges a signed-in identity for the workspace-scoped Cloud JWT with valid-on-read freshness, plus the package-owned Firebase identity entry. It has no view layer and no Vue dependency; the composables and unstyled components ship from @comfyorg/account-ui",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"homepage": "https://comfy.org",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Comfy Org",
|
|
10
|
+
"email": "support@comfy.org",
|
|
11
|
+
"url": "https://www.comfy.org"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/Comfy-Org/ComfyUI_frontend.git",
|
|
16
|
+
"directory": "packages/account-core"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"exports": {
|
|
24
|
+
"./boundedOperation": {
|
|
25
|
+
"types": "./dist/core/boundedOperation.d.ts",
|
|
26
|
+
"import": "./dist/core/boundedOperation.js"
|
|
27
|
+
},
|
|
28
|
+
"./session": {
|
|
29
|
+
"types": "./dist/core/session.d.ts",
|
|
30
|
+
"import": "./dist/core/session.js"
|
|
31
|
+
},
|
|
32
|
+
"./billing": {
|
|
33
|
+
"types": "./dist/core/billing/index.d.ts",
|
|
34
|
+
"import": "./dist/core/billing/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./firebase": {
|
|
37
|
+
"types": "./dist/firebase/index.d.ts",
|
|
38
|
+
"import": "./dist/firebase/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./web": {
|
|
41
|
+
"types": "./dist/web/crossTabRefresh.d.ts",
|
|
42
|
+
"import": "./dist/web/crossTabRefresh.js"
|
|
43
|
+
},
|
|
44
|
+
"./testing": {
|
|
45
|
+
"types": "./dist/testing.d.ts",
|
|
46
|
+
"import": "./dist/testing.js"
|
|
47
|
+
},
|
|
48
|
+
"./customerRecovery": {
|
|
49
|
+
"types": "./dist/core/customerRecovery.d.ts",
|
|
50
|
+
"import": "./dist/core/customerRecovery.js"
|
|
51
|
+
},
|
|
52
|
+
"./signInSchemas": {
|
|
53
|
+
"types": "./dist/signInSchemas.d.ts",
|
|
54
|
+
"import": "./dist/signInSchemas.js"
|
|
55
|
+
},
|
|
56
|
+
"./turnstile": {
|
|
57
|
+
"types": "./dist/turnstile.d.ts",
|
|
58
|
+
"import": "./dist/turnstile.js"
|
|
59
|
+
},
|
|
60
|
+
"./turnstileScript": {
|
|
61
|
+
"types": "./dist/turnstileScript.d.ts",
|
|
62
|
+
"import": "./dist/turnstileScript.js"
|
|
63
|
+
},
|
|
64
|
+
"./firebaseAuthError": {
|
|
65
|
+
"types": "./dist/firebaseAuthError.d.ts",
|
|
66
|
+
"import": "./dist/firebaseAuthError.js"
|
|
67
|
+
},
|
|
68
|
+
"./provisioning": {
|
|
69
|
+
"types": "./dist/provisioning.d.ts",
|
|
70
|
+
"import": "./dist/provisioning.js"
|
|
71
|
+
},
|
|
72
|
+
"./redirect": {
|
|
73
|
+
"types": "./dist/redirect.d.ts",
|
|
74
|
+
"import": "./dist/redirect.js"
|
|
75
|
+
},
|
|
76
|
+
"./telemetry": {
|
|
77
|
+
"types": "./dist/telemetry.d.ts",
|
|
78
|
+
"import": "./dist/telemetry.js"
|
|
79
|
+
},
|
|
80
|
+
"./webviewDetection": {
|
|
81
|
+
"types": "./dist/webviewDetection.d.ts",
|
|
82
|
+
"import": "./dist/webviewDetection.js"
|
|
83
|
+
},
|
|
84
|
+
"./package.json": "./package.json"
|
|
85
|
+
},
|
|
86
|
+
"publishConfig": {
|
|
87
|
+
"access": "public"
|
|
88
|
+
},
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"@comfyorg/ingest-types": "^1.0.0"
|
|
91
|
+
},
|
|
92
|
+
"devDependencies": {
|
|
93
|
+
"@types/node": "^25.9.5",
|
|
94
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
95
|
+
"firebase": "^11.6.0",
|
|
96
|
+
"happy-dom": "20.9.0",
|
|
97
|
+
"typescript": "^6.0.3",
|
|
98
|
+
"vitest": "^4.1.11",
|
|
99
|
+
"zod": "^3.23.8"
|
|
100
|
+
},
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"firebase": "^11.6.0",
|
|
103
|
+
"zod": "^3.23.8"
|
|
104
|
+
},
|
|
105
|
+
"scripts": {
|
|
106
|
+
"build": "pnpm run clean && tsc -p tsconfig.build.json",
|
|
107
|
+
"check:pack": "tsx scripts/checkPublishable.ts",
|
|
108
|
+
"clean": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
|
|
109
|
+
"lint": "oxlint src --type-aware && eslint src",
|
|
110
|
+
"smoke:pack": "tsx scripts/smokePack.ts",
|
|
111
|
+
"test": "vitest run",
|
|
112
|
+
"typecheck": "tsc --noEmit && tsc -p scripts/tsconfig.json"
|
|
113
|
+
}
|
|
114
|
+
}
|