@arbol-ai/sdk 5.43.0 → 5.45.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 +8 -137
  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 +258 -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 +1474 -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,22 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type AccountBillingOverviewResponse } 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 billing overview
12
- *
13
- * The organization's billing status, balance, active plans, allowances and
14
- * what it spent this month.
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
- export type GetResponse = AccountBillingOverviewResponse;
@@ -1,18 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { AccountBillingOverviewResponseCodec, } 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/billing",
16
- response: AccountBillingOverviewResponseCodec,
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, GetRequest, GetResponse, } from "./client.js";
5
- export type { AccountBillingOverview, AccountBillingOverviewResponse, AccountGetBillingOverviewServiceUnavailableError, AccountGetBillingOverviewServiceUnavailableFailure, } 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,74 +0,0 @@
1
- import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { AccountBillingUnavailableFailure } from "../models.js";
3
- export interface AccountBillingOverview {
4
- balances: {
5
- creditRemainingMicros: number;
6
- kind: "consumable" | "gauge";
7
- limit: number | null;
8
- meter: string;
9
- remaining: number;
10
- unit: string;
11
- }[];
12
- billingMode: "prepaid" | "postpaid";
13
- monthToDate: {
14
- end: Temporal.Instant;
15
- endsAt: Temporal.Instant;
16
- priceMicros: number;
17
- start: Temporal.Instant;
18
- startsAt: Temporal.Instant;
19
- };
20
- /**
21
- * Whether the billing profile has what invoices need.
22
- */
23
- profileComplete: boolean;
24
- status: "trialing" | "active" | "past_due" | "suspended" | "closed";
25
- subscriptions: {
26
- cancelAt: Temporal.Instant | null;
27
- currentPeriodEnd: Temporal.Instant | null;
28
- currentPeriodEndsAt: Temporal.Instant | null;
29
- currentPeriodStart: Temporal.Instant | null;
30
- currentPeriodStartsAt: Temporal.Instant | null;
31
- endsAt: Temporal.Instant | null;
32
- id: string;
33
- kind: "recurring" | "pack";
34
- planSlug: string;
35
- planVersion: number;
36
- startsAt: Temporal.Instant;
37
- status: "active" | "ended";
38
- }[];
39
- suspendedReason: "wallet_exhausted" | "past_due" | "manual" | null;
40
- wallet: {
41
- balanceMicros: number;
42
- creditLimitMicros: number;
43
- currency: "USD";
44
- lowBalanceThresholdMicros: number;
45
- unlimitedCredit: boolean;
46
- };
47
- }
48
- /**
49
- * A successful answer.
50
- */
51
- export interface AccountBillingOverviewResponse {
52
- data: AccountBillingOverview;
53
- error: null;
54
- /**
55
- * What every answer carries besides its data or error.
56
- */
57
- metadata: ResponseMetadata;
58
- success: true;
59
- }
60
- /**
61
- * A failed answer.
62
- */
63
- export interface AccountGetBillingOverviewServiceUnavailableError {
64
- data: null;
65
- error: AccountGetBillingOverviewServiceUnavailableFailure;
66
- /**
67
- * What every answer carries besides its data or error.
68
- */
69
- metadata: ResponseMetadata;
70
- success: false;
71
- }
72
- export type AccountGetBillingOverviewServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
73
- export declare const AccountBillingOverviewCodec: import("../../_/codec.js").Codec;
74
- export declare const AccountBillingOverviewResponseCodec: import("../../_/codec.js").Codec;
@@ -1,10 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { array, instant, object } from "../../_/index.js";
4
- export const AccountBillingOverviewCodec = object([
5
- ["monthToDate", null, object([["end", null, instant], ["endsAt", null, instant], ["start", null, instant], ["startsAt", null, instant]])],
6
- ["subscriptions", null, array(object([["cancelAt", null, instant], ["currentPeriodEnd", null, instant], ["currentPeriodEndsAt", null, instant], ["currentPeriodStart", null, instant], ["currentPeriodStartsAt", null, instant], ["endsAt", null, instant], ["startsAt", null, instant]]))],
7
- ]);
8
- export const AccountBillingOverviewResponseCodec = object([
9
- ["data", null, () => AccountBillingOverviewCodec],
10
- ]);
@@ -1,39 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { AccountBillingProfileResponse, AccountUpdateBillingProfileBody } 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 billing profile
12
- *
13
- * The legal data invoices carry: legal name, tax id, billing email and
14
- * billing day.
15
- */
16
- get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
17
- /**
18
- * Update the billing profile
19
- *
20
- * Changes the legal data invoices carry. A field left out keeps its value.
21
- */
22
- update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
23
- }
24
- export declare function createClient(options: ClientOptions): Client;
25
- export declare function bind(transport: Transport): Client;
26
- export interface GetRequest {
27
- /**
28
- * The billing profile's id: the caller's own organization's id.
29
- */
30
- billingProfileId: string;
31
- }
32
- export type GetResponse = AccountBillingProfileResponse;
33
- export type UpdateRequest = {
34
- /**
35
- * The billing profile's id: the caller's own organization's id.
36
- */
37
- billingProfileId: string;
38
- } & AccountUpdateBillingProfileBody;
39
- export type UpdateResponse = AccountBillingProfileResponse;
@@ -1,25 +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
- get: (request, options) => transport.send(GetOperation, request, options),
10
- update: (request, options) => transport.send(UpdateOperation, request, options),
11
- };
12
- }
13
- const GetOperation = {
14
- method: "GET",
15
- route: "/v1/account/billing-profiles/{billingProfileId}",
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
- };
19
- const UpdateOperation = {
20
- method: "PATCH",
21
- route: "/v1/account/billing-profiles/{billingProfileId}",
22
- body: "flat",
23
- response: null,
24
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
25
- };
@@ -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, UpdateRequest, UpdateResponse, } from "./client.js";
5
- export type { AccountBillingProfile, AccountBillingProfileResponse, AccountGetBillingProfileServiceUnavailableError, AccountGetBillingProfileServiceUnavailableFailure, AccountUpdateBillingProfileBody, AccountUpdateBillingProfileServiceUnavailableError, AccountUpdateBillingProfileServiceUnavailableFailure, } 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 { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
2
- import type { AccountBillingUnavailableFailure } from "../models.js";
3
- export interface AccountBillingProfile {
4
- billingDay: number;
5
- complete: boolean;
6
- currency: "USD" | "COP";
7
- email: string | null;
8
- legalName: string | null;
9
- taxId: string | null;
10
- taxIdType: string | null;
11
- withholdingAgent: boolean;
12
- }
13
- /**
14
- * A successful answer.
15
- */
16
- export interface AccountBillingProfileResponse {
17
- data: AccountBillingProfile;
18
- error: null;
19
- /**
20
- * What every answer carries besides its data or error.
21
- */
22
- metadata: ResponseMetadata;
23
- success: true;
24
- }
25
- /**
26
- * A failed answer.
27
- */
28
- export interface AccountGetBillingProfileServiceUnavailableError {
29
- data: null;
30
- error: AccountGetBillingProfileServiceUnavailableFailure;
31
- /**
32
- * What every answer carries besides its data or error.
33
- */
34
- metadata: ResponseMetadata;
35
- success: false;
36
- }
37
- export type AccountGetBillingProfileServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
38
- export interface AccountUpdateBillingProfileBody {
39
- billingDay?: number;
40
- email?: string;
41
- legalName?: string;
42
- taxId?: string;
43
- taxIdType?: string;
44
- withholdingAgent?: boolean;
45
- }
46
- /**
47
- * A failed answer.
48
- */
49
- export interface AccountUpdateBillingProfileServiceUnavailableError {
50
- data: null;
51
- error: AccountUpdateBillingProfileServiceUnavailableFailure;
52
- /**
53
- * What every answer carries besides its data or error.
54
- */
55
- metadata: ResponseMetadata;
56
- success: false;
57
- }
58
- export type AccountUpdateBillingProfileServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
@@ -1,25 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import type { AccountInvoiceDocumentResponse } 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
- * Download an invoice's PDF
12
- *
13
- * The legal invoice document, as base64.
14
- */
15
- get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
16
- }
17
- export declare function createClient(options: ClientOptions): Client;
18
- export declare function bind(transport: Transport): Client;
19
- export interface GetRequest {
20
- /**
21
- * The invoice's id, as invoices.list answers it.
22
- */
23
- invoiceId: string;
24
- }
25
- export type GetResponse = AccountInvoiceDocumentResponse;
@@ -1,17 +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
- get: (request, options) => transport.send(GetOperation, request, options),
10
- };
11
- }
12
- const GetOperation = {
13
- method: "GET",
14
- route: "/v1/account/invoice-documents/{invoiceId}",
15
- response: null,
16
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
17
- };
@@ -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 { AccountGetInvoiceDocumentServiceUnavailableError, AccountGetInvoiceDocumentServiceUnavailableFailure, AccountInvoiceDocument, AccountInvoiceDocumentResponse, } 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,35 +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 AccountGetInvoiceDocumentServiceUnavailableError {
7
- data: null;
8
- error: AccountGetInvoiceDocumentServiceUnavailableFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type AccountGetInvoiceDocumentServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
16
- export interface AccountInvoiceDocument {
17
- contentType: "application/pdf";
18
- /**
19
- * The PDF, base64.
20
- */
21
- data: string;
22
- filename: string;
23
- }
24
- /**
25
- * A successful answer.
26
- */
27
- export interface AccountInvoiceDocumentResponse {
28
- data: AccountInvoiceDocument;
29
- error: null;
30
- /**
31
- * What every answer carries besides its data or error.
32
- */
33
- metadata: ResponseMetadata;
34
- success: true;
35
- }
@@ -1,47 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type AccountInvoiceDetailResponse, type AccountInvoicePageResponse } 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 an invoice
12
- *
13
- * One invoice with its lines and how to pay it.
14
- */
15
- get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
16
- /**
17
- * List invoices
18
- *
19
- * The organization's latest 100 invoices, newest first.
20
- */
21
- list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
22
- }
23
- export declare function createClient(options: ClientOptions): Client;
24
- export declare function bind(transport: Transport): Client;
25
- export interface GetRequest {
26
- /**
27
- * The invoice's id, as invoices.list answers it.
28
- */
29
- invoiceId: string;
30
- }
31
- export type GetResponse = AccountInvoiceDetailResponse;
32
- export interface ListRequest {
33
- /**
34
- * Opaque cursor returned by pageInfo; omit it to request the first page.
35
- */
36
- cursor?: string;
37
- /**
38
- * Direction to traverse the stable keyset ordering from the supplied cursor.
39
- */
40
- direction?: "forward" | "backward";
41
- /**
42
- * Maximum items returned in one page. Defaults to 25; larger reads require
43
- * another cursor.
44
- */
45
- limit?: number;
46
- }
47
- export type ListResponse = AccountInvoicePageResponse;
@@ -1,26 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { Transport, } from "../../_/index.js";
4
- import { AccountInvoiceDetailResponseCodec, AccountInvoicePageResponseCodec, } 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
- list: (request, options) => transport.send(ListOperation, request, options),
12
- };
13
- }
14
- const GetOperation = {
15
- method: "GET",
16
- route: "/v1/account/invoices/{invoiceId}",
17
- response: AccountInvoiceDetailResponseCodec,
18
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
19
- };
20
- const ListOperation = {
21
- method: "GET",
22
- route: "/v1/account/invoices",
23
- query: { cursor: "cursor", direction: "direction", limit: "limit" },
24
- response: AccountInvoicePageResponseCodec,
25
- errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "429": true, "500": true, "502": true, "503": true, "504": true },
26
- };
@@ -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, ListRequest, ListResponse, } from "./client.js";
5
- export type { AccountGetInvoiceServiceUnavailableError, AccountGetInvoiceServiceUnavailableFailure, AccountInvoice, AccountInvoiceDetail, AccountInvoiceDetailResponse, AccountInvoicePage, AccountInvoicePageResponse, AccountListInvoicesServiceUnavailableError, AccountListInvoicesServiceUnavailableFailure, } 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,135 +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 AccountGetInvoiceServiceUnavailableError {
7
- data: null;
8
- error: AccountGetInvoiceServiceUnavailableFailure;
9
- /**
10
- * What every answer carries besides its data or error.
11
- */
12
- metadata: ResponseMetadata;
13
- success: false;
14
- }
15
- export type AccountGetInvoiceServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
16
- export interface AccountInvoice {
17
- /**
18
- * Micros of the currency named with it.
19
- */
20
- amountPaidMicros: number;
21
- currency: "USD" | "COP";
22
- dueAt: Temporal.Instant | null;
23
- /**
24
- * Whether a PDF can be downloaded.
25
- */
26
- hasDocument: boolean;
27
- id: string;
28
- issuedAt: Temporal.Instant | null;
29
- kind: "statement" | "top_up" | "pack";
30
- number: string;
31
- paidAt: Temporal.Instant | null;
32
- /**
33
- * Deprecated: use `periodEndsAt`. Answered until 2027-01-28.
34
- *
35
- * @deprecated
36
- */
37
- periodEnd: Temporal.Instant | null;
38
- periodEndsAt: Temporal.Instant | null;
39
- /**
40
- * Deprecated: use `periodStartsAt`. Answered until 2027-01-28.
41
- *
42
- * @deprecated
43
- */
44
- periodStart: Temporal.Instant | null;
45
- periodStartsAt: Temporal.Instant | null;
46
- status: "draft" | "open" | "paid" | "void" | "uncollectible";
47
- /**
48
- * Micros of the currency named with it.
49
- */
50
- subtotalMicros: number;
51
- /**
52
- * Micros of the currency named with it.
53
- */
54
- taxMicros: number;
55
- /**
56
- * Micros of the currency named with it.
57
- */
58
- totalMicros: number;
59
- /**
60
- * Micros of the currency named with it.
61
- */
62
- withheldMicros: number;
63
- }
64
- export interface AccountInvoiceDetail {
65
- bankInstructions: {
66
- [key: string]: unknown;
67
- };
68
- entityName: string;
69
- invoice: AccountInvoice;
70
- lines: {
71
- amountMicros: number;
72
- description: string;
73
- kind: "base_fee" | "usage" | "top_up" | "pack" | "adjustment";
74
- meter: string | null;
75
- quantity: number;
76
- taxRateBp: number;
77
- unitPriceMicros: number;
78
- }[];
79
- }
80
- /**
81
- * A successful answer.
82
- */
83
- export interface AccountInvoiceDetailResponse {
84
- data: AccountInvoiceDetail;
85
- error: null;
86
- /**
87
- * What every answer carries besides its data or error.
88
- */
89
- metadata: ResponseMetadata;
90
- success: true;
91
- }
92
- export interface AccountInvoicePage {
93
- /**
94
- * Items admitted by this resource contract within the verified organization.
95
- */
96
- data: AccountInvoice[];
97
- /**
98
- * Discriminator for a resource list response.
99
- */
100
- object: "list";
101
- /**
102
- * Opaque navigation cursors for this page’s stable keyset order.
103
- */
104
- pageInfo: PageInfo;
105
- }
106
- /**
107
- * A successful answer.
108
- */
109
- export interface AccountInvoicePageResponse {
110
- data: AccountInvoicePage;
111
- error: null;
112
- /**
113
- * What every answer carries besides its data or error.
114
- */
115
- metadata: ResponseMetadata;
116
- success: true;
117
- }
118
- /**
119
- * A failed answer.
120
- */
121
- export interface AccountListInvoicesServiceUnavailableError {
122
- data: null;
123
- error: AccountListInvoicesServiceUnavailableFailure;
124
- /**
125
- * What every answer carries besides its data or error.
126
- */
127
- metadata: ResponseMetadata;
128
- success: false;
129
- }
130
- export type AccountListInvoicesServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingUnavailableFailure;
131
- export declare const AccountInvoiceCodec: import("../../_/codec.js").Codec;
132
- export declare const AccountInvoiceDetailCodec: import("../../_/codec.js").Codec;
133
- export declare const AccountInvoiceDetailResponseCodec: import("../../_/codec.js").Codec;
134
- export declare const AccountInvoicePageCodec: import("../../_/codec.js").Codec;
135
- export declare const AccountInvoicePageResponseCodec: import("../../_/codec.js").Codec;
@@ -1,24 +0,0 @@
1
- // Code generated by forge. DO NOT EDIT.
2
- /* eslint-disable */
3
- import { array, instant, object } from "../../_/index.js";
4
- export const AccountInvoiceCodec = object([
5
- ["dueAt", null, instant],
6
- ["issuedAt", null, instant],
7
- ["paidAt", null, instant],
8
- ["periodEnd", null, instant],
9
- ["periodEndsAt", null, instant],
10
- ["periodStart", null, instant],
11
- ["periodStartsAt", null, instant],
12
- ]);
13
- export const AccountInvoiceDetailCodec = object([
14
- ["invoice", null, () => AccountInvoiceCodec],
15
- ]);
16
- export const AccountInvoiceDetailResponseCodec = object([
17
- ["data", null, () => AccountInvoiceDetailCodec],
18
- ]);
19
- export const AccountInvoicePageCodec = object([
20
- ["data", null, array(() => AccountInvoiceCodec)],
21
- ]);
22
- export const AccountInvoicePageResponseCodec = object([
23
- ["data", null, () => AccountInvoicePageCodec],
24
- ]);
@@ -1,34 +0,0 @@
1
- import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
2
- import { type AccountPaymentPageResponse } 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 payments
12
- *
13
- * The organization's latest 100 payments.
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 = AccountPaymentPageResponse;