@nemphi/sdk 0.4.5354 → 0.5.5400
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/generated/tenants/client.d.ts +23 -48
- package/dist/generated/tenants/client.d.ts.map +1 -1
- package/dist/generated/tenants/client.js +2 -11
- package/dist/generated/tenants/client.js.map +1 -1
- package/dist/generated/tenants/index.d.ts +2 -2
- package/dist/generated/tenants/index.d.ts.map +1 -1
- package/dist/generated/tenants/models.d.ts +3 -9
- package/dist/generated/tenants/models.d.ts.map +1 -1
- package/dist/generated/tenants/models.js +3 -8
- package/dist/generated/tenants/models.js.map +1 -1
- package/dist/index.d.ts +28 -138
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../_/index.js";
|
|
2
2
|
import type { Pending } from "../models.js";
|
|
3
|
-
import { type TenantsBudgetChanged, type TenantsCardAdded, type TenantsCardStatus, type TenantsChanged, type TenantsChargeHistory, type TenantsDeletionView, type TenantsModelChanged, type
|
|
3
|
+
import { type TenantsBudgetChanged, type TenantsCardAdded, type TenantsCardStatus, type TenantsChanged, type TenantsChargeHistory, type TenantsDeletionView, type TenantsModelChanged, type TenantsPlanStatus, type TenantsRemoved, type TenantsTenantView } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The URL the paths of the API are relative to.
|
|
@@ -14,8 +14,10 @@ export interface Client {
|
|
|
14
14
|
* Keep a card on file to pay for Nemphi's AI. The browser tokenizes the card
|
|
15
15
|
* with the processor (tenants.card names it), and this stores the token: the
|
|
16
16
|
* processor checks the card, and once it is active the platform's AI serves
|
|
17
|
-
* the workspace, billed each month to the card up to the
|
|
18
|
-
*
|
|
17
|
+
* the workspace, billed each month to the card up to the workspace's monthly
|
|
18
|
+
* AI budget (tenants.set_budget changes it; a Studio workspace without one
|
|
19
|
+
* starts at COP 360.000). A new card replaces the one on file once it is
|
|
20
|
+
* accepted. Owners and admins only.
|
|
19
21
|
*
|
|
20
22
|
* Risk: `financial`. Acts as one person: a machine-made call always waits for
|
|
21
23
|
* that person's approval.
|
|
@@ -41,8 +43,9 @@ export interface Client {
|
|
|
41
43
|
* Read the card this workspace keeps on file to pay for Nemphi's AI: the
|
|
42
44
|
* active card, a newer one still being checked or refused, the processor a
|
|
43
45
|
* card is added with, whether the platform's AI serves the workspace, its
|
|
44
|
-
* price per USD of model cost,
|
|
45
|
-
*
|
|
46
|
+
* price per USD of model cost, today's use, the monthly AI budget and what
|
|
47
|
+
* this month has billed against it, and for a Studio workspace what hosting
|
|
48
|
+
* each published site costs a month.
|
|
46
49
|
*
|
|
47
50
|
* Risk: `read`.
|
|
48
51
|
*/
|
|
@@ -95,13 +98,13 @@ export interface Client {
|
|
|
95
98
|
*
|
|
96
99
|
* Read this workspace's Nemphi plan: which plan it is on, whether it is paid
|
|
97
100
|
* up and on which cycle, the charges waiting to be paid with their payment
|
|
98
|
-
* links, today's AI use against the plan's daily allowance and the
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* credited.
|
|
101
|
+
* links, today's AI use against the plan's daily allowance and the extra AI
|
|
102
|
+
* used past it, the monthly extra AI budget (the only limit on extra AI;
|
|
103
|
+
* without one extra AI is off) with its alerts and what this month's extra AI
|
|
104
|
+
* has billed against it, the model it runs on and the models the plan
|
|
105
|
+
* unlocks, and every plan it can move to with its prices and models. While a
|
|
106
|
+
* paid period runs, each priced plan also carries what moving to it costs
|
|
107
|
+
* now, prorated: the unused part of the period is credited.
|
|
105
108
|
*
|
|
106
109
|
* Risk: `read`.
|
|
107
110
|
*/
|
|
@@ -138,11 +141,13 @@ export interface Client {
|
|
|
138
141
|
*
|
|
139
142
|
* Set the most this workspace's extra AI may bill in a calendar month (UTC),
|
|
140
143
|
* in whole units of its plan's currency, and the shares of that budget at
|
|
141
|
-
* which the owners and admins are told.
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
144
|
+
* which the owners and admins are told. The budget is the only limit on extra
|
|
145
|
+
* AI: past the plan's daily allowance AI keeps working and billing until the
|
|
146
|
+
* month's extra AI has billed the budget, then stops at the plan's daily
|
|
147
|
+
* allowance until the month turns. A monthly_budget of 0 removes the budget
|
|
148
|
+
* and its alerts, which turns extra AI off; left out, the budget stays as it
|
|
149
|
+
* is (to change only the alerts). Only a paid plan sells extra AI. Owners and
|
|
150
|
+
* admins only.
|
|
146
151
|
*
|
|
147
152
|
* Risk: `financial`. Acts as one person: a machine-made call always waits for
|
|
148
153
|
* that person's approval.
|
|
@@ -161,20 +166,6 @@ export interface Client {
|
|
|
161
166
|
* that person's approval.
|
|
162
167
|
*/
|
|
163
168
|
setModel(request?: SetModelRequest, options?: RequestOptions): Promise<SetModelResponse>;
|
|
164
|
-
/**
|
|
165
|
-
* Set how much AI this workspace may use each day past its plan's daily
|
|
166
|
-
* allowance, in USD of model cost
|
|
167
|
-
*
|
|
168
|
-
* Set how much AI this workspace may use each day past its plan's daily
|
|
169
|
-
* allowance, in USD of model cost. Past the allowance AI keeps working up to
|
|
170
|
-
* the cap, and what it uses is billed monthly at the plan's overage price
|
|
171
|
-
* (tenants.plan shows it). 0 turns overage off, so AI stops at the allowance.
|
|
172
|
-
* Only a paid plan sells overage. Owners and admins only.
|
|
173
|
-
*
|
|
174
|
-
* Risk: `financial`. Acts as one person: a machine-made call always waits for
|
|
175
|
-
* that person's approval.
|
|
176
|
-
*/
|
|
177
|
-
setOverage(request: SetOverageRequest, options?: RequestOptions): Promise<SetOverageResponse>;
|
|
178
169
|
/**
|
|
179
170
|
* Rename this workspace's display name
|
|
180
171
|
*
|
|
@@ -201,11 +192,6 @@ export interface AttachCardRequest {
|
|
|
201
192
|
* The token the processor gave the browser for the card
|
|
202
193
|
*/
|
|
203
194
|
cardToken: string;
|
|
204
|
-
/**
|
|
205
|
-
* USD of model cost a day the workspace pays for; a Studio workspace starts
|
|
206
|
-
* at 2
|
|
207
|
-
*/
|
|
208
|
-
dailyCapUsd?: number;
|
|
209
195
|
/**
|
|
210
196
|
* The card's expiry month
|
|
211
197
|
*/
|
|
@@ -316,7 +302,7 @@ export interface SetBudgetRequest {
|
|
|
316
302
|
alerts?: ("50" | "75" | "90" | "100")[];
|
|
317
303
|
/**
|
|
318
304
|
* The most a month of extra AI may bill, in whole units of the plan's
|
|
319
|
-
* currency; 0 removes the budget, left out keeps it
|
|
305
|
+
* currency; 0 removes the budget and turns extra AI off, left out keeps it
|
|
320
306
|
*/
|
|
321
307
|
monthlyBudget?: number;
|
|
322
308
|
}
|
|
@@ -334,17 +320,6 @@ export type SetModelResponse = {
|
|
|
334
320
|
output: TenantsModelChanged;
|
|
335
321
|
tool: "tenants.set_model";
|
|
336
322
|
} | Pending;
|
|
337
|
-
export interface SetOverageRequest {
|
|
338
|
-
/**
|
|
339
|
-
* USD of AI a day the workspace pays for past its plan's allowance; 0 turns
|
|
340
|
-
* overage off
|
|
341
|
-
*/
|
|
342
|
-
dailyCapUsd: number;
|
|
343
|
-
}
|
|
344
|
-
export type SetOverageResponse = {
|
|
345
|
-
output: TenantsOverageChanged;
|
|
346
|
-
tool: "tenants.set_overage";
|
|
347
|
-
} | Pending;
|
|
348
323
|
export interface UpdateRequest {
|
|
349
324
|
/**
|
|
350
325
|
* The workspace's display name — what members see in the switcher and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/generated/tenants/client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,cAAc,EACnB,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EACL,KAAK,oBAA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G;IAAE,MAAM,EAAE,oBAAoB,CAAC;IAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE,GAAG,OAAO,CAAC;AAEvG,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAAE,MAAM,EAAE,mBAAmB,CAAC;IAAC,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAAG,OAAO,CAAC;AAEpG,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,iBAAiB,CAAC;IAAC,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAAG,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, object, } from "../_/index.js";
|
|
4
|
-
import { TenantsBudgetChangedCodec, TenantsCardAddedCodec, TenantsCardStatusCodec, TenantsChangedCodec, TenantsChargeHistoryCodec, TenantsDeletionViewCodec,
|
|
4
|
+
import { TenantsBudgetChangedCodec, TenantsCardAddedCodec, TenantsCardStatusCodec, TenantsChangedCodec, TenantsChargeHistoryCodec, TenantsDeletionViewCodec, TenantsPlanStatusCodec, TenantsTenantViewCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -18,7 +18,6 @@ export function bind(transport) {
|
|
|
18
18
|
scheduleDeletion: (request, options) => transport.send(ScheduleDeletionOperation, request, options),
|
|
19
19
|
setBudget: (request, options) => transport.send(SetBudgetOperation, request, options),
|
|
20
20
|
setModel: (request, options) => transport.send(SetModelOperation, request, options),
|
|
21
|
-
setOverage: (request, options) => transport.send(SetOverageOperation, request, options),
|
|
22
21
|
update: (request, options) => transport.send(UpdateOperation, request, options),
|
|
23
22
|
};
|
|
24
23
|
}
|
|
@@ -26,7 +25,7 @@ const AttachCardOperation = {
|
|
|
26
25
|
method: "POST",
|
|
27
26
|
route: "/v1/tools/tenants.attach_card:invoke",
|
|
28
27
|
body: "flat",
|
|
29
|
-
request: object([["acceptance_token", "acceptanceToken"], ["card_token", "cardToken"], ["
|
|
28
|
+
request: object([["acceptance_token", "acceptanceToken"], ["card_token", "cardToken"], ["exp_month", "expMonth"], ["exp_year", "expYear"], ["last_four", "lastFour"], ["personal_auth_token", "personalAuthToken"]]),
|
|
30
29
|
response: object([["output", null, () => TenantsCardAddedCodec]]),
|
|
31
30
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
32
31
|
};
|
|
@@ -102,14 +101,6 @@ const SetModelOperation = {
|
|
|
102
101
|
response: null,
|
|
103
102
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
104
103
|
};
|
|
105
|
-
const SetOverageOperation = {
|
|
106
|
-
method: "POST",
|
|
107
|
-
route: "/v1/tools/tenants.set_overage:invoke",
|
|
108
|
-
body: "flat",
|
|
109
|
-
request: object([["daily_cap_usd", "dailyCapUsd"]]),
|
|
110
|
-
response: object([["output", null, () => TenantsOverageChangedCodec]]),
|
|
111
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
112
|
-
};
|
|
113
104
|
const UpdateOperation = {
|
|
114
105
|
method: "POST",
|
|
115
106
|
route: "/v1/tools/tenants.update:invoke",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/generated/tenants/client.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,oBAAoB;AAEpB,OAAO,EAIL,SAAS,EACT,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAEL,yBAAyB,EAEzB,qBAAqB,EAErB,sBAAsB,EAEtB,mBAAmB,EAEnB,yBA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AK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;CACnH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ApiError } from "../_/index.js";
|
|
2
2
|
export type { RequestOptions } from "../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
|
-
export type { Client, ClientOptions, AttachCardRequest, AttachCardResponse, CancelDeletionRequest, CancelDeletionResponse, CardRequest, CardResponse, ChangePlanRequest, ChangePlanResponse, ChargesRequest, ChargesResponse, DeletionStatusRequest, DeletionStatusResponse, PlanRequest, PlanResponse, RemoveCardRequest, RemoveCardResponse, ScheduleDeletionRequest, ScheduleDeletionResponse, SetBudgetRequest, SetBudgetResponse, SetModelRequest, SetModelResponse,
|
|
5
|
-
export type { TenantsAiUseView, TenantsBudgetChanged, TenantsCardAdded, TenantsCardStatus, TenantsCardView, TenantsChanged, TenantsChargeHistory, TenantsChargeRecord, TenantsChargeView, TenantsDeletionView, TenantsHostingView, TenantsModelChanged, TenantsModelView,
|
|
4
|
+
export type { Client, ClientOptions, AttachCardRequest, AttachCardResponse, CancelDeletionRequest, CancelDeletionResponse, CardRequest, CardResponse, ChangePlanRequest, ChangePlanResponse, ChargesRequest, ChargesResponse, DeletionStatusRequest, DeletionStatusResponse, PlanRequest, PlanResponse, RemoveCardRequest, RemoveCardResponse, ScheduleDeletionRequest, ScheduleDeletionResponse, SetBudgetRequest, SetBudgetResponse, SetModelRequest, SetModelResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
+
export type { TenantsAiUseView, TenantsBudgetChanged, TenantsCardAdded, TenantsCardStatus, TenantsCardView, TenantsChanged, TenantsChargeHistory, TenantsChargeRecord, TenantsChargeView, TenantsDeletionView, TenantsHostingView, TenantsModelChanged, TenantsModelView, TenantsPlanStatus, TenantsPlanView, TenantsProcessorView, TenantsProrated, TenantsQuoteView, TenantsRemoved, TenantsTenantView, } from "./models.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/tenants/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EACV,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/tenants/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EACV,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,iBAAiB,GAClB,MAAM,aAAa,CAAC"}
|
|
@@ -5,9 +5,7 @@ export interface TenantsAiUseView {
|
|
|
5
5
|
models: TenantsModelView[];
|
|
6
6
|
monthBilledCents: number;
|
|
7
7
|
monthlyBudgetCents: number;
|
|
8
|
-
overageCapMicros: number;
|
|
9
8
|
overageCentsPerUsd: number;
|
|
10
|
-
overageLimitMicros: number;
|
|
11
9
|
overageMicros: number;
|
|
12
10
|
overageSuspended: boolean;
|
|
13
11
|
runs: number;
|
|
@@ -21,17 +19,18 @@ export interface TenantsBudgetChanged {
|
|
|
21
19
|
monthlyBudgetCents: number;
|
|
22
20
|
}
|
|
23
21
|
export interface TenantsCardAdded {
|
|
24
|
-
dailyCapMicros: number;
|
|
25
22
|
id: string;
|
|
23
|
+
monthlyBudgetCents: number;
|
|
26
24
|
status: string;
|
|
27
25
|
}
|
|
28
26
|
export interface TenantsCardStatus {
|
|
29
27
|
attempt?: TenantsCardView;
|
|
30
28
|
card?: TenantsCardView;
|
|
31
29
|
centsPerUsd: number;
|
|
32
|
-
dailyCapMicros: number;
|
|
33
30
|
hosting?: TenantsHostingView;
|
|
34
31
|
managed: boolean;
|
|
32
|
+
monthBilledCents: number;
|
|
33
|
+
monthlyBudgetCents: number;
|
|
35
34
|
processor?: TenantsProcessorView;
|
|
36
35
|
spentMicros: number;
|
|
37
36
|
suspended: boolean;
|
|
@@ -118,10 +117,6 @@ export interface TenantsModelView {
|
|
|
118
117
|
id: string;
|
|
119
118
|
name: string;
|
|
120
119
|
}
|
|
121
|
-
export interface TenantsOverageChanged {
|
|
122
|
-
dailyCapMicros: number;
|
|
123
|
-
overageCentsPerUsd: number;
|
|
124
|
-
}
|
|
125
120
|
export interface TenantsPlanStatus {
|
|
126
121
|
active: boolean;
|
|
127
122
|
ai: TenantsAiUseView;
|
|
@@ -185,7 +180,6 @@ export declare const TenantsChargeRecordCodec: import("../_/codec.js").Codec;
|
|
|
185
180
|
export declare const TenantsChargeViewCodec: import("../_/codec.js").Codec;
|
|
186
181
|
export declare const TenantsDeletionViewCodec: import("../_/codec.js").Codec;
|
|
187
182
|
export declare const TenantsHostingViewCodec: import("../_/codec.js").Codec;
|
|
188
|
-
export declare const TenantsOverageChangedCodec: import("../_/codec.js").Codec;
|
|
189
183
|
export declare const TenantsPlanStatusCodec: import("../_/codec.js").Codec;
|
|
190
184
|
export declare const TenantsPlanViewCodec: import("../_/codec.js").Codec;
|
|
191
185
|
export declare const TenantsProcessorViewCodec: import("../_/codec.js").Codec;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/generated/tenants/models.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/generated/tenants/models.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,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O,MAAM,oBAAoB,+BAM/B,CAAC;AAEH,eAAO,MAAM,mBAAmB,+BAM9B,CAAC;AAEH,eAAO,MAAM,yBAAyB,+BAGpC,CAAC;AAEH,eAAO,MAAM,wBAAwB,+BAanC,CAAC;AAEH,eAAO,MAAM,sBAAsB,+BASjC,CAAC;AAEH,eAAO,MAAM,wBAAwB,+BAKnC,CAAC;AAEH,eAAO,MAAM,uBAAuB,+BAElC,CAAC;AAEH,eAAO,MAAM,sBAAsB,+BAQjC,CAAC;AAEH,eAAO,MAAM,oBAAoB,+BAQ/B,CAAC;AAEH,eAAO,MAAM,yBAAyB,+BAEpC,CAAC;AAEH,eAAO,MAAM,oBAAoB,+BAG/B,CAAC;AAEH,eAAO,MAAM,qBAAqB,+BAGhC,CAAC;AAEH,eAAO,MAAM,sBAAsB,+BAEjC,CAAC"}
|
|
@@ -6,9 +6,7 @@ export const TenantsAiUseViewCodec = object([
|
|
|
6
6
|
["budget_spent", "budgetSpent"],
|
|
7
7
|
["month_billed_cents", "monthBilledCents"],
|
|
8
8
|
["monthly_budget_cents", "monthlyBudgetCents"],
|
|
9
|
-
["overage_cap_micros", "overageCapMicros"],
|
|
10
9
|
["overage_cents_per_usd", "overageCentsPerUsd"],
|
|
11
|
-
["overage_limit_micros", "overageLimitMicros"],
|
|
12
10
|
["overage_micros", "overageMicros"],
|
|
13
11
|
["overage_suspended", "overageSuspended"],
|
|
14
12
|
["runs_limit", "runsLimit"],
|
|
@@ -20,14 +18,15 @@ export const TenantsBudgetChangedCodec = object([
|
|
|
20
18
|
["monthly_budget_cents", "monthlyBudgetCents"],
|
|
21
19
|
]);
|
|
22
20
|
export const TenantsCardAddedCodec = object([
|
|
23
|
-
["
|
|
21
|
+
["monthly_budget_cents", "monthlyBudgetCents"],
|
|
24
22
|
]);
|
|
25
23
|
export const TenantsCardStatusCodec = object([
|
|
26
24
|
["attempt", null, () => TenantsCardViewCodec],
|
|
27
25
|
["card", null, () => TenantsCardViewCodec],
|
|
28
26
|
["cents_per_usd", "centsPerUsd"],
|
|
29
|
-
["daily_cap_micros", "dailyCapMicros"],
|
|
30
27
|
["hosting", null, () => TenantsHostingViewCodec],
|
|
28
|
+
["month_billed_cents", "monthBilledCents"],
|
|
29
|
+
["monthly_budget_cents", "monthlyBudgetCents"],
|
|
31
30
|
["processor", null, () => TenantsProcessorViewCodec],
|
|
32
31
|
["spent_micros", "spentMicros"],
|
|
33
32
|
]);
|
|
@@ -82,10 +81,6 @@ export const TenantsDeletionViewCodec = object([
|
|
|
82
81
|
export const TenantsHostingViewCodec = object([
|
|
83
82
|
["monthly_price_cents", "monthlyPriceCents"],
|
|
84
83
|
]);
|
|
85
|
-
export const TenantsOverageChangedCodec = object([
|
|
86
|
-
["daily_cap_micros", "dailyCapMicros"],
|
|
87
|
-
["overage_cents_per_usd", "overageCentsPerUsd"],
|
|
88
|
-
]);
|
|
89
84
|
export const TenantsPlanStatusCodec = object([
|
|
90
85
|
["ai", null, () => TenantsAiUseViewCodec],
|
|
91
86
|
["hosting_charge", "hostingCharge", () => TenantsChargeViewCodec],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/generated/tenants/models.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,oBAAoB;AAEpB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/generated/tenants/models.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,oBAAoB;AAEpB,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAiM9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;IAC1C,CAAC,eAAe,EAAE,cAAc,CAAC;IACjC,CAAC,cAAc,EAAE,aAAa,CAAC;IAC/B,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;IAC1C,CAAC,sBAAsB,EAAE,oBAAoB,CA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AoB,CAAC;IAC/C,CAAC,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC;IAC9C,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;IAC9C,CAAC,YAAY,EAAE,WAAW,CAAC;CAC5B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC;IACzC,CAAC,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC;IAC9C,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC;CAC9C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;IAC1C,CAAC,cAAc,EAAE,aAAa,CAAC;IAC/B,CAAC,WAAW,EAAE,UAAU,CAAC;CAC1B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC;IAC3C,CAAC,YAAY,EAAE,WAAW,CAAC;CAC5B,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -579,10 +579,11 @@ export interface Notification {
|
|
|
579
579
|
/**
|
|
580
580
|
* One realtime event of the workspace (`openRealtimeSocket` and
|
|
581
581
|
* `streamEvents`, the frames of `GET /v1/events/stream` and
|
|
582
|
-
* `GET /v1/events/socket`),
|
|
583
|
-
* `
|
|
584
|
-
*
|
|
585
|
-
*
|
|
582
|
+
* `GET /v1/events/socket`), which every member hears. `action` and
|
|
583
|
+
* `notification` are wakeups — re-read the surface, the row itself comes by
|
|
584
|
+
* cursor; the rest is state that only matters while someone is watching. A
|
|
585
|
+
* chat thread's answers are not among them: they are only its members' to
|
|
586
|
+
* read, on the thread's own stream (`streamThread`, `ThreadStreamEvent`).
|
|
586
587
|
*/
|
|
587
588
|
export type RealtimeEvent = {
|
|
588
589
|
type: "action";
|
|
@@ -603,25 +604,6 @@ export type RealtimeEvent = {
|
|
|
603
604
|
channel_id: string;
|
|
604
605
|
/** A message landed, a delivery status changed, or the thread was read. */
|
|
605
606
|
change: "message" | "status" | "read";
|
|
606
|
-
} | {
|
|
607
|
-
type: "run";
|
|
608
|
-
/** The chat thread this run works in; only thread work is published. */
|
|
609
|
-
thread_id: string;
|
|
610
|
-
run_id: string;
|
|
611
|
-
agent_definition: string;
|
|
612
|
-
/** What the step returned: continue (still working), parked (waiting), idle (a resting session), done. */
|
|
613
|
-
outcome: "continue" | "parked" | "idle" | "done";
|
|
614
|
-
} | {
|
|
615
|
-
type: "run_delta";
|
|
616
|
-
/** The chat thread the run answers in. */
|
|
617
|
-
thread_id: string;
|
|
618
|
-
run_id: string;
|
|
619
|
-
/** The step the model turn will be stored as; a higher one is a new turn. */
|
|
620
|
-
seq: number;
|
|
621
|
-
/** The frame's place within the turn, from 0. */
|
|
622
|
-
n: number;
|
|
623
|
-
/** Prose the model generated since the previous frame. */
|
|
624
|
-
text: string;
|
|
625
607
|
} | {
|
|
626
608
|
type: "typing";
|
|
627
609
|
/** A workspace chat thread or a marketing inbox conversation. */
|
|
@@ -654,12 +636,30 @@ export type RealtimeEvent = {
|
|
|
654
636
|
until: string;
|
|
655
637
|
};
|
|
656
638
|
/**
|
|
657
|
-
* One frame of a chat thread's own stream (`streamThread`)
|
|
658
|
-
*
|
|
639
|
+
* One frame of a chat thread's own stream (`streamThread`), which only a
|
|
640
|
+
* member who sits in the thread may read: a piece of the answer a run is
|
|
641
|
+
* writing (`run_delta`), or a run step's end (`run`).
|
|
659
642
|
*/
|
|
660
|
-
export type ThreadStreamEvent =
|
|
661
|
-
type: "run"
|
|
662
|
-
|
|
643
|
+
export type ThreadStreamEvent = {
|
|
644
|
+
type: "run";
|
|
645
|
+
/** The chat thread this run works in; only thread work is published. */
|
|
646
|
+
thread_id: string;
|
|
647
|
+
run_id: string;
|
|
648
|
+
agent_definition: string;
|
|
649
|
+
/** What the step returned: continue (still working), parked (waiting), idle (a resting session), done. */
|
|
650
|
+
outcome: "continue" | "parked" | "idle" | "done";
|
|
651
|
+
} | {
|
|
652
|
+
type: "run_delta";
|
|
653
|
+
/** The chat thread the run answers in. */
|
|
654
|
+
thread_id: string;
|
|
655
|
+
run_id: string;
|
|
656
|
+
/** The step the model turn will be stored as; a higher one is a new turn. */
|
|
657
|
+
seq: number;
|
|
658
|
+
/** The frame's place within the turn, from 0. */
|
|
659
|
+
n: number;
|
|
660
|
+
/** Prose the model generated since the previous frame. */
|
|
661
|
+
text: string;
|
|
662
|
+
};
|
|
663
663
|
/** Where a person is typing: a chat thread or a marketing inbox conversation. */
|
|
664
664
|
export type TypingScope = Extract<RealtimeEvent, {
|
|
665
665
|
type: "typing";
|
|
@@ -6631,12 +6631,6 @@ export interface ChatAttachment {
|
|
|
6631
6631
|
document_id: string;
|
|
6632
6632
|
filename: string;
|
|
6633
6633
|
}
|
|
6634
|
-
export interface ChatMessage {
|
|
6635
|
-
role: "user" | "assistant";
|
|
6636
|
-
content: string;
|
|
6637
|
-
/** Uploaded documents attached to a user message. */
|
|
6638
|
-
attachments?: ChatAttachment[];
|
|
6639
|
-
}
|
|
6640
6634
|
/**
|
|
6641
6635
|
* An action parked for in-chat authorization: the exact tool call the model
|
|
6642
6636
|
* attempted, held server-side until the user approves or denies it.
|
|
@@ -6646,17 +6640,6 @@ export interface ChatApproval {
|
|
|
6646
6640
|
tool: string;
|
|
6647
6641
|
input: unknown;
|
|
6648
6642
|
}
|
|
6649
|
-
/** The outcome of deciding an in-chat authorization request. */
|
|
6650
|
-
export interface ChatApprovalDecision {
|
|
6651
|
-
decided: "approved" | "denied";
|
|
6652
|
-
tool: string;
|
|
6653
|
-
/** Tool output when approved and the call succeeded. */
|
|
6654
|
-
output?: unknown;
|
|
6655
|
-
/** Present when approved but the call failed. */
|
|
6656
|
-
error?: string;
|
|
6657
|
-
/** True when the approved call changed a dashboard. */
|
|
6658
|
-
dashboard_changed?: boolean;
|
|
6659
|
-
}
|
|
6660
6643
|
/**
|
|
6661
6644
|
* How a member answered an in-chat authorization, kept on the user turn
|
|
6662
6645
|
* that carried the answer back to the model so the transcript can draw
|
|
@@ -6673,38 +6656,6 @@ export interface ChatApprovalOutcome {
|
|
|
6673
6656
|
/** Present when approved but the call failed. */
|
|
6674
6657
|
error?: string;
|
|
6675
6658
|
}
|
|
6676
|
-
export interface OverviewChatResponse {
|
|
6677
|
-
reply: string;
|
|
6678
|
-
/**
|
|
6679
|
-
* The answer's json-render spec (ui-spec.ts), when the model drew one:
|
|
6680
|
-
* rendered under the reply in place of `message`, which then leads with
|
|
6681
|
-
* its Block Kit reading for a client that does not draw specs.
|
|
6682
|
-
*/
|
|
6683
|
-
ui?: UISpec;
|
|
6684
|
-
/**
|
|
6685
|
-
* The answer as Block Kit blocks, when the model laid one out (a table,
|
|
6686
|
-
* a plan, buttons to click): rendered under the reply. See block-kit.ts.
|
|
6687
|
-
*/
|
|
6688
|
-
message?: MessageBlock[];
|
|
6689
|
-
blocks: CanvasBlock[];
|
|
6690
|
-
/**
|
|
6691
|
-
* Questions the model posed via user.ask. Render them as a questionnaire
|
|
6692
|
-
* and send the answers back as the next user message.
|
|
6693
|
-
*/
|
|
6694
|
-
questions?: RunQuestion[];
|
|
6695
|
-
/**
|
|
6696
|
-
* An action awaiting the user's in-chat authorization. Render Approve/Deny;
|
|
6697
|
-
* decide via decideChatApproval and report the outcome back as the next
|
|
6698
|
-
* user message.
|
|
6699
|
-
*/
|
|
6700
|
-
approval?: ChatApproval;
|
|
6701
|
-
usage: {
|
|
6702
|
-
tokens_in: number;
|
|
6703
|
-
tokens_out: number;
|
|
6704
|
-
};
|
|
6705
|
-
/** True when this turn created, appended, edited, or deleted a dashboard. */
|
|
6706
|
-
dashboard_changed: boolean;
|
|
6707
|
-
}
|
|
6708
6659
|
/** How a `askSession` stood when its wait ended. */
|
|
6709
6660
|
export type SessionAskState = "answered" | "awaiting_approval" | "awaiting_input" | "working" | "failed";
|
|
6710
6661
|
/**
|
|
@@ -6747,39 +6698,6 @@ export interface SessionAsk {
|
|
|
6747
6698
|
message: string;
|
|
6748
6699
|
};
|
|
6749
6700
|
}
|
|
6750
|
-
/** How far a tool call got during a streaming chat turn. */
|
|
6751
|
-
export type OverviewChatToolPhase = "start" | "ok" | "error" | "approval" | "questions";
|
|
6752
|
-
/**
|
|
6753
|
-
* One event of a streaming overview chat (`overviewChatStream`).
|
|
6754
|
-
*
|
|
6755
|
-
* - `turn` — a model turn began. Text streamed before it was a preamble to
|
|
6756
|
-
* a tool call, so the accumulated answer starts over.
|
|
6757
|
-
* - `delta` — more of the answer's prose, already decoded out of the
|
|
6758
|
-
* model's JSON envelope.
|
|
6759
|
-
* - `tool` — a tool call started or finished; useful as a progress line.
|
|
6760
|
-
* - `done` — the authoritative payload, identical to what `overviewChat`
|
|
6761
|
-
* returns. Blocks, questions and approvals only exist once the turn is
|
|
6762
|
-
* complete, so replace the streamed text with `response.reply`.
|
|
6763
|
-
* - `error` — the round-trip failed; nothing further arrives.
|
|
6764
|
-
*/
|
|
6765
|
-
export type OverviewChatStreamEvent = {
|
|
6766
|
-
type: "turn";
|
|
6767
|
-
n: number;
|
|
6768
|
-
} | {
|
|
6769
|
-
type: "delta";
|
|
6770
|
-
text: string;
|
|
6771
|
-
} | {
|
|
6772
|
-
type: "tool";
|
|
6773
|
-
name: string;
|
|
6774
|
-
phase: OverviewChatToolPhase;
|
|
6775
|
-
} | {
|
|
6776
|
-
type: "done";
|
|
6777
|
-
response: OverviewChatResponse;
|
|
6778
|
-
} | {
|
|
6779
|
-
type: "error";
|
|
6780
|
-
error: string;
|
|
6781
|
-
code: string;
|
|
6782
|
-
};
|
|
6783
6701
|
/** One turn of a saved overview conversation (a historical record: blocks keep the data they were hydrated with). */
|
|
6784
6702
|
export interface ConversationTurn {
|
|
6785
6703
|
role: "user" | "assistant";
|
|
@@ -9553,27 +9471,6 @@ export interface NemphiClient {
|
|
|
9553
9471
|
document_ids?: string[];
|
|
9554
9472
|
wait_ms?: number;
|
|
9555
9473
|
}): Promise<SessionAsk>;
|
|
9556
|
-
/**
|
|
9557
|
-
* @deprecated Use `askSession`: the overview chat now asks the member's
|
|
9558
|
-
* DM with the orchestrator through the same session path, and the route
|
|
9559
|
-
* goes once installed app builds age out.
|
|
9560
|
-
*/
|
|
9561
|
-
overviewChat(input: {
|
|
9562
|
-
messages: ChatMessage[];
|
|
9563
|
-
}): Promise<OverviewChatResponse>;
|
|
9564
|
-
/**
|
|
9565
|
-
* The same round-trip as `overviewChat`, reported as it happens. Render
|
|
9566
|
-
* the deltas for immediate feedback and take the final answer from the
|
|
9567
|
-
* `done` event — it is what `overviewChat` would have returned.
|
|
9568
|
-
*
|
|
9569
|
-
* @deprecated Use `askSession`, and `streamThread` to follow the answer
|
|
9570
|
-
* as it forms.
|
|
9571
|
-
*/
|
|
9572
|
-
overviewChatStream(input: {
|
|
9573
|
-
messages: ChatMessage[];
|
|
9574
|
-
}, opts?: {
|
|
9575
|
-
signal?: AbortSignal;
|
|
9576
|
-
}): AsyncGenerator<OverviewChatStreamEvent, void, void>;
|
|
9577
9474
|
/** Suggested prompts ranked from the tenant's live data. */
|
|
9578
9475
|
overviewSuggestions(): Promise<OverviewSuggestionsResponse>;
|
|
9579
9476
|
/**
|
|
@@ -9597,13 +9494,6 @@ export interface NemphiClient {
|
|
|
9597
9494
|
mirrorOverviewThread(turns: ConversationTurn[]): Promise<{
|
|
9598
9495
|
thread_id: string;
|
|
9599
9496
|
}>;
|
|
9600
|
-
/**
|
|
9601
|
-
* Decides an in-chat authorization request; approving executes the parked call.
|
|
9602
|
-
*
|
|
9603
|
-
* @deprecated Approvals are the run's now: decide `SessionAsk.approval`
|
|
9604
|
-
* with `approveRun` / `denyRun` on its `run_id`.
|
|
9605
|
-
*/
|
|
9606
|
-
decideChatApproval(id: string, approve: boolean): Promise<ChatApprovalDecision>;
|
|
9607
9497
|
listDashboards(): Promise<DashboardSummary[]>;
|
|
9608
9498
|
/**
|
|
9609
9499
|
* Fetches one dashboard with every block's metric query re-run (live data).
|