@arbol-ai/sdk 5.44.0 → 5.46.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.
Files changed (231) hide show
  1. package/dist/account/client.d.ts +0 -16
  2. package/dist/account/client.js +0 -40
  3. package/dist/account/index.d.ts +1 -1
  4. package/dist/account/models.d.ts +0 -93
  5. package/dist/agenda/appointments/client.d.ts +14 -243
  6. package/dist/agenda/appointments/client.js +18 -17
  7. package/dist/agenda/appointments/index.d.ts +1 -1
  8. package/dist/agenda/appointments/models.d.ts +612 -2
  9. package/dist/agenda/appointments/models.js +14 -2
  10. package/dist/agenda/availability/client.d.ts +2 -7
  11. package/dist/agenda/availability/client.js +5 -4
  12. package/dist/agenda/availability/index.d.ts +1 -0
  13. package/dist/agenda/availability/models.d.ts +67 -0
  14. package/dist/agenda/bookingLocations/client.d.ts +2 -7
  15. package/dist/agenda/bookingLocations/client.js +4 -4
  16. package/dist/agenda/bookingLocations/index.d.ts +1 -0
  17. package/dist/agenda/bookingLocations/models.d.ts +67 -0
  18. package/dist/agenda/bookingOfferings/client.d.ts +2 -8
  19. package/dist/agenda/bookingOfferings/client.js +1 -1
  20. package/dist/agenda/bookingOfferings/index.d.ts +1 -1
  21. package/dist/agenda/bookingOfferings/models.d.ts +79 -1
  22. package/dist/agenda/bookingRequirements/client.d.ts +2 -75
  23. package/dist/agenda/bookingRequirements/client.js +1 -1
  24. package/dist/agenda/bookingRequirements/index.d.ts +1 -0
  25. package/dist/agenda/bookingRequirements/models.d.ts +182 -0
  26. package/dist/agenda/bookingSlots/client.d.ts +2 -7
  27. package/dist/agenda/bookingSlots/client.js +5 -4
  28. package/dist/agenda/bookingSlots/index.d.ts +1 -0
  29. package/dist/agenda/bookingSlots/models.d.ts +67 -0
  30. package/dist/agenda/bookingSlots/models.js +3 -0
  31. package/dist/agenda/bookings/client.d.ts +13 -188
  32. package/dist/agenda/bookings/client.js +13 -13
  33. package/dist/agenda/bookings/index.d.ts +1 -1
  34. package/dist/agenda/bookings/models.d.ts +526 -1
  35. package/dist/agenda/bookings/models.js +7 -1
  36. package/dist/agenda/firstAvailability/client.d.ts +2 -8
  37. package/dist/agenda/firstAvailability/client.js +4 -4
  38. package/dist/agenda/firstAvailability/index.d.ts +1 -1
  39. package/dist/agenda/firstAvailability/models.d.ts +80 -1
  40. package/dist/agenda/firstAvailability/models.js +4 -1
  41. package/dist/agenda/index.d.ts +1 -1
  42. package/dist/agenda/locations/client.d.ts +2 -7
  43. package/dist/agenda/locations/client.js +4 -4
  44. package/dist/agenda/locations/index.d.ts +1 -0
  45. package/dist/agenda/locations/models.d.ts +67 -0
  46. package/dist/agenda/locations/models.js +3 -0
  47. package/dist/agenda/models.d.ts +2193 -839
  48. package/dist/agenda/models.js +9 -0
  49. package/dist/agenda/nearestBookingSlots/client.d.ts +2 -8
  50. package/dist/agenda/nearestBookingSlots/client.js +4 -4
  51. package/dist/agenda/nearestBookingSlots/index.d.ts +1 -1
  52. package/dist/agenda/nearestBookingSlots/models.d.ts +80 -2
  53. package/dist/agenda/nearestBookingSlots/models.js +4 -1
  54. package/dist/agenda/offerings/client.d.ts +7 -146
  55. package/dist/agenda/offerings/client.js +8 -8
  56. package/dist/agenda/offerings/index.d.ts +1 -1
  57. package/dist/agenda/offerings/models.d.ts +349 -1
  58. package/dist/agenda/offerings/models.js +6 -0
  59. package/dist/agenda/resourceSchedules/client.d.ts +4 -51
  60. package/dist/agenda/resourceSchedules/client.js +5 -4
  61. package/dist/agenda/resourceSchedules/index.d.ts +1 -0
  62. package/dist/agenda/resourceSchedules/models.d.ts +133 -0
  63. package/dist/agenda/resourceSchedules/models.js +12 -0
  64. package/dist/agenda/resources/client.d.ts +7 -99
  65. package/dist/agenda/resources/client.js +8 -8
  66. package/dist/agenda/resources/index.d.ts +1 -1
  67. package/dist/agenda/resources/models.d.ts +302 -1
  68. package/dist/agenda/resources/models.js +6 -0
  69. package/dist/agenda/scheduleRules/client.d.ts +7 -172
  70. package/dist/agenda/scheduleRules/client.js +10 -10
  71. package/dist/agenda/scheduleRules/index.d.ts +1 -1
  72. package/dist/agenda/scheduleRules/models.d.ts +520 -1
  73. package/dist/agenda/scheduleRules/models.js +31 -0
  74. package/dist/agenda/services/client.d.ts +7 -71
  75. package/dist/agenda/services/client.js +8 -8
  76. package/dist/agenda/services/index.d.ts +1 -1
  77. package/dist/agenda/services/models.d.ts +274 -1
  78. package/dist/agenda/services/models.js +6 -0
  79. package/dist/agenda/waitlist/client.d.ts +9 -217
  80. package/dist/agenda/waitlist/client.js +13 -13
  81. package/dist/agenda/waitlist/index.d.ts +1 -1
  82. package/dist/agenda/waitlist/models.d.ts +482 -1
  83. package/dist/agenda/waitlist/models.js +16 -1
  84. package/dist/index.d.ts +1 -1
  85. package/dist/models.d.ts +0 -20
  86. package/dist/raiz/agents/client.d.ts +32 -158
  87. package/dist/raiz/agents/client.js +12 -12
  88. package/dist/raiz/agents/index.d.ts +1 -1
  89. package/dist/raiz/agents/models.d.ts +334 -2
  90. package/dist/raiz/agents/models.js +13 -1
  91. package/dist/raiz/bulletins/client.d.ts +10 -74
  92. package/dist/raiz/bulletins/client.js +13 -14
  93. package/dist/raiz/bulletins/index.d.ts +1 -1
  94. package/dist/raiz/bulletins/models.d.ts +112 -1
  95. package/dist/raiz/bulletins/models.js +14 -0
  96. package/dist/raiz/campaigns/client.d.ts +11 -140
  97. package/dist/raiz/campaigns/client.js +14 -14
  98. package/dist/raiz/campaigns/index.d.ts +1 -1
  99. package/dist/raiz/campaigns/models.d.ts +343 -2
  100. package/dist/raiz/campaigns/models.js +14 -1
  101. package/dist/raiz/changes/client.d.ts +2 -8
  102. package/dist/raiz/changes/client.js +4 -4
  103. package/dist/raiz/changes/index.d.ts +1 -1
  104. package/dist/raiz/changes/models.d.ts +41 -1
  105. package/dist/raiz/changes/models.js +3 -0
  106. package/dist/raiz/channels/client.d.ts +15 -142
  107. package/dist/raiz/channels/client.js +16 -18
  108. package/dist/raiz/channels/index.d.ts +1 -1
  109. package/dist/raiz/channels/models.d.ts +1511 -2
  110. package/dist/raiz/channels/models.js +12 -2
  111. package/dist/raiz/contacts/client.d.ts +12 -117
  112. package/dist/raiz/contacts/client.js +15 -15
  113. package/dist/raiz/contacts/index.d.ts +1 -1
  114. package/dist/raiz/contacts/models.d.ts +305 -2
  115. package/dist/raiz/contacts/models.js +10 -1
  116. package/dist/raiz/conversations/client.d.ts +18 -99
  117. package/dist/raiz/conversations/client.js +12 -13
  118. package/dist/raiz/conversations/index.d.ts +1 -1
  119. package/dist/raiz/conversations/models.d.ts +253 -2
  120. package/dist/raiz/conversations/models.js +8 -2
  121. package/dist/raiz/definitions/client.d.ts +8 -115
  122. package/dist/raiz/definitions/client.js +10 -10
  123. package/dist/raiz/definitions/index.d.ts +1 -1
  124. package/dist/raiz/definitions/models.d.ts +224 -1
  125. package/dist/raiz/definitions/models.js +6 -0
  126. package/dist/raiz/evalCases/client.d.ts +10 -57
  127. package/dist/raiz/evalCases/client.js +8 -8
  128. package/dist/raiz/evalCases/index.d.ts +1 -1
  129. package/dist/raiz/evalCases/models.d.ts +78 -1
  130. package/dist/raiz/evalCases/models.js +6 -0
  131. package/dist/raiz/evalRuns/client.d.ts +4 -45
  132. package/dist/raiz/evalRuns/client.js +6 -6
  133. package/dist/raiz/evalRuns/index.d.ts +1 -1
  134. package/dist/raiz/evalRuns/models.d.ts +85 -0
  135. package/dist/raiz/evalRuns/models.js +3 -0
  136. package/dist/raiz/facts/client.d.ts +6 -65
  137. package/dist/raiz/facts/client.js +7 -7
  138. package/dist/raiz/facts/index.d.ts +1 -0
  139. package/dist/raiz/facts/models.d.ts +120 -0
  140. package/dist/raiz/facts/models.js +10 -0
  141. package/dist/raiz/index.d.ts +1 -1
  142. package/dist/raiz/knowledge/client.d.ts +10 -130
  143. package/dist/raiz/knowledge/client.js +13 -13
  144. package/dist/raiz/knowledge/index.d.ts +1 -1
  145. package/dist/raiz/knowledge/models.d.ts +256 -1
  146. package/dist/raiz/knowledge/models.js +12 -0
  147. package/dist/raiz/models.d.ts +1499 -825
  148. package/dist/raiz/models.js +3 -0
  149. package/dist/raiz/organization/client.d.ts +7 -70
  150. package/dist/raiz/organization/client.js +8 -8
  151. package/dist/raiz/organization/index.d.ts +1 -1
  152. package/dist/raiz/organization/models.d.ts +178 -1
  153. package/dist/raiz/organization/models.js +11 -0
  154. package/dist/raiz/profiles/client.d.ts +8 -87
  155. package/dist/raiz/profiles/client.js +10 -10
  156. package/dist/raiz/profiles/index.d.ts +1 -1
  157. package/dist/raiz/profiles/models.d.ts +206 -2
  158. package/dist/raiz/profiles/models.js +6 -0
  159. package/dist/raiz/reports/client.d.ts +5 -8
  160. package/dist/raiz/reports/client.js +4 -4
  161. package/dist/raiz/reports/index.d.ts +1 -1
  162. package/dist/raiz/reports/models.d.ts +41 -0
  163. package/dist/raiz/reports/models.js +3 -0
  164. package/dist/raiz/suppressions/client.d.ts +4 -31
  165. package/dist/raiz/suppressions/client.js +6 -6
  166. package/dist/raiz/suppressions/index.d.ts +1 -1
  167. package/dist/raiz/suppressions/models.d.ts +114 -1
  168. package/dist/raiz/suppressions/models.js +6 -0
  169. package/dist/raiz/tasks/client.d.ts +12 -32
  170. package/dist/raiz/tasks/client.js +11 -11
  171. package/dist/raiz/tasks/index.d.ts +1 -1
  172. package/dist/raiz/tasks/models.d.ts +108 -2
  173. package/dist/raiz/tasks/models.js +4 -1
  174. package/dist/raiz/templates/client.d.ts +7 -84
  175. package/dist/raiz/templates/client.js +5 -4
  176. package/dist/raiz/templates/index.d.ts +1 -1
  177. package/dist/raiz/templates/models.d.ts +214 -1
  178. package/dist/raiz/templates/models.js +4 -1
  179. package/dist/raiz/voices/client.d.ts +2 -8
  180. package/dist/raiz/voices/client.js +1 -1
  181. package/dist/raiz/voices/index.d.ts +1 -1
  182. package/dist/raiz/voices/models.d.ts +40 -1
  183. package/package.json +3 -3
  184. package/dist/account/billing/client.d.ts +0 -22
  185. package/dist/account/billing/client.js +0 -18
  186. package/dist/account/billing/index.d.ts +0 -5
  187. package/dist/account/billing/index.js +0 -4
  188. package/dist/account/billing/models.d.ts +0 -74
  189. package/dist/account/billing/models.js +0 -10
  190. package/dist/account/billingProfiles/client.d.ts +0 -39
  191. package/dist/account/billingProfiles/client.js +0 -25
  192. package/dist/account/billingProfiles/index.d.ts +0 -5
  193. package/dist/account/billingProfiles/index.js +0 -4
  194. package/dist/account/billingProfiles/models.d.ts +0 -58
  195. package/dist/account/invoiceDocuments/client.d.ts +0 -25
  196. package/dist/account/invoiceDocuments/client.js +0 -17
  197. package/dist/account/invoiceDocuments/index.d.ts +0 -5
  198. package/dist/account/invoiceDocuments/index.js +0 -4
  199. package/dist/account/invoiceDocuments/models.d.ts +0 -35
  200. package/dist/account/invoices/client.d.ts +0 -47
  201. package/dist/account/invoices/client.js +0 -26
  202. package/dist/account/invoices/index.d.ts +0 -5
  203. package/dist/account/invoices/index.js +0 -4
  204. package/dist/account/invoices/models.d.ts +0 -135
  205. package/dist/account/invoices/models.js +0 -24
  206. package/dist/account/payments/client.d.ts +0 -34
  207. package/dist/account/payments/client.js +0 -19
  208. package/dist/account/payments/index.d.ts +0 -5
  209. package/dist/account/payments/index.js +0 -4
  210. package/dist/account/payments/models.d.ts +0 -64
  211. package/dist/account/payments/models.js +0 -12
  212. package/dist/account/usage/client.d.ts +0 -47
  213. package/dist/account/usage/client.js +0 -18
  214. package/dist/account/usage/index.d.ts +0 -5
  215. package/dist/account/usage/index.js +0 -4
  216. package/dist/account/usage/models.d.ts +0 -51
  217. package/dist/account/usageSummary/client.d.ts +0 -26
  218. package/dist/account/usageSummary/client.js +0 -19
  219. package/dist/account/usageSummary/index.d.ts +0 -5
  220. package/dist/account/usageSummary/index.js +0 -4
  221. package/dist/account/usageSummary/models.d.ts +0 -50
  222. package/dist/account/usageSummary/models.js +0 -9
  223. package/dist/account/walletTransactions/client.d.ts +0 -34
  224. package/dist/account/walletTransactions/client.js +0 -19
  225. package/dist/account/walletTransactions/index.d.ts +0 -5
  226. package/dist/account/walletTransactions/index.js +0 -4
  227. package/dist/account/walletTransactions/models.d.ts +0 -58
  228. package/dist/account/walletTransactions/models.js +0 -12
  229. /package/dist/{account/billingProfiles → agenda/availability}/models.js +0 -0
  230. /package/dist/{account/invoiceDocuments → agenda/bookingLocations}/models.js +0 -0
  231. /package/dist/{account/usage → agenda/bookingRequirements}/models.js +0 -0
@@ -1,19 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { AccountPaymentPageResponseCodec, } from "./models.js";
5
- export function createClient(options) {
6
- return bind(new Transport(options));
7
- }
8
- export function bind(transport) {
9
- return {
10
- list: (request, options) => transport.send(ListOperation, request, options),
11
- };
12
- }
13
- const ListOperation = {
14
- method: "GET",
15
- route: "/v1/account/payments",
16
- query: { cursor: "cursor", direction: "direction", limit: "limit" },
17
- response: AccountPaymentPageResponseCodec,
18
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
- };
@@ -1,5 +0,0 @@
1
- export { ApiError } from "../../_/index.js";
2
- export type { RequestOptions } from "../../_/index.js";
3
- export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
- export type { AccountListPaymentsServiceUnavailableError, AccountListPaymentsServiceUnavailableFailure, AccountPayment, AccountPaymentPage, AccountPaymentPageResponse, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";
@@ -1,64 +0,0 @@
1
- import type { PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { AccountBillingUnavailableFailure } from "../models.js";
3
- /**
4
- * A failed answer.
5
- */
6
- export interface AccountListPaymentsServiceUnavailableError {
7
- data: null;
8
- error: AccountListPaymentsServiceUnavailableFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type AccountListPaymentsServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
16
- export interface AccountPayment {
17
- /**
18
- * Micros of the currency named with it.
19
- */
20
- amountMicros: number;
21
- currency: "USD" | "COP";
22
- id: string;
23
- invoiceId: string;
24
- invoiceNumber: string | null;
25
- receivedAt: Temporal.Instant;
26
- reference: string | null;
27
- /**
28
- * Micros of the currency named with it.
29
- */
30
- refundedMicros: number;
31
- /**
32
- * Micros of the currency named with it.
33
- */
34
- withheldMicros: number;
35
- }
36
- export interface AccountPaymentPage {
37
- /**
38
- * Items admitted by this resource contract within the verified organization.
39
- */
40
- data: AccountPayment[];
41
- /**
42
- * Discriminator for a resource list response.
43
- */
44
- object: "list";
45
- /**
46
- * Opaque navigation cursors for this page’s stable keyset order.
47
- */
48
- pageInfo: PageInfo;
49
- }
50
- /**
51
- * A successful answer.
52
- */
53
- export interface AccountPaymentPageResponse {
54
- data: AccountPaymentPage;
55
- error: null;
56
- /**
57
- * What every answer carries besides its data or error.
58
- */
59
- metadata: ResponseMetadata;
60
- success: true;
61
- }
62
- export declare const AccountPaymentCodec: import("../../_/codec.js").Codec;
63
- export declare const AccountPaymentPageCodec: import("../../_/codec.js").Codec;
64
- export declare const AccountPaymentPageResponseCodec: import("../../_/codec.js").Codec;
@@ -1,12 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { array, instant, object } from "../../_/index.js";
4
- export const AccountPaymentCodec = object([
5
- ["receivedAt", null, instant],
6
- ]);
7
- export const AccountPaymentPageCodec = object([
8
- ["data", null, array(() => AccountPaymentCodec)],
9
- ]);
10
- export const AccountPaymentPageResponseCodec = object([
11
- ["data", null, () => AccountPaymentPageCodec],
12
- ]);
@@ -1,47 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { AccountUsageBreakdownRowPageResponse } from "./models.js";
3
- export interface ClientOptions extends BaseClientOptions {
4
- /**
5
- * The URL the paths of the API are relative to.
6
- */
7
- baseUrl: string;
8
- }
9
- export interface Client {
10
- /**
11
- * Break usage down
12
- *
13
- * Usage and charges in a window of at most 93 days, by meter, agent, model or
14
- * channel: one row per meter, agent, model or channel, by key.
15
- */
16
- list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
17
- }
18
- export declare function createClient(options: ClientOptions): Client;
19
- export declare function bind(transport: Transport): Client;
20
- export interface ListRequest {
21
- /**
22
- * Opaque cursor returned by pageInfo; omit it to request the first page.
23
- */
24
- cursor?: string;
25
- /**
26
- * Direction to traverse the stable keyset ordering from the supplied cursor.
27
- */
28
- direction?: "forward" | "backward";
29
- /**
30
- * Maximum items returned in one page. Defaults to 25; larger reads require
31
- * another cursor.
32
- */
33
- limit?: number;
34
- /**
35
- * The group by.
36
- */
37
- groupBy: "meter" | "agent" | "model" | "channel";
38
- /**
39
- * Inclusive.
40
- */
41
- from: Temporal.Instant;
42
- /**
43
- * Exclusive.
44
- */
45
- to: Temporal.Instant;
46
- }
47
- export type ListResponse = AccountUsageBreakdownRowPageResponse;
@@ -1,18 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- export function createClient(options) {
5
- return bind(new Transport(options));
6
- }
7
- export function bind(transport) {
8
- return {
9
- list: (request, options) => transport.send(ListOperation, request, options),
10
- };
11
- }
12
- const ListOperation = {
13
- method: "GET",
14
- route: "/v1/account/usage",
15
- query: { cursor: "cursor", direction: "direction", limit: "limit", groupBy: "groupBy", from: "from", to: "to" },
16
- response: null,
17
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
18
- };
@@ -1,5 +0,0 @@
1
- export { ApiError } from "../../_/index.js";
2
- export type { RequestOptions } from "../../_/index.js";
3
- export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
- export type { AccountGetUsageBreakdownServiceUnavailableError, AccountGetUsageBreakdownServiceUnavailableFailure, AccountUsageBreakdownRow, AccountUsageBreakdownRowPage, AccountUsageBreakdownRowPageResponse, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";
@@ -1,51 +0,0 @@
1
- import type { PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { AccountBillingUnavailableFailure } from "../models.js";
3
- /**
4
- * A failed answer.
5
- */
6
- export interface AccountGetUsageBreakdownServiceUnavailableError {
7
- data: null;
8
- error: AccountGetUsageBreakdownServiceUnavailableFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type AccountGetUsageBreakdownServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
16
- export interface AccountUsageBreakdownRow {
17
- events: number;
18
- key: string;
19
- label: string | null;
20
- /**
21
- * Micros of the currency named with it.
22
- */
23
- priceMicros: number;
24
- quantity: number;
25
- }
26
- export interface AccountUsageBreakdownRowPage {
27
- /**
28
- * Items admitted by this resource contract within the verified organization.
29
- */
30
- data: AccountUsageBreakdownRow[];
31
- /**
32
- * Discriminator for a resource list response.
33
- */
34
- object: "list";
35
- /**
36
- * Opaque navigation cursors for this page’s stable keyset order.
37
- */
38
- pageInfo: PageInfo;
39
- }
40
- /**
41
- * A successful answer.
42
- */
43
- export interface AccountUsageBreakdownRowPageResponse {
44
- data: AccountUsageBreakdownRowPage;
45
- error: null;
46
- /**
47
- * What every answer carries besides its data or error.
48
- */
49
- metadata: ResponseMetadata;
50
- success: true;
51
- }
@@ -1,26 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type AccountUsageSummaryResponse } from "./models.js";
3
- export interface ClientOptions extends BaseClientOptions {
4
- /**
5
- * The URL the paths of the API are relative to.
6
- */
7
- baseUrl: string;
8
- }
9
- export interface Client {
10
- /**
11
- * Get the usage of a month
12
- *
13
- * What the organization used and was charged in one calendar month (UTC), by
14
- * meter.
15
- */
16
- get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
17
- }
18
- export declare function createClient(options: ClientOptions): Client;
19
- export declare function bind(transport: Transport): Client;
20
- export interface GetRequest {
21
- /**
22
- * YYYY-MM; the current month by default.
23
- */
24
- period?: string;
25
- }
26
- export type GetResponse = AccountUsageSummaryResponse;
@@ -1,19 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { AccountUsageSummaryResponseCodec, } from "./models.js";
5
- export function createClient(options) {
6
- return bind(new Transport(options));
7
- }
8
- export function bind(transport) {
9
- return {
10
- get: (request, options) => transport.send(GetOperation, request, options),
11
- };
12
- }
13
- const GetOperation = {
14
- method: "GET",
15
- route: "/v1/account/usage-summary",
16
- query: { period: "period" },
17
- response: AccountUsageSummaryResponseCodec,
18
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
- };
@@ -1,5 +0,0 @@
1
- export { ApiError } from "../../_/index.js";
2
- export type { RequestOptions } from "../../_/index.js";
3
- export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
5
- export type { AccountGetUsageSummaryServiceUnavailableError, AccountGetUsageSummaryServiceUnavailableFailure, AccountUsageSummary, AccountUsageSummaryResponse, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";
@@ -1,50 +0,0 @@
1
- import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { AccountBillingUnavailableFailure } from "../models.js";
3
- /**
4
- * A failed answer.
5
- */
6
- export interface AccountGetUsageSummaryServiceUnavailableError {
7
- data: null;
8
- error: AccountGetUsageSummaryServiceUnavailableFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type AccountGetUsageSummaryServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
16
- export interface AccountUsageSummary {
17
- byMeter: {
18
- billable: number;
19
- fromGrants: number;
20
- meter: string;
21
- priceMicros: number;
22
- quantity: number;
23
- unit: string | null;
24
- }[];
25
- period: {
26
- current: boolean;
27
- end: Temporal.Instant;
28
- endsAt: Temporal.Instant;
29
- start: Temporal.Instant;
30
- startsAt: Temporal.Instant;
31
- };
32
- /**
33
- * Micros of the currency named with it.
34
- */
35
- priceMicros: number;
36
- }
37
- /**
38
- * A successful answer.
39
- */
40
- export interface AccountUsageSummaryResponse {
41
- data: AccountUsageSummary;
42
- error: null;
43
- /**
44
- * What every answer carries besides its data or error.
45
- */
46
- metadata: ResponseMetadata;
47
- success: true;
48
- }
49
- export declare const AccountUsageSummaryCodec: import("../../_/codec.js").Codec;
50
- export declare const AccountUsageSummaryResponseCodec: import("../../_/codec.js").Codec;
@@ -1,9 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { instant, object } from "../../_/index.js";
4
- export const AccountUsageSummaryCodec = object([
5
- ["period", null, object([["end", null, instant], ["endsAt", null, instant], ["start", null, instant], ["startsAt", null, instant]])],
6
- ]);
7
- export const AccountUsageSummaryResponseCodec = object([
8
- ["data", null, () => AccountUsageSummaryCodec],
9
- ]);
@@ -1,34 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type AccountWalletTransactionPageResponse } from "./models.js";
3
- export interface ClientOptions extends BaseClientOptions {
4
- /**
5
- * The URL the paths of the API are relative to.
6
- */
7
- baseUrl: string;
8
- }
9
- export interface Client {
10
- /**
11
- * List balance movements
12
- *
13
- * The latest 100 movements of the organization's balance, newest first.
14
- */
15
- list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
16
- }
17
- export declare function createClient(options: ClientOptions): Client;
18
- export declare function bind(transport: Transport): Client;
19
- export interface ListRequest {
20
- /**
21
- * Opaque cursor returned by pageInfo; omit it to request the first page.
22
- */
23
- cursor?: string;
24
- /**
25
- * Direction to traverse the stable keyset ordering from the supplied cursor.
26
- */
27
- direction?: "forward" | "backward";
28
- /**
29
- * Maximum items returned in one page. Defaults to 25; larger reads require
30
- * another cursor.
31
- */
32
- limit?: number;
33
- }
34
- export type ListResponse = AccountWalletTransactionPageResponse;
@@ -1,19 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { AccountWalletTransactionPageResponseCodec, } from "./models.js";
5
- export function createClient(options) {
6
- return bind(new Transport(options));
7
- }
8
- export function bind(transport) {
9
- return {
10
- list: (request, options) => transport.send(ListOperation, request, options),
11
- };
12
- }
13
- const ListOperation = {
14
- method: "GET",
15
- route: "/v1/account/wallet-transactions",
16
- query: { cursor: "cursor", direction: "direction", limit: "limit" },
17
- response: AccountWalletTransactionPageResponseCodec,
18
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
- };
@@ -1,5 +0,0 @@
1
- export { ApiError } from "../../_/index.js";
2
- export type { RequestOptions } from "../../_/index.js";
3
- export { createClient } from "./client.js";
4
- export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
5
- export type { AccountListWalletTransactionsServiceUnavailableError, AccountListWalletTransactionsServiceUnavailableFailure, AccountWalletTransaction, AccountWalletTransactionPage, AccountWalletTransactionPageResponse, } from "./models.js";
@@ -1,4 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- export { ApiError } from "../../_/index.js";
4
- export { createClient } from "./client.js";
@@ -1,58 +0,0 @@
1
- import type { PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { AccountBillingUnavailableFailure } from "../models.js";
3
- /**
4
- * A failed answer.
5
- */
6
- export interface AccountListWalletTransactionsServiceUnavailableError {
7
- data: null;
8
- error: AccountListWalletTransactionsServiceUnavailableFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type AccountListWalletTransactionsServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
16
- export interface AccountWalletTransaction {
17
- /**
18
- * Micros of the currency named with it.
19
- */
20
- amountMicros: number;
21
- /**
22
- * Micros of the currency named with it.
23
- */
24
- balanceAfterMicros: number;
25
- createdAt: Temporal.Instant;
26
- id: string;
27
- kind: string;
28
- note: string | null;
29
- }
30
- export interface AccountWalletTransactionPage {
31
- /**
32
- * Items admitted by this resource contract within the verified organization.
33
- */
34
- data: AccountWalletTransaction[];
35
- /**
36
- * Discriminator for a resource list response.
37
- */
38
- object: "list";
39
- /**
40
- * Opaque navigation cursors for this page’s stable keyset order.
41
- */
42
- pageInfo: PageInfo;
43
- }
44
- /**
45
- * A successful answer.
46
- */
47
- export interface AccountWalletTransactionPageResponse {
48
- data: AccountWalletTransactionPage;
49
- error: null;
50
- /**
51
- * What every answer carries besides its data or error.
52
- */
53
- metadata: ResponseMetadata;
54
- success: true;
55
- }
56
- export declare const AccountWalletTransactionCodec: import("../../_/codec.js").Codec;
57
- export declare const AccountWalletTransactionPageCodec: import("../../_/codec.js").Codec;
58
- export declare const AccountWalletTransactionPageResponseCodec: import("../../_/codec.js").Codec;
@@ -1,12 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { array, instant, object } from "../../_/index.js";
4
- export const AccountWalletTransactionCodec = object([
5
- ["createdAt", null, instant],
6
- ]);
7
- export const AccountWalletTransactionPageCodec = object([
8
- ["data", null, array(() => AccountWalletTransactionCodec)],
9
- ]);
10
- export const AccountWalletTransactionPageResponseCodec = object([
11
- ["data", null, () => AccountWalletTransactionPageCodec],
12
- ]);