@pymthouse/builder-sdk 0.0.8 → 0.1.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/README.md +40 -2
- package/dist/{env-CZczUMzR.d.cts → client-BhC1YhB1.d.cts} +25 -12
- package/dist/{env-4YmzarGJ.d.ts → client-BroVFyIy.d.ts} +25 -12
- package/dist/config.cjs +66 -0
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +22 -0
- package/dist/config.d.ts +22 -0
- package/dist/config.js +58 -0
- package/dist/config.js.map +1 -0
- package/dist/device-initiate.cjs +88 -0
- package/dist/device-initiate.cjs.map +1 -0
- package/dist/device-initiate.d.cts +32 -0
- package/dist/device-initiate.d.ts +32 -0
- package/dist/device-initiate.js +84 -0
- package/dist/device-initiate.js.map +1 -0
- package/dist/device.d.cts +1 -1
- package/dist/device.d.ts +1 -1
- package/dist/env.cjs +286 -1
- package/dist/env.cjs.map +1 -1
- package/dist/env.d.cts +15 -2
- package/dist/env.d.ts +15 -2
- package/dist/env.js +286 -1
- package/dist/env.js.map +1 -1
- package/dist/index.cjs +422 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -5
- package/dist/index.d.ts +39 -5
- package/dist/index.js +396 -46
- package/dist/index.js.map +1 -1
- package/dist/tokens.cjs +75 -0
- package/dist/tokens.cjs.map +1 -0
- package/dist/tokens.d.cts +48 -0
- package/dist/tokens.d.ts +48 -0
- package/dist/tokens.js +64 -0
- package/dist/tokens.js.map +1 -0
- package/dist/{types-W9PJAspR.d.cts → types-rKzVXvMu.d.cts} +64 -4
- package/dist/{types-W9PJAspR.d.ts → types-rKzVXvMu.d.ts} +64 -4
- package/dist/verify.d.cts +1 -1
- package/dist/verify.d.ts +1 -1
- package/package.json +16 -1
|
@@ -82,13 +82,22 @@ interface UsageQueryInput {
|
|
|
82
82
|
}
|
|
83
83
|
interface UsageTotals {
|
|
84
84
|
requestCount: number;
|
|
85
|
-
totalFeeWei
|
|
85
|
+
totalFeeWei?: string;
|
|
86
|
+
currency?: string;
|
|
87
|
+
networkFeeUsdMicros?: string;
|
|
88
|
+
ownerChargeUsdMicros?: string;
|
|
89
|
+
platformFeeUsdMicros?: string;
|
|
90
|
+
endUserBillableUsdMicros?: string;
|
|
86
91
|
}
|
|
87
92
|
interface UsageByUserRow {
|
|
88
93
|
endUserId: string;
|
|
89
94
|
externalUserId: string | null;
|
|
90
95
|
requestCount: number;
|
|
91
|
-
feeWei
|
|
96
|
+
feeWei?: string;
|
|
97
|
+
currency?: string;
|
|
98
|
+
networkFeeUsdMicros?: string;
|
|
99
|
+
ownerChargeUsdMicros?: string;
|
|
100
|
+
endUserBillableUsdMicros?: string;
|
|
92
101
|
userType?: "system_managed" | "oidc_authorized" | "unknown";
|
|
93
102
|
identifier?: string;
|
|
94
103
|
}
|
|
@@ -97,7 +106,8 @@ interface UsageByPipelineModelRow {
|
|
|
97
106
|
pipeline: string;
|
|
98
107
|
modelId: string;
|
|
99
108
|
requestCount: number;
|
|
100
|
-
|
|
109
|
+
currency?: string;
|
|
110
|
+
networkFeeWei?: string;
|
|
101
111
|
networkFeeEth?: string;
|
|
102
112
|
networkFeeUsdMicros: string;
|
|
103
113
|
ownerChargeUsdMicros: string;
|
|
@@ -132,5 +142,55 @@ interface ParsedDeviceApprovalRedirect {
|
|
|
132
142
|
userCode: string;
|
|
133
143
|
clientId: string;
|
|
134
144
|
}
|
|
145
|
+
interface AppManifestCapability {
|
|
146
|
+
pipeline: string;
|
|
147
|
+
modelId: string;
|
|
148
|
+
}
|
|
149
|
+
interface AppManifestResponse {
|
|
150
|
+
/** PymtHouse-local resolved set; informational, not a complete integrator allowlist. */
|
|
151
|
+
capabilities: AppManifestCapability[];
|
|
152
|
+
/** Authoritative exclusions from the Network Price plan. */
|
|
153
|
+
excludedCapabilities?: AppManifestCapability[];
|
|
154
|
+
/** Server-computed revision for cache busting when present. */
|
|
155
|
+
manifestVersion?: string;
|
|
156
|
+
}
|
|
157
|
+
interface GetAppManifestResult {
|
|
158
|
+
manifest: AppManifestResponse | null;
|
|
159
|
+
etag: string | null;
|
|
160
|
+
notModified: boolean;
|
|
161
|
+
}
|
|
162
|
+
interface UsageByPipelineModelFiatRow {
|
|
163
|
+
pipeline: string;
|
|
164
|
+
modelId: string;
|
|
165
|
+
requestCount: number;
|
|
166
|
+
currency: string;
|
|
167
|
+
networkFeeUsdMicros: string;
|
|
168
|
+
ownerChargeUsdMicros: string;
|
|
169
|
+
endUserBillableUsdMicros: string;
|
|
170
|
+
}
|
|
171
|
+
interface MeScopeUsagePayload {
|
|
172
|
+
clientId: string;
|
|
173
|
+
period: UsageApiResponse["period"];
|
|
174
|
+
currentUser: {
|
|
175
|
+
externalUserId: string;
|
|
176
|
+
requestCount: number;
|
|
177
|
+
currency: string;
|
|
178
|
+
networkFeeUsdMicros: string;
|
|
179
|
+
ownerChargeUsdMicros: string;
|
|
180
|
+
endUserBillableUsdMicros: string;
|
|
181
|
+
pipelineModels: UsageByPipelineModelFiatRow[];
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
interface MintSignerSessionForExternalUserInput {
|
|
185
|
+
externalUserId: string;
|
|
186
|
+
email?: string;
|
|
187
|
+
scope?: string;
|
|
188
|
+
}
|
|
189
|
+
interface ApproveDeviceLoginInput {
|
|
190
|
+
externalUserId: string;
|
|
191
|
+
userCode: string;
|
|
192
|
+
email?: string;
|
|
193
|
+
publicClientId?: string;
|
|
194
|
+
}
|
|
135
195
|
|
|
136
|
-
export type {
|
|
196
|
+
export type { AppManifestResponse as A, ClientCredentialsTokenResponse as C, DeviceApprovalInput as D, FetchLike as F, GetAppManifestResult as G, MeScopeUsagePayload as M, OidcDiscoveryDocument as O, ParsedDeviceApprovalRedirect as P, TokenExchangeResponse as T, UsageByUserRow as U, UsageForExternalUser as a, UsageApiResponse as b, UsageByPipelineModelRow as c, UsageByPipelineModelFiatRow as d, AppManifestCapability as e, AppUserRecord as f, ApproveDeviceLoginInput as g, GetDiscoveryOptions as h, MintSignerSessionForExternalUserInput as i, MintUserAccessTokenInput as j, MintUserAccessTokenResponse as k, MintUserSignerSessionTokenInput as l, PmtHouseClientOptions as m, UpsertAppUserInput as n, UsageQueryInput as o, UsageTotals as p };
|
|
@@ -82,13 +82,22 @@ interface UsageQueryInput {
|
|
|
82
82
|
}
|
|
83
83
|
interface UsageTotals {
|
|
84
84
|
requestCount: number;
|
|
85
|
-
totalFeeWei
|
|
85
|
+
totalFeeWei?: string;
|
|
86
|
+
currency?: string;
|
|
87
|
+
networkFeeUsdMicros?: string;
|
|
88
|
+
ownerChargeUsdMicros?: string;
|
|
89
|
+
platformFeeUsdMicros?: string;
|
|
90
|
+
endUserBillableUsdMicros?: string;
|
|
86
91
|
}
|
|
87
92
|
interface UsageByUserRow {
|
|
88
93
|
endUserId: string;
|
|
89
94
|
externalUserId: string | null;
|
|
90
95
|
requestCount: number;
|
|
91
|
-
feeWei
|
|
96
|
+
feeWei?: string;
|
|
97
|
+
currency?: string;
|
|
98
|
+
networkFeeUsdMicros?: string;
|
|
99
|
+
ownerChargeUsdMicros?: string;
|
|
100
|
+
endUserBillableUsdMicros?: string;
|
|
92
101
|
userType?: "system_managed" | "oidc_authorized" | "unknown";
|
|
93
102
|
identifier?: string;
|
|
94
103
|
}
|
|
@@ -97,7 +106,8 @@ interface UsageByPipelineModelRow {
|
|
|
97
106
|
pipeline: string;
|
|
98
107
|
modelId: string;
|
|
99
108
|
requestCount: number;
|
|
100
|
-
|
|
109
|
+
currency?: string;
|
|
110
|
+
networkFeeWei?: string;
|
|
101
111
|
networkFeeEth?: string;
|
|
102
112
|
networkFeeUsdMicros: string;
|
|
103
113
|
ownerChargeUsdMicros: string;
|
|
@@ -132,5 +142,55 @@ interface ParsedDeviceApprovalRedirect {
|
|
|
132
142
|
userCode: string;
|
|
133
143
|
clientId: string;
|
|
134
144
|
}
|
|
145
|
+
interface AppManifestCapability {
|
|
146
|
+
pipeline: string;
|
|
147
|
+
modelId: string;
|
|
148
|
+
}
|
|
149
|
+
interface AppManifestResponse {
|
|
150
|
+
/** PymtHouse-local resolved set; informational, not a complete integrator allowlist. */
|
|
151
|
+
capabilities: AppManifestCapability[];
|
|
152
|
+
/** Authoritative exclusions from the Network Price plan. */
|
|
153
|
+
excludedCapabilities?: AppManifestCapability[];
|
|
154
|
+
/** Server-computed revision for cache busting when present. */
|
|
155
|
+
manifestVersion?: string;
|
|
156
|
+
}
|
|
157
|
+
interface GetAppManifestResult {
|
|
158
|
+
manifest: AppManifestResponse | null;
|
|
159
|
+
etag: string | null;
|
|
160
|
+
notModified: boolean;
|
|
161
|
+
}
|
|
162
|
+
interface UsageByPipelineModelFiatRow {
|
|
163
|
+
pipeline: string;
|
|
164
|
+
modelId: string;
|
|
165
|
+
requestCount: number;
|
|
166
|
+
currency: string;
|
|
167
|
+
networkFeeUsdMicros: string;
|
|
168
|
+
ownerChargeUsdMicros: string;
|
|
169
|
+
endUserBillableUsdMicros: string;
|
|
170
|
+
}
|
|
171
|
+
interface MeScopeUsagePayload {
|
|
172
|
+
clientId: string;
|
|
173
|
+
period: UsageApiResponse["period"];
|
|
174
|
+
currentUser: {
|
|
175
|
+
externalUserId: string;
|
|
176
|
+
requestCount: number;
|
|
177
|
+
currency: string;
|
|
178
|
+
networkFeeUsdMicros: string;
|
|
179
|
+
ownerChargeUsdMicros: string;
|
|
180
|
+
endUserBillableUsdMicros: string;
|
|
181
|
+
pipelineModels: UsageByPipelineModelFiatRow[];
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
interface MintSignerSessionForExternalUserInput {
|
|
185
|
+
externalUserId: string;
|
|
186
|
+
email?: string;
|
|
187
|
+
scope?: string;
|
|
188
|
+
}
|
|
189
|
+
interface ApproveDeviceLoginInput {
|
|
190
|
+
externalUserId: string;
|
|
191
|
+
userCode: string;
|
|
192
|
+
email?: string;
|
|
193
|
+
publicClientId?: string;
|
|
194
|
+
}
|
|
135
195
|
|
|
136
|
-
export type {
|
|
196
|
+
export type { AppManifestResponse as A, ClientCredentialsTokenResponse as C, DeviceApprovalInput as D, FetchLike as F, GetAppManifestResult as G, MeScopeUsagePayload as M, OidcDiscoveryDocument as O, ParsedDeviceApprovalRedirect as P, TokenExchangeResponse as T, UsageByUserRow as U, UsageForExternalUser as a, UsageApiResponse as b, UsageByPipelineModelRow as c, UsageByPipelineModelFiatRow as d, AppManifestCapability as e, AppUserRecord as f, ApproveDeviceLoginInput as g, GetDiscoveryOptions as h, MintSignerSessionForExternalUserInput as i, MintUserAccessTokenInput as j, MintUserAccessTokenResponse as k, MintUserSignerSessionTokenInput as l, PmtHouseClientOptions as m, UpsertAppUserInput as n, UsageQueryInput as o, UsageTotals as p };
|
package/dist/verify.d.cts
CHANGED
package/dist/verify.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pymthouse/builder-sdk",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "PymtHouse Builder API and OIDC client (OpenID-certified oauth4webapi)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -22,11 +22,26 @@
|
|
|
22
22
|
"import": "./dist/env.js",
|
|
23
23
|
"require": "./dist/env.cjs"
|
|
24
24
|
},
|
|
25
|
+
"./config": {
|
|
26
|
+
"types": "./dist/config.d.ts",
|
|
27
|
+
"import": "./dist/config.js",
|
|
28
|
+
"require": "./dist/config.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./tokens": {
|
|
31
|
+
"types": "./dist/tokens.d.ts",
|
|
32
|
+
"import": "./dist/tokens.js",
|
|
33
|
+
"require": "./dist/tokens.cjs"
|
|
34
|
+
},
|
|
25
35
|
"./device": {
|
|
26
36
|
"types": "./dist/device.d.ts",
|
|
27
37
|
"import": "./dist/device.js",
|
|
28
38
|
"require": "./dist/device.cjs"
|
|
29
39
|
},
|
|
40
|
+
"./device-initiate": {
|
|
41
|
+
"types": "./dist/device-initiate.d.ts",
|
|
42
|
+
"import": "./dist/device-initiate.js",
|
|
43
|
+
"require": "./dist/device-initiate.cjs"
|
|
44
|
+
},
|
|
30
45
|
"./verify": {
|
|
31
46
|
"types": "./dist/verify.d.ts",
|
|
32
47
|
"import": "./dist/verify.js",
|