@nemphi/sdk 0.6.5415 → 0.7.5500
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/email/models.d.ts +2 -0
- package/dist/generated/email/models.d.ts.map +1 -1
- package/dist/generated/email/models.js +2 -0
- package/dist/generated/email/models.js.map +1 -1
- package/dist/generated/inventory/client.d.ts +29 -1
- package/dist/generated/inventory/client.d.ts.map +1 -1
- package/dist/generated/inventory/client.js +9 -1
- package/dist/generated/inventory/client.js.map +1 -1
- package/dist/generated/inventory/index.d.ts +2 -2
- package/dist/generated/inventory/index.d.ts.map +1 -1
- package/dist/generated/inventory/models.d.ts +127 -0
- package/dist/generated/inventory/models.d.ts.map +1 -1
- package/dist/generated/inventory/models.js +91 -0
- package/dist/generated/inventory/models.js.map +1 -1
- package/dist/generated/marketing/client.d.ts +531 -1
- package/dist/generated/marketing/client.d.ts.map +1 -1
- package/dist/generated/marketing/client.js +176 -3
- package/dist/generated/marketing/client.js.map +1 -1
- package/dist/generated/marketing/index.d.ts +2 -2
- package/dist/generated/marketing/index.d.ts.map +1 -1
- package/dist/generated/marketing/models.d.ts +151 -0
- package/dist/generated/marketing/models.d.ts.map +1 -1
- package/dist/generated/marketing/models.js +88 -0
- package/dist/generated/marketing/models.js.map +1 -1
- package/dist/generated/messages/client.d.ts +6 -2
- package/dist/generated/messages/client.d.ts.map +1 -1
- package/dist/generated/messages/client.js.map +1 -1
- package/dist/generated/messages/models.d.ts +1 -0
- package/dist/generated/messages/models.d.ts.map +1 -1
- package/dist/generated/messages/models.js +1 -0
- package/dist/generated/messages/models.js.map +1 -1
- package/dist/generated/tenants/client.d.ts +70 -37
- package/dist/generated/tenants/client.d.ts.map +1 -1
- package/dist/generated/tenants/client.js +18 -10
- 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 +40 -9
- package/dist/generated/tenants/models.d.ts.map +1 -1
- package/dist/generated/tenants/models.js +29 -8
- package/dist/generated/tenants/models.js.map +1 -1
- package/dist/index.d.ts +414 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +153 -0
- 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 TenantsCardAdded, type TenantsCardStatus, type TenantsChanged, 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
|
*/
|
|
@@ -64,6 +67,19 @@ export interface Client {
|
|
|
64
67
|
* that person's approval.
|
|
65
68
|
*/
|
|
66
69
|
changePlan(request: ChangePlanRequest, options?: RequestOptions): Promise<ChangePlanResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* List what this workspace was billed by Nemphi, newest first: each plan
|
|
72
|
+
* period, month of extra AI and month of site…
|
|
73
|
+
*
|
|
74
|
+
* List what this workspace was billed by Nemphi, newest first: each plan
|
|
75
|
+
* period, month of extra AI and month of site hosting, with its amount,
|
|
76
|
+
* whether it is paid, open or failed, when it was paid and with which card,
|
|
77
|
+
* and an open charge's payment link. Pass next_before from one page to read
|
|
78
|
+
* the next.
|
|
79
|
+
*
|
|
80
|
+
* Risk: `read`.
|
|
81
|
+
*/
|
|
82
|
+
charges(request?: ChargesRequest, options?: RequestOptions): Promise<ChargesResponse>;
|
|
67
83
|
/**
|
|
68
84
|
* Whether this workspace is scheduled for deletion, and if so when the grace
|
|
69
85
|
* period ends and when the deletion was…
|
|
@@ -82,8 +98,10 @@ export interface Client {
|
|
|
82
98
|
*
|
|
83
99
|
* Read this workspace's Nemphi plan: which plan it is on, whether it is paid
|
|
84
100
|
* up and on which cycle, the charges waiting to be paid with their payment
|
|
85
|
-
* links, today's AI use against the plan's daily allowance and the
|
|
86
|
-
*
|
|
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
|
|
87
105
|
* unlocks, and every plan it can move to with its prices and models. While a
|
|
88
106
|
* paid period runs, each priced plan also carries what moving to it costs
|
|
89
107
|
* now, prorated: the unused part of the period is credited.
|
|
@@ -117,6 +135,24 @@ export interface Client {
|
|
|
117
135
|
* it.
|
|
118
136
|
*/
|
|
119
137
|
scheduleDeletion(request: ScheduleDeletionRequest, options?: RequestOptions): Promise<ScheduleDeletionResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* Set the most this workspace's extra AI may bill in a calendar month (UTC),
|
|
140
|
+
* in whole units of its plan's currency, and…
|
|
141
|
+
*
|
|
142
|
+
* Set the most this workspace's extra AI may bill in a calendar month (UTC),
|
|
143
|
+
* in whole units of its plan's currency, and the shares of that budget at
|
|
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.
|
|
151
|
+
*
|
|
152
|
+
* Risk: `financial`. Acts as one person: a machine-made call always waits for
|
|
153
|
+
* that person's approval.
|
|
154
|
+
*/
|
|
155
|
+
setBudget(request?: SetBudgetRequest, options?: RequestOptions): Promise<SetBudgetResponse>;
|
|
120
156
|
/**
|
|
121
157
|
* Choose the AI model this workspace's agents and chat run on, among the
|
|
122
158
|
* models its plan unlocks (tenants.plan lists them)
|
|
@@ -130,20 +166,6 @@ export interface Client {
|
|
|
130
166
|
* that person's approval.
|
|
131
167
|
*/
|
|
132
168
|
setModel(request?: SetModelRequest, options?: RequestOptions): Promise<SetModelResponse>;
|
|
133
|
-
/**
|
|
134
|
-
* Set how much AI this workspace may use each day past its plan's daily
|
|
135
|
-
* allowance, in USD of model cost
|
|
136
|
-
*
|
|
137
|
-
* Set how much AI this workspace may use each day past its plan's daily
|
|
138
|
-
* allowance, in USD of model cost. Past the allowance AI keeps working up to
|
|
139
|
-
* the cap, and what it uses is billed monthly at the plan's overage price
|
|
140
|
-
* (tenants.plan shows it). 0 turns overage off, so AI stops at the allowance.
|
|
141
|
-
* Only a paid plan sells overage. Owners and admins only.
|
|
142
|
-
*
|
|
143
|
-
* Risk: `financial`. Acts as one person: a machine-made call always waits for
|
|
144
|
-
* that person's approval.
|
|
145
|
-
*/
|
|
146
|
-
setOverage(request: SetOverageRequest, options?: RequestOptions): Promise<SetOverageResponse>;
|
|
147
169
|
/**
|
|
148
170
|
* Rename this workspace's display name
|
|
149
171
|
*
|
|
@@ -170,11 +192,6 @@ export interface AttachCardRequest {
|
|
|
170
192
|
* The token the processor gave the browser for the card
|
|
171
193
|
*/
|
|
172
194
|
cardToken: string;
|
|
173
|
-
/**
|
|
174
|
-
* USD of model cost a day the workspace pays for; a Studio workspace starts
|
|
175
|
-
* at 2
|
|
176
|
-
*/
|
|
177
|
-
dailyCapUsd?: number;
|
|
178
195
|
/**
|
|
179
196
|
* The card's expiry month
|
|
180
197
|
*/
|
|
@@ -228,6 +245,17 @@ export type ChangePlanResponse = {
|
|
|
228
245
|
output: TenantsChanged;
|
|
229
246
|
tool: "tenants.change_plan";
|
|
230
247
|
} | Pending;
|
|
248
|
+
export interface ChargesRequest {
|
|
249
|
+
/**
|
|
250
|
+
* Lists the charges created before this instant (RFC 3339): a page's
|
|
251
|
+
* next_before
|
|
252
|
+
*/
|
|
253
|
+
before?: string;
|
|
254
|
+
}
|
|
255
|
+
export type ChargesResponse = {
|
|
256
|
+
output: TenantsChargeHistory;
|
|
257
|
+
tool: "tenants.charges";
|
|
258
|
+
} | Pending;
|
|
231
259
|
export interface DeletionStatusRequest {
|
|
232
260
|
body: {
|
|
233
261
|
[key: string]: unknown;
|
|
@@ -266,6 +294,22 @@ export type ScheduleDeletionResponse = {
|
|
|
266
294
|
output: TenantsDeletionView;
|
|
267
295
|
tool: "tenants.schedule_deletion";
|
|
268
296
|
} | Pending;
|
|
297
|
+
export interface SetBudgetRequest {
|
|
298
|
+
/**
|
|
299
|
+
* The shares of the budget, in percent, at which the owners and admins are
|
|
300
|
+
* told; left out keeps the current ones (50, 90 and 100 for a first budget)
|
|
301
|
+
*/
|
|
302
|
+
alerts?: ("50" | "75" | "90" | "100")[];
|
|
303
|
+
/**
|
|
304
|
+
* The most a month of extra AI may bill, in whole units of the plan's
|
|
305
|
+
* currency; 0 removes the budget and turns extra AI off, left out keeps it
|
|
306
|
+
*/
|
|
307
|
+
monthlyBudget?: number;
|
|
308
|
+
}
|
|
309
|
+
export type SetBudgetResponse = {
|
|
310
|
+
output: TenantsBudgetChanged;
|
|
311
|
+
tool: "tenants.set_budget";
|
|
312
|
+
} | Pending;
|
|
269
313
|
export interface SetModelRequest {
|
|
270
314
|
/**
|
|
271
315
|
* The model to run on, one the plan unlocks; empty runs the platform's
|
|
@@ -276,17 +320,6 @@ export type SetModelResponse = {
|
|
|
276
320
|
output: TenantsModelChanged;
|
|
277
321
|
tool: "tenants.set_model";
|
|
278
322
|
} | Pending;
|
|
279
|
-
export interface SetOverageRequest {
|
|
280
|
-
/**
|
|
281
|
-
* USD of AI a day the workspace pays for past its plan's allowance; 0 turns
|
|
282
|
-
* overage off
|
|
283
|
-
*/
|
|
284
|
-
dailyCapUsd: number;
|
|
285
|
-
}
|
|
286
|
-
export type SetOverageResponse = {
|
|
287
|
-
output: TenantsOverageChanged;
|
|
288
|
-
tool: "tenants.set_overage";
|
|
289
|
-
} | Pending;
|
|
290
323
|
export interface UpdateRequest {
|
|
291
324
|
/**
|
|
292
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,gBAAgB,E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C;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 { TenantsCardAddedCodec, TenantsCardStatusCodec, TenantsChangedCodec,
|
|
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
|
}
|
|
@@ -11,12 +11,13 @@ export function bind(transport) {
|
|
|
11
11
|
cancelDeletion: (request, options) => transport.send(CancelDeletionOperation, request, options),
|
|
12
12
|
card: (request, options) => transport.send(CardOperation, request, options),
|
|
13
13
|
changePlan: (request, options) => transport.send(ChangePlanOperation, request, options),
|
|
14
|
+
charges: (request, options) => transport.send(ChargesOperation, request, options),
|
|
14
15
|
deletionStatus: (request, options) => transport.send(DeletionStatusOperation, request, options),
|
|
15
16
|
plan: (request, options) => transport.send(PlanOperation, request, options),
|
|
16
17
|
removeCard: (request, options) => transport.send(RemoveCardOperation, request, options),
|
|
17
18
|
scheduleDeletion: (request, options) => transport.send(ScheduleDeletionOperation, request, options),
|
|
19
|
+
setBudget: (request, options) => transport.send(SetBudgetOperation, request, options),
|
|
18
20
|
setModel: (request, options) => transport.send(SetModelOperation, request, options),
|
|
19
|
-
setOverage: (request, options) => transport.send(SetOverageOperation, request, options),
|
|
20
21
|
update: (request, options) => transport.send(UpdateOperation, request, options),
|
|
21
22
|
};
|
|
22
23
|
}
|
|
@@ -24,7 +25,7 @@ const AttachCardOperation = {
|
|
|
24
25
|
method: "POST",
|
|
25
26
|
route: "/v1/tools/tenants.attach_card:invoke",
|
|
26
27
|
body: "flat",
|
|
27
|
-
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"]]),
|
|
28
29
|
response: object([["output", null, () => TenantsCardAddedCodec]]),
|
|
29
30
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
30
31
|
};
|
|
@@ -49,6 +50,13 @@ const ChangePlanOperation = {
|
|
|
49
50
|
response: object([["output", null, () => TenantsChangedCodec]]),
|
|
50
51
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
51
52
|
};
|
|
53
|
+
const ChargesOperation = {
|
|
54
|
+
method: "POST",
|
|
55
|
+
route: "/v1/tools/tenants.charges:invoke",
|
|
56
|
+
body: "flat",
|
|
57
|
+
response: object([["output", null, () => TenantsChargeHistoryCodec]]),
|
|
58
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
59
|
+
};
|
|
52
60
|
const DeletionStatusOperation = {
|
|
53
61
|
method: "POST",
|
|
54
62
|
route: "/v1/tools/tenants.deletion_status:invoke",
|
|
@@ -78,19 +86,19 @@ const ScheduleDeletionOperation = {
|
|
|
78
86
|
response: object([["output", null, () => TenantsDeletionViewCodec]]),
|
|
79
87
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
80
88
|
};
|
|
81
|
-
const
|
|
89
|
+
const SetBudgetOperation = {
|
|
82
90
|
method: "POST",
|
|
83
|
-
route: "/v1/tools/tenants.
|
|
91
|
+
route: "/v1/tools/tenants.set_budget:invoke",
|
|
84
92
|
body: "flat",
|
|
85
|
-
|
|
93
|
+
request: object([["monthly_budget", "monthlyBudget"]]),
|
|
94
|
+
response: object([["output", null, () => TenantsBudgetChangedCodec]]),
|
|
86
95
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
87
96
|
};
|
|
88
|
-
const
|
|
97
|
+
const SetModelOperation = {
|
|
89
98
|
method: "POST",
|
|
90
|
-
route: "/v1/tools/tenants.
|
|
99
|
+
route: "/v1/tools/tenants.set_model:invoke",
|
|
91
100
|
body: "flat",
|
|
92
|
-
|
|
93
|
-
response: object([["output", null, () => TenantsOverageChangedCodec]]),
|
|
101
|
+
response: null,
|
|
94
102
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "422": true, "429": true },
|
|
95
103
|
};
|
|
96
104
|
const UpdateOperation = {
|
|
@@ -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,qBAAqB,EAErB,sBAAsB,EAEtB,mBAAmB,EAEnB,wBAAwB,EAGxB,
|
|
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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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, DeletionStatusRequest, DeletionStatusResponse, PlanRequest, PlanResponse, RemoveCardRequest, RemoveCardResponse, ScheduleDeletionRequest, ScheduleDeletionResponse,
|
|
5
|
-
export type { TenantsAiUseView, TenantsCardAdded, TenantsCardStatus, TenantsCardView, TenantsChanged, 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,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,
|
|
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"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export interface TenantsAiUseView {
|
|
2
|
+
budgetAlerts: number[];
|
|
3
|
+
budgetSpent: boolean;
|
|
2
4
|
model: string;
|
|
3
5
|
models: TenantsModelView[];
|
|
4
|
-
|
|
6
|
+
monthBilledCents: number;
|
|
7
|
+
monthlyBudgetCents: number;
|
|
5
8
|
overageCentsPerUsd: number;
|
|
6
|
-
overageLimitMicros: number;
|
|
7
9
|
overageMicros: number;
|
|
8
10
|
overageSuspended: boolean;
|
|
9
11
|
runs: number;
|
|
@@ -11,18 +13,24 @@ export interface TenantsAiUseView {
|
|
|
11
13
|
spendLimitMicros: number | null;
|
|
12
14
|
spentMicros: number;
|
|
13
15
|
}
|
|
16
|
+
export interface TenantsBudgetChanged {
|
|
17
|
+
budgetAlerts: number[];
|
|
18
|
+
currency: string;
|
|
19
|
+
monthlyBudgetCents: number;
|
|
20
|
+
}
|
|
14
21
|
export interface TenantsCardAdded {
|
|
15
|
-
dailyCapMicros: number;
|
|
16
22
|
id: string;
|
|
23
|
+
monthlyBudgetCents: number;
|
|
17
24
|
status: string;
|
|
18
25
|
}
|
|
19
26
|
export interface TenantsCardStatus {
|
|
20
27
|
attempt?: TenantsCardView;
|
|
21
28
|
card?: TenantsCardView;
|
|
22
29
|
centsPerUsd: number;
|
|
23
|
-
dailyCapMicros: number;
|
|
24
30
|
hosting?: TenantsHostingView;
|
|
25
31
|
managed: boolean;
|
|
32
|
+
monthBilledCents: number;
|
|
33
|
+
monthlyBudgetCents: number;
|
|
26
34
|
processor?: TenantsProcessorView;
|
|
27
35
|
spentMicros: number;
|
|
28
36
|
suspended: boolean;
|
|
@@ -49,6 +57,31 @@ export interface TenantsChanged {
|
|
|
49
57
|
plan: string;
|
|
50
58
|
planName: string;
|
|
51
59
|
}
|
|
60
|
+
export interface TenantsChargeHistory {
|
|
61
|
+
charges: TenantsChargeRecord[];
|
|
62
|
+
nextBefore?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface TenantsChargeRecord {
|
|
65
|
+
amountCents: number;
|
|
66
|
+
cardBrand: string;
|
|
67
|
+
cardLastFour: string;
|
|
68
|
+
checkoutUrl: string;
|
|
69
|
+
createdAt: string;
|
|
70
|
+
creditCents: number;
|
|
71
|
+
currency: string;
|
|
72
|
+
cycle: string;
|
|
73
|
+
error: string;
|
|
74
|
+
id: string;
|
|
75
|
+
kind: string;
|
|
76
|
+
paidAt?: string;
|
|
77
|
+
periodEnd?: string;
|
|
78
|
+
periodStart?: string;
|
|
79
|
+
planName: string;
|
|
80
|
+
status: string;
|
|
81
|
+
units: number;
|
|
82
|
+
usageFrom?: string;
|
|
83
|
+
usageTo?: string;
|
|
84
|
+
}
|
|
52
85
|
export interface TenantsChargeView {
|
|
53
86
|
amountCents: number;
|
|
54
87
|
checkoutUrl: string;
|
|
@@ -84,10 +117,6 @@ export interface TenantsModelView {
|
|
|
84
117
|
id: string;
|
|
85
118
|
name: string;
|
|
86
119
|
}
|
|
87
|
-
export interface TenantsOverageChanged {
|
|
88
|
-
dailyCapMicros: number;
|
|
89
|
-
overageCentsPerUsd: number;
|
|
90
|
-
}
|
|
91
120
|
export interface TenantsPlanStatus {
|
|
92
121
|
active: boolean;
|
|
93
122
|
ai: TenantsAiUseView;
|
|
@@ -141,14 +170,16 @@ export interface TenantsTenantView {
|
|
|
141
170
|
slug: string;
|
|
142
171
|
}
|
|
143
172
|
export declare const TenantsAiUseViewCodec: import("../_/codec.js").Codec;
|
|
173
|
+
export declare const TenantsBudgetChangedCodec: import("../_/codec.js").Codec;
|
|
144
174
|
export declare const TenantsCardAddedCodec: import("../_/codec.js").Codec;
|
|
145
175
|
export declare const TenantsCardStatusCodec: import("../_/codec.js").Codec;
|
|
146
176
|
export declare const TenantsCardViewCodec: import("../_/codec.js").Codec;
|
|
147
177
|
export declare const TenantsChangedCodec: import("../_/codec.js").Codec;
|
|
178
|
+
export declare const TenantsChargeHistoryCodec: import("../_/codec.js").Codec;
|
|
179
|
+
export declare const TenantsChargeRecordCodec: import("../_/codec.js").Codec;
|
|
148
180
|
export declare const TenantsChargeViewCodec: import("../_/codec.js").Codec;
|
|
149
181
|
export declare const TenantsDeletionViewCodec: import("../_/codec.js").Codec;
|
|
150
182
|
export declare const TenantsHostingViewCodec: import("../_/codec.js").Codec;
|
|
151
|
-
export declare const TenantsOverageChangedCodec: import("../_/codec.js").Codec;
|
|
152
183
|
export declare const TenantsPlanStatusCodec: import("../_/codec.js").Codec;
|
|
153
184
|
export declare const TenantsPlanViewCodec: import("../_/codec.js").Codec;
|
|
154
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,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,
|
|
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,kBAAkB,EAAE,M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AGpC,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"}
|
|
@@ -2,24 +2,31 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { array, object } from "../_/index.js";
|
|
4
4
|
export const TenantsAiUseViewCodec = object([
|
|
5
|
-
["
|
|
5
|
+
["budget_alerts", "budgetAlerts"],
|
|
6
|
+
["budget_spent", "budgetSpent"],
|
|
7
|
+
["month_billed_cents", "monthBilledCents"],
|
|
8
|
+
["monthly_budget_cents", "monthlyBudgetCents"],
|
|
6
9
|
["overage_cents_per_usd", "overageCentsPerUsd"],
|
|
7
|
-
["overage_limit_micros", "overageLimitMicros"],
|
|
8
10
|
["overage_micros", "overageMicros"],
|
|
9
11
|
["overage_suspended", "overageSuspended"],
|
|
10
12
|
["runs_limit", "runsLimit"],
|
|
11
13
|
["spend_limit_micros", "spendLimitMicros"],
|
|
12
14
|
["spent_micros", "spentMicros"],
|
|
13
15
|
]);
|
|
16
|
+
export const TenantsBudgetChangedCodec = object([
|
|
17
|
+
["budget_alerts", "budgetAlerts"],
|
|
18
|
+
["monthly_budget_cents", "monthlyBudgetCents"],
|
|
19
|
+
]);
|
|
14
20
|
export const TenantsCardAddedCodec = object([
|
|
15
|
-
["
|
|
21
|
+
["monthly_budget_cents", "monthlyBudgetCents"],
|
|
16
22
|
]);
|
|
17
23
|
export const TenantsCardStatusCodec = object([
|
|
18
24
|
["attempt", null, () => TenantsCardViewCodec],
|
|
19
25
|
["card", null, () => TenantsCardViewCodec],
|
|
20
26
|
["cents_per_usd", "centsPerUsd"],
|
|
21
|
-
["daily_cap_micros", "dailyCapMicros"],
|
|
22
27
|
["hosting", null, () => TenantsHostingViewCodec],
|
|
28
|
+
["month_billed_cents", "monthBilledCents"],
|
|
29
|
+
["monthly_budget_cents", "monthlyBudgetCents"],
|
|
23
30
|
["processor", null, () => TenantsProcessorViewCodec],
|
|
24
31
|
["spent_micros", "spentMicros"],
|
|
25
32
|
]);
|
|
@@ -37,6 +44,24 @@ export const TenantsChangedCodec = object([
|
|
|
37
44
|
["paid_through", "paidThrough"],
|
|
38
45
|
["plan_name", "planName"],
|
|
39
46
|
]);
|
|
47
|
+
export const TenantsChargeHistoryCodec = object([
|
|
48
|
+
["charges", null, array(() => TenantsChargeRecordCodec)],
|
|
49
|
+
["next_before", "nextBefore"],
|
|
50
|
+
]);
|
|
51
|
+
export const TenantsChargeRecordCodec = object([
|
|
52
|
+
["amount_cents", "amountCents"],
|
|
53
|
+
["card_brand", "cardBrand"],
|
|
54
|
+
["card_last_four", "cardLastFour"],
|
|
55
|
+
["checkout_url", "checkoutUrl"],
|
|
56
|
+
["created_at", "createdAt"],
|
|
57
|
+
["credit_cents", "creditCents"],
|
|
58
|
+
["paid_at", "paidAt"],
|
|
59
|
+
["period_end", "periodEnd"],
|
|
60
|
+
["period_start", "periodStart"],
|
|
61
|
+
["plan_name", "planName"],
|
|
62
|
+
["usage_from", "usageFrom"],
|
|
63
|
+
["usage_to", "usageTo"],
|
|
64
|
+
]);
|
|
40
65
|
export const TenantsChargeViewCodec = object([
|
|
41
66
|
["amount_cents", "amountCents"],
|
|
42
67
|
["checkout_url", "checkoutUrl"],
|
|
@@ -56,10 +81,6 @@ export const TenantsDeletionViewCodec = object([
|
|
|
56
81
|
export const TenantsHostingViewCodec = object([
|
|
57
82
|
["monthly_price_cents", "monthlyPriceCents"],
|
|
58
83
|
]);
|
|
59
|
-
export const TenantsOverageChangedCodec = object([
|
|
60
|
-
["daily_cap_micros", "dailyCapMicros"],
|
|
61
|
-
["overage_cents_per_usd", "overageCentsPerUsd"],
|
|
62
|
-
]);
|
|
63
84
|
export const TenantsPlanStatusCodec = object([
|
|
64
85
|
["ai", null, () => TenantsAiUseViewCodec],
|
|
65
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,CAAC;IAC9C,CAAC,uBAAuB,EAAE,oBAAoB,CAAC;IAC/C,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACnC,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;IACzC,CAAC,YAAY,EAAE,WAAW,CAAC;IAC3B,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;IAC1C,CAAC,cAAc,EAAE,aAAa,CAAC;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;IAC9C,CAAC,eAAe,EAAE,cAAc,CAAC;IACjC,CAAC,sBAAsB,EAAE,oBAAoB,CAAC;CAC/C,CAAC,C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