@arbol-ai/cli 3.59.0 → 3.61.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 (2) hide show
  1. package/dist/index.js +1490 -5
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -786,6 +786,46 @@ var commands = {
786
786
  confirmation: null,
787
787
  hidden: false
788
788
  },
789
+ "account billing get": {
790
+ operation: "account.billing.get",
791
+ sdkPath: [
792
+ "account",
793
+ "billing",
794
+ "get"
795
+ ],
796
+ pathField: null,
797
+ fields: [],
798
+ inputSchema: {
799
+ type: "object",
800
+ properties: {},
801
+ additionalProperties: false
802
+ },
803
+ title: "Get billing",
804
+ description: "The organization's wallet in credits (one credit is one US dollar): credits left, granted and spent in the current period, whether running out stops service, its plans and the card a top-up charges.",
805
+ effect: "read",
806
+ confirmation: null,
807
+ hidden: false
808
+ },
809
+ "account billing-portal-sessions create": {
810
+ operation: "account.billingPortalSessions.create",
811
+ sdkPath: [
812
+ "account",
813
+ "billingPortalSessions",
814
+ "create"
815
+ ],
816
+ pathField: null,
817
+ fields: [],
818
+ inputSchema: {
819
+ type: "object",
820
+ properties: {},
821
+ additionalProperties: false
822
+ },
823
+ title: "Open the card portal",
824
+ description: "A session of Stripe's portal, where the organization's people change its saved card and download its card receipts.",
825
+ effect: "write",
826
+ confirmation: null,
827
+ hidden: false
828
+ },
789
829
  "account colombian-records lookup": {
790
830
  operation: "account.colombianRecords.lookup",
791
831
  sdkPath: [
@@ -1841,6 +1881,189 @@ var commands = {
1841
1881
  confirmation: null,
1842
1882
  hidden: false
1843
1883
  },
1884
+ "account usage-summary get": {
1885
+ operation: "account.usageSummary.get",
1886
+ sdkPath: [
1887
+ "account",
1888
+ "usageSummary",
1889
+ "get"
1890
+ ],
1891
+ pathField: null,
1892
+ fields: [
1893
+ {
1894
+ name: "from",
1895
+ flag: "from",
1896
+ kind: "string",
1897
+ required: false,
1898
+ description: "Start of the range; the current month by default."
1899
+ },
1900
+ {
1901
+ name: "to",
1902
+ flag: "to",
1903
+ kind: "string",
1904
+ required: false,
1905
+ description: "End of the range; now by default."
1906
+ },
1907
+ {
1908
+ name: "groupBy",
1909
+ flag: "group-by",
1910
+ kind: "string",
1911
+ required: false,
1912
+ description: "Breaks each feature down; by product by default.",
1913
+ choices: [
1914
+ "product",
1915
+ "channel"
1916
+ ]
1917
+ }
1918
+ ],
1919
+ inputSchema: {
1920
+ type: "object",
1921
+ properties: {
1922
+ from: {
1923
+ type: "string",
1924
+ format: "date-time",
1925
+ description: "Start of the range; the current month by default."
1926
+ },
1927
+ to: {
1928
+ type: "string",
1929
+ format: "date-time",
1930
+ description: "End of the range; now by default."
1931
+ },
1932
+ groupBy: {
1933
+ anyOf: [
1934
+ {
1935
+ type: "string",
1936
+ const: "product"
1937
+ },
1938
+ {
1939
+ type: "string",
1940
+ const: "channel"
1941
+ }
1942
+ ],
1943
+ description: "Breaks each feature down; by product by default."
1944
+ }
1945
+ },
1946
+ additionalProperties: false
1947
+ },
1948
+ title: "Get the usage summary",
1949
+ description: "What the organization used in a range, the current month by default: each metered feature in its own units (minutes, conversations, lookups…), broken down by product or channel, and the credits its wallet paid.",
1950
+ effect: "read",
1951
+ confirmation: null,
1952
+ hidden: false
1953
+ },
1954
+ "account wallet-top-ups create": {
1955
+ operation: "account.walletTopUps.create",
1956
+ sdkPath: [
1957
+ "account",
1958
+ "walletTopUps",
1959
+ "create"
1960
+ ],
1961
+ pathField: null,
1962
+ fields: [
1963
+ {
1964
+ name: "credits",
1965
+ flag: "credits",
1966
+ kind: "integer",
1967
+ required: true,
1968
+ description: "Credits to buy, at one US dollar each."
1969
+ }
1970
+ ],
1971
+ inputSchema: {
1972
+ type: "object",
1973
+ required: [
1974
+ "credits"
1975
+ ],
1976
+ properties: {
1977
+ credits: {
1978
+ type: "integer",
1979
+ minimum: 10,
1980
+ maximum: 1e4,
1981
+ description: "Credits to buy, at one US dollar each."
1982
+ }
1983
+ },
1984
+ additionalProperties: false
1985
+ },
1986
+ title: "Top up the wallet",
1987
+ description: "Buys credits at one US dollar each. The organization's saved card is charged at once; without one, or when the bank asks to confirm, the answer is Stripe's page to pay on. Never repeated on its own: a lost answer is OUTCOME_UNKNOWN, and the wallet's transactions say whether it was paid.",
1988
+ effect: "write",
1989
+ confirmation: null,
1990
+ hidden: false
1991
+ },
1992
+ "account wallet-transactions list": {
1993
+ operation: "account.walletTransactions.list",
1994
+ sdkPath: [
1995
+ "account",
1996
+ "walletTransactions",
1997
+ "list"
1998
+ ],
1999
+ pathField: null,
2000
+ fields: [
2001
+ {
2002
+ name: "cursor",
2003
+ flag: "cursor",
2004
+ kind: "string",
2005
+ required: false,
2006
+ description: "Opaque cursor returned by pageInfo; omit it to request the first page."
2007
+ },
2008
+ {
2009
+ name: "direction",
2010
+ flag: "direction",
2011
+ kind: "string",
2012
+ required: false,
2013
+ description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
2014
+ choices: [
2015
+ "forward",
2016
+ "backward"
2017
+ ],
2018
+ default: "forward"
2019
+ },
2020
+ {
2021
+ name: "limit",
2022
+ flag: "limit",
2023
+ kind: "integer",
2024
+ required: false,
2025
+ description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
2026
+ default: 25
2027
+ }
2028
+ ],
2029
+ inputSchema: {
2030
+ type: "object",
2031
+ required: [],
2032
+ properties: {
2033
+ cursor: {
2034
+ type: "string",
2035
+ description: "Opaque cursor returned by pageInfo; omit it to request the first page."
2036
+ },
2037
+ direction: {
2038
+ anyOf: [
2039
+ {
2040
+ type: "string",
2041
+ const: "forward"
2042
+ },
2043
+ {
2044
+ type: "string",
2045
+ const: "backward"
2046
+ }
2047
+ ],
2048
+ description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
2049
+ default: "forward"
2050
+ },
2051
+ limit: {
2052
+ type: "integer",
2053
+ minimum: 1,
2054
+ maximum: 100,
2055
+ description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
2056
+ default: 25
2057
+ }
2058
+ },
2059
+ additionalProperties: false
2060
+ },
2061
+ title: "List wallet transactions",
2062
+ description: "What moved the organization's wallet, newest first: top-ups, plan grants and renewals, adjustments Arbol made, and the credits spent, one entry per UTC day, each with the balance right after it. Listed forward only.",
2063
+ effect: "read",
2064
+ confirmation: null,
2065
+ hidden: false
2066
+ },
1844
2067
  "adres affiliations lookup": {
1845
2068
  operation: "adres.affiliations.lookup",
1846
2069
  sdkPath: [
@@ -34893,6 +35116,480 @@ var schemaComponents = {
34893
35116
  },
34894
35117
  additionalProperties: false
34895
35118
  },
35119
+ AccountBilling: {
35120
+ type: "object",
35121
+ required: [
35122
+ "status",
35123
+ "balance",
35124
+ "granted",
35125
+ "used",
35126
+ "unlimited",
35127
+ "overageAllowed",
35128
+ "enforced",
35129
+ "nextResetAt",
35130
+ "plans",
35131
+ "card",
35132
+ "topUp"
35133
+ ],
35134
+ properties: {
35135
+ status: {
35136
+ anyOf: [
35137
+ {
35138
+ type: "string",
35139
+ const: "active"
35140
+ },
35141
+ {
35142
+ type: "string",
35143
+ const: "new"
35144
+ }
35145
+ ],
35146
+ description: "`new`: the organization has no wallet yet; its first use or top-up opens one."
35147
+ },
35148
+ balance: {
35149
+ type: "number",
35150
+ description: "Credits left in the wallet; one credit is one US dollar."
35151
+ },
35152
+ granted: {
35153
+ type: "number",
35154
+ description: "Credits the wallet received in the current period, top-ups included."
35155
+ },
35156
+ used: {
35157
+ type: "number",
35158
+ description: "Credits spent in the current period."
35159
+ },
35160
+ unlimited: {
35161
+ type: "boolean",
35162
+ description: "The plan never stops usage for lack of credits."
35163
+ },
35164
+ overageAllowed: {
35165
+ type: "boolean",
35166
+ description: "Usage continues below zero, up to any limit agreed, and is settled later."
35167
+ },
35168
+ enforced: {
35169
+ type: "boolean",
35170
+ description: "Whether running out stops service now; until it does, a refusal is only recorded."
35171
+ },
35172
+ nextResetAt: {
35173
+ anyOf: [
35174
+ {
35175
+ type: "string",
35176
+ format: "date-time"
35177
+ },
35178
+ {
35179
+ type: "null"
35180
+ }
35181
+ ],
35182
+ description: "When the plan's included credits renew."
35183
+ },
35184
+ plans: {
35185
+ type: "array",
35186
+ items: {
35187
+ $ref: "#/components/schemas/AccountBillingPlan"
35188
+ },
35189
+ maxItems: 50
35190
+ },
35191
+ card: {
35192
+ anyOf: [
35193
+ {
35194
+ type: "object",
35195
+ required: [
35196
+ "brand",
35197
+ "last4"
35198
+ ],
35199
+ properties: {
35200
+ brand: {
35201
+ type: "string"
35202
+ },
35203
+ last4: {
35204
+ type: "string"
35205
+ }
35206
+ },
35207
+ additionalProperties: false
35208
+ },
35209
+ {
35210
+ type: "null"
35211
+ }
35212
+ ],
35213
+ description: "The card a top-up charges without asking for one."
35214
+ },
35215
+ topUp: {
35216
+ type: "object",
35217
+ required: [
35218
+ "minimum",
35219
+ "maximum"
35220
+ ],
35221
+ properties: {
35222
+ minimum: {
35223
+ type: "integer"
35224
+ },
35225
+ maximum: {
35226
+ type: "integer"
35227
+ }
35228
+ },
35229
+ additionalProperties: false,
35230
+ description: "The credits one top-up may buy, in whole credits."
35231
+ }
35232
+ },
35233
+ additionalProperties: false
35234
+ },
35235
+ AccountBillingNotConfiguredFailure: {
35236
+ type: "object",
35237
+ description: "Billing is not configured yet.",
35238
+ additionalProperties: false,
35239
+ required: [
35240
+ "code",
35241
+ "message",
35242
+ "retryable",
35243
+ "data"
35244
+ ],
35245
+ properties: {
35246
+ code: {
35247
+ type: "string",
35248
+ enum: [
35249
+ "BILLING_NOT_CONFIGURED"
35250
+ ],
35251
+ description: "The failure code, stable across releases."
35252
+ },
35253
+ message: {
35254
+ type: "string",
35255
+ description: "What went wrong, for people; it never contains input values."
35256
+ },
35257
+ retryable: {
35258
+ type: "boolean",
35259
+ enum: [
35260
+ false
35261
+ ],
35262
+ description: "Whether repeating the same request may succeed."
35263
+ },
35264
+ data: {
35265
+ $ref: "#/components/schemas/Empty"
35266
+ }
35267
+ }
35268
+ },
35269
+ AccountBillingPlan: {
35270
+ type: "object",
35271
+ required: [
35272
+ "id",
35273
+ "name",
35274
+ "status",
35275
+ "pastDue",
35276
+ "currentPeriodEndsAt",
35277
+ "price",
35278
+ "rates"
35279
+ ],
35280
+ properties: {
35281
+ id: {
35282
+ type: "string",
35283
+ description: "The plan's id in Autumn, such as `arbol_prepaid` or a customer's own plan."
35284
+ },
35285
+ name: {
35286
+ type: "string"
35287
+ },
35288
+ status: {
35289
+ anyOf: [
35290
+ {
35291
+ type: "string",
35292
+ const: "active"
35293
+ },
35294
+ {
35295
+ type: "string",
35296
+ const: "scheduled"
35297
+ }
35298
+ ]
35299
+ },
35300
+ pastDue: {
35301
+ type: "boolean",
35302
+ description: "A card payment of the plan failed and is still owed."
35303
+ },
35304
+ currentPeriodEndsAt: {
35305
+ anyOf: [
35306
+ {
35307
+ type: "string",
35308
+ format: "date-time"
35309
+ },
35310
+ {
35311
+ type: "null"
35312
+ }
35313
+ ],
35314
+ description: "When the current period ends."
35315
+ },
35316
+ price: {
35317
+ anyOf: [
35318
+ {
35319
+ type: "object",
35320
+ required: [
35321
+ "amount",
35322
+ "currency",
35323
+ "interval"
35324
+ ],
35325
+ properties: {
35326
+ amount: {
35327
+ type: "number",
35328
+ description: "Fixed plan price in US dollars, before tax."
35329
+ },
35330
+ currency: {
35331
+ type: "string",
35332
+ const: "USD"
35333
+ },
35334
+ interval: {
35335
+ type: "string",
35336
+ description: "Billing interval, such as month or year."
35337
+ }
35338
+ },
35339
+ additionalProperties: false
35340
+ },
35341
+ {
35342
+ type: "null"
35343
+ }
35344
+ ]
35345
+ },
35346
+ rates: {
35347
+ type: "array",
35348
+ items: {
35349
+ type: "object",
35350
+ required: [
35351
+ "feature",
35352
+ "creditsPerUnit",
35353
+ "conditions"
35354
+ ],
35355
+ properties: {
35356
+ feature: {
35357
+ anyOf: [
35358
+ {
35359
+ type: "string",
35360
+ const: "voice_minutes"
35361
+ },
35362
+ {
35363
+ type: "string",
35364
+ const: "telephony_minutes"
35365
+ },
35366
+ {
35367
+ type: "string",
35368
+ const: "whatsapp_conversations"
35369
+ },
35370
+ {
35371
+ type: "string",
35372
+ const: "whatsapp_messages"
35373
+ },
35374
+ {
35375
+ type: "string",
35376
+ const: "whatsapp_templates"
35377
+ },
35378
+ {
35379
+ type: "string",
35380
+ const: "tool_calls"
35381
+ },
35382
+ {
35383
+ type: "string",
35384
+ const: "ai_cost"
35385
+ },
35386
+ {
35387
+ type: "string",
35388
+ const: "phone_numbers"
35389
+ },
35390
+ {
35391
+ type: "string",
35392
+ const: "sisben_lookups"
35393
+ },
35394
+ {
35395
+ type: "string",
35396
+ const: "agenda_plan"
35397
+ },
35398
+ {
35399
+ type: "string",
35400
+ const: "agenda_users"
35401
+ },
35402
+ {
35403
+ type: "string",
35404
+ const: "support_fee"
35405
+ }
35406
+ ]
35407
+ },
35408
+ creditsPerUnit: {
35409
+ type: "number"
35410
+ },
35411
+ conditions: {
35412
+ type: "object",
35413
+ patternProperties: {
35414
+ "^.*$": {
35415
+ type: "string"
35416
+ }
35417
+ }
35418
+ }
35419
+ },
35420
+ additionalProperties: false
35421
+ },
35422
+ maxItems: 200,
35423
+ description: "Usage rates from the live plan. Conditional rows override the base rate for matching events."
35424
+ }
35425
+ },
35426
+ additionalProperties: false
35427
+ },
35428
+ AccountBillingPortalSession: {
35429
+ type: "object",
35430
+ required: [
35431
+ "url"
35432
+ ],
35433
+ properties: {
35434
+ url: {
35435
+ type: "string",
35436
+ description: "Stripe's portal, for the organization's cards and receipts."
35437
+ }
35438
+ },
35439
+ additionalProperties: false
35440
+ },
35441
+ AccountBillingPortalSessionResponse: {
35442
+ type: "object",
35443
+ description: "A successful answer.",
35444
+ additionalProperties: false,
35445
+ required: [
35446
+ "success",
35447
+ "data",
35448
+ "error",
35449
+ "metadata"
35450
+ ],
35451
+ properties: {
35452
+ success: {
35453
+ type: "boolean",
35454
+ enum: [
35455
+ true
35456
+ ]
35457
+ },
35458
+ data: {
35459
+ $ref: "#/components/schemas/AccountBillingPortalSession"
35460
+ },
35461
+ error: {
35462
+ const: null
35463
+ },
35464
+ metadata: {
35465
+ $ref: "#/components/schemas/ResponseMetadata"
35466
+ }
35467
+ }
35468
+ },
35469
+ AccountBillingPortalUnavailableError: {
35470
+ type: "object",
35471
+ description: "A failed answer.",
35472
+ additionalProperties: false,
35473
+ required: [
35474
+ "success",
35475
+ "data",
35476
+ "error",
35477
+ "metadata"
35478
+ ],
35479
+ properties: {
35480
+ success: {
35481
+ type: "boolean",
35482
+ enum: [
35483
+ false
35484
+ ]
35485
+ },
35486
+ data: {
35487
+ const: null
35488
+ },
35489
+ error: {
35490
+ $ref: "#/components/schemas/AccountBillingPortalUnavailableFailure"
35491
+ },
35492
+ metadata: {
35493
+ $ref: "#/components/schemas/ResponseMetadata"
35494
+ }
35495
+ }
35496
+ },
35497
+ AccountBillingPortalUnavailableFailure: {
35498
+ type: "object",
35499
+ description: "The organization has no card payments to manage yet.",
35500
+ additionalProperties: false,
35501
+ required: [
35502
+ "code",
35503
+ "message",
35504
+ "retryable",
35505
+ "data"
35506
+ ],
35507
+ properties: {
35508
+ code: {
35509
+ type: "string",
35510
+ enum: [
35511
+ "BILLING_PORTAL_UNAVAILABLE"
35512
+ ],
35513
+ description: "The failure code, stable across releases."
35514
+ },
35515
+ message: {
35516
+ type: "string",
35517
+ description: "What went wrong, for people; it never contains input values."
35518
+ },
35519
+ retryable: {
35520
+ type: "boolean",
35521
+ enum: [
35522
+ false
35523
+ ],
35524
+ description: "Whether repeating the same request may succeed."
35525
+ },
35526
+ data: {
35527
+ $ref: "#/components/schemas/Empty"
35528
+ }
35529
+ }
35530
+ },
35531
+ AccountBillingResponse: {
35532
+ type: "object",
35533
+ description: "A successful answer.",
35534
+ additionalProperties: false,
35535
+ required: [
35536
+ "success",
35537
+ "data",
35538
+ "error",
35539
+ "metadata"
35540
+ ],
35541
+ properties: {
35542
+ success: {
35543
+ type: "boolean",
35544
+ enum: [
35545
+ true
35546
+ ]
35547
+ },
35548
+ data: {
35549
+ $ref: "#/components/schemas/AccountBilling"
35550
+ },
35551
+ error: {
35552
+ const: null
35553
+ },
35554
+ metadata: {
35555
+ $ref: "#/components/schemas/ResponseMetadata"
35556
+ }
35557
+ }
35558
+ },
35559
+ AccountBillingUnavailableFailure: {
35560
+ type: "object",
35561
+ description: "The billing service did not answer.",
35562
+ additionalProperties: false,
35563
+ required: [
35564
+ "code",
35565
+ "message",
35566
+ "retryable",
35567
+ "data"
35568
+ ],
35569
+ properties: {
35570
+ code: {
35571
+ type: "string",
35572
+ enum: [
35573
+ "BILLING_UNAVAILABLE"
35574
+ ],
35575
+ description: "The failure code, stable across releases."
35576
+ },
35577
+ message: {
35578
+ type: "string",
35579
+ description: "What went wrong, for people; it never contains input values."
35580
+ },
35581
+ retryable: {
35582
+ type: "boolean",
35583
+ enum: [
35584
+ true
35585
+ ],
35586
+ description: "Whether repeating the same request may succeed."
35587
+ },
35588
+ data: {
35589
+ $ref: "#/components/schemas/Empty"
35590
+ }
35591
+ }
35592
+ },
34896
35593
  AccountColombiaLookupPresentation: {
34897
35594
  anyOf: [
34898
35595
  {
@@ -35829,6 +36526,55 @@ var schemaComponents = {
35829
36526
  }
35830
36527
  }
35831
36528
  },
36529
+ AccountCreateBillingPortalSessionServiceUnavailableError: {
36530
+ type: "object",
36531
+ description: "A failed answer.",
36532
+ additionalProperties: false,
36533
+ required: [
36534
+ "success",
36535
+ "data",
36536
+ "error",
36537
+ "metadata"
36538
+ ],
36539
+ properties: {
36540
+ success: {
36541
+ type: "boolean",
36542
+ enum: [
36543
+ false
36544
+ ]
36545
+ },
36546
+ data: {
36547
+ const: null
36548
+ },
36549
+ error: {
36550
+ $ref: "#/components/schemas/AccountCreateBillingPortalSessionServiceUnavailableFailure"
36551
+ },
36552
+ metadata: {
36553
+ $ref: "#/components/schemas/ResponseMetadata"
36554
+ }
36555
+ }
36556
+ },
36557
+ AccountCreateBillingPortalSessionServiceUnavailableFailure: {
36558
+ oneOf: [
36559
+ {
36560
+ $ref: "#/components/schemas/UpstreamUnavailableFailure"
36561
+ },
36562
+ {
36563
+ $ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
36564
+ },
36565
+ {
36566
+ $ref: "#/components/schemas/AccountBillingUnavailableFailure"
36567
+ }
36568
+ ],
36569
+ discriminator: {
36570
+ propertyName: "code",
36571
+ mapping: {
36572
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
36573
+ BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
36574
+ BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
36575
+ }
36576
+ }
36577
+ },
35832
36578
  AccountCreateInvitationBody: {
35833
36579
  type: "object",
35834
36580
  required: [
@@ -36211,6 +36957,70 @@ var schemaComponents = {
36211
36957
  }
36212
36958
  }
36213
36959
  },
36960
+ AccountCreateWalletTopUpBody: {
36961
+ type: "object",
36962
+ required: [
36963
+ "credits"
36964
+ ],
36965
+ properties: {
36966
+ credits: {
36967
+ type: "integer",
36968
+ minimum: 10,
36969
+ maximum: 1e4,
36970
+ description: "Credits to buy, at one US dollar each."
36971
+ }
36972
+ },
36973
+ additionalProperties: false
36974
+ },
36975
+ AccountCreateWalletTopUpServiceUnavailableError: {
36976
+ type: "object",
36977
+ description: "A failed answer.",
36978
+ additionalProperties: false,
36979
+ required: [
36980
+ "success",
36981
+ "data",
36982
+ "error",
36983
+ "metadata"
36984
+ ],
36985
+ properties: {
36986
+ success: {
36987
+ type: "boolean",
36988
+ enum: [
36989
+ false
36990
+ ]
36991
+ },
36992
+ data: {
36993
+ const: null
36994
+ },
36995
+ error: {
36996
+ $ref: "#/components/schemas/AccountCreateWalletTopUpServiceUnavailableFailure"
36997
+ },
36998
+ metadata: {
36999
+ $ref: "#/components/schemas/ResponseMetadata"
37000
+ }
37001
+ }
37002
+ },
37003
+ AccountCreateWalletTopUpServiceUnavailableFailure: {
37004
+ oneOf: [
37005
+ {
37006
+ $ref: "#/components/schemas/UpstreamUnavailableFailure"
37007
+ },
37008
+ {
37009
+ $ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
37010
+ },
37011
+ {
37012
+ $ref: "#/components/schemas/AccountBillingUnavailableFailure"
37013
+ }
37014
+ ],
37015
+ discriminator: {
37016
+ propertyName: "code",
37017
+ mapping: {
37018
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
37019
+ BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
37020
+ BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
37021
+ }
37022
+ }
37023
+ },
36214
37024
  AccountCurrentOrganization: {
36215
37025
  type: "object",
36216
37026
  required: [
@@ -36672,6 +37482,55 @@ var schemaComponents = {
36672
37482
  }
36673
37483
  }
36674
37484
  },
37485
+ AccountGetBillingServiceUnavailableError: {
37486
+ type: "object",
37487
+ description: "A failed answer.",
37488
+ additionalProperties: false,
37489
+ required: [
37490
+ "success",
37491
+ "data",
37492
+ "error",
37493
+ "metadata"
37494
+ ],
37495
+ properties: {
37496
+ success: {
37497
+ type: "boolean",
37498
+ enum: [
37499
+ false
37500
+ ]
37501
+ },
37502
+ data: {
37503
+ const: null
37504
+ },
37505
+ error: {
37506
+ $ref: "#/components/schemas/AccountGetBillingServiceUnavailableFailure"
37507
+ },
37508
+ metadata: {
37509
+ $ref: "#/components/schemas/ResponseMetadata"
37510
+ }
37511
+ }
37512
+ },
37513
+ AccountGetBillingServiceUnavailableFailure: {
37514
+ oneOf: [
37515
+ {
37516
+ $ref: "#/components/schemas/UpstreamUnavailableFailure"
37517
+ },
37518
+ {
37519
+ $ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
37520
+ },
37521
+ {
37522
+ $ref: "#/components/schemas/AccountBillingUnavailableFailure"
37523
+ }
37524
+ ],
37525
+ discriminator: {
37526
+ propertyName: "code",
37527
+ mapping: {
37528
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
37529
+ BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
37530
+ BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
37531
+ }
37532
+ }
37533
+ },
36675
37534
  AccountGetCurrentOrganizationServiceUnavailableError: {
36676
37535
  type: "object",
36677
37536
  description: "A failed answer.",
@@ -36721,6 +37580,55 @@ var schemaComponents = {
36721
37580
  }
36722
37581
  }
36723
37582
  },
37583
+ AccountGetUsageSummaryServiceUnavailableError: {
37584
+ type: "object",
37585
+ description: "A failed answer.",
37586
+ additionalProperties: false,
37587
+ required: [
37588
+ "success",
37589
+ "data",
37590
+ "error",
37591
+ "metadata"
37592
+ ],
37593
+ properties: {
37594
+ success: {
37595
+ type: "boolean",
37596
+ enum: [
37597
+ false
37598
+ ]
37599
+ },
37600
+ data: {
37601
+ const: null
37602
+ },
37603
+ error: {
37604
+ $ref: "#/components/schemas/AccountGetUsageSummaryServiceUnavailableFailure"
37605
+ },
37606
+ metadata: {
37607
+ $ref: "#/components/schemas/ResponseMetadata"
37608
+ }
37609
+ }
37610
+ },
37611
+ AccountGetUsageSummaryServiceUnavailableFailure: {
37612
+ oneOf: [
37613
+ {
37614
+ $ref: "#/components/schemas/UpstreamUnavailableFailure"
37615
+ },
37616
+ {
37617
+ $ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
37618
+ },
37619
+ {
37620
+ $ref: "#/components/schemas/AccountBillingUnavailableFailure"
37621
+ }
37622
+ ],
37623
+ discriminator: {
37624
+ propertyName: "code",
37625
+ mapping: {
37626
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
37627
+ BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
37628
+ BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
37629
+ }
37630
+ }
37631
+ },
36724
37632
  AccountIdentityRejectedError: {
36725
37633
  type: "object",
36726
37634
  description: "A failed answer.",
@@ -37411,6 +38319,55 @@ var schemaComponents = {
37411
38319
  }
37412
38320
  }
37413
38321
  },
38322
+ AccountListWalletTransactionsServiceUnavailableError: {
38323
+ type: "object",
38324
+ description: "A failed answer.",
38325
+ additionalProperties: false,
38326
+ required: [
38327
+ "success",
38328
+ "data",
38329
+ "error",
38330
+ "metadata"
38331
+ ],
38332
+ properties: {
38333
+ success: {
38334
+ type: "boolean",
38335
+ enum: [
38336
+ false
38337
+ ]
38338
+ },
38339
+ data: {
38340
+ const: null
38341
+ },
38342
+ error: {
38343
+ $ref: "#/components/schemas/AccountListWalletTransactionsServiceUnavailableFailure"
38344
+ },
38345
+ metadata: {
38346
+ $ref: "#/components/schemas/ResponseMetadata"
38347
+ }
38348
+ }
38349
+ },
38350
+ AccountListWalletTransactionsServiceUnavailableFailure: {
38351
+ oneOf: [
38352
+ {
38353
+ $ref: "#/components/schemas/UpstreamUnavailableFailure"
38354
+ },
38355
+ {
38356
+ $ref: "#/components/schemas/AccountBillingNotConfiguredFailure"
38357
+ },
38358
+ {
38359
+ $ref: "#/components/schemas/AccountBillingUnavailableFailure"
38360
+ }
38361
+ ],
38362
+ discriminator: {
38363
+ propertyName: "code",
38364
+ mapping: {
38365
+ UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
38366
+ BILLING_NOT_CONFIGURED: "#/components/schemas/AccountBillingNotConfiguredFailure",
38367
+ BILLING_UNAVAILABLE: "#/components/schemas/AccountBillingUnavailableFailure"
38368
+ }
38369
+ }
38370
+ },
37414
38371
  AccountMember: {
37415
38372
  type: "object",
37416
38373
  required: [
@@ -38598,6 +39555,68 @@ var schemaComponents = {
38598
39555
  }
38599
39556
  ]
38600
39557
  },
39558
+ AccountTopUpDeclinedError: {
39559
+ type: "object",
39560
+ description: "A failed answer.",
39561
+ additionalProperties: false,
39562
+ required: [
39563
+ "success",
39564
+ "data",
39565
+ "error",
39566
+ "metadata"
39567
+ ],
39568
+ properties: {
39569
+ success: {
39570
+ type: "boolean",
39571
+ enum: [
39572
+ false
39573
+ ]
39574
+ },
39575
+ data: {
39576
+ const: null
39577
+ },
39578
+ error: {
39579
+ $ref: "#/components/schemas/AccountTopUpDeclinedFailure"
39580
+ },
39581
+ metadata: {
39582
+ $ref: "#/components/schemas/ResponseMetadata"
39583
+ }
39584
+ }
39585
+ },
39586
+ AccountTopUpDeclinedFailure: {
39587
+ type: "object",
39588
+ description: "The card was not charged: the payment was declined.",
39589
+ additionalProperties: false,
39590
+ required: [
39591
+ "code",
39592
+ "message",
39593
+ "retryable",
39594
+ "data"
39595
+ ],
39596
+ properties: {
39597
+ code: {
39598
+ type: "string",
39599
+ enum: [
39600
+ "TOP_UP_DECLINED"
39601
+ ],
39602
+ description: "The failure code, stable across releases."
39603
+ },
39604
+ message: {
39605
+ type: "string",
39606
+ description: "What went wrong, for people; it never contains input values."
39607
+ },
39608
+ retryable: {
39609
+ type: "boolean",
39610
+ enum: [
39611
+ false
39612
+ ],
39613
+ description: "Whether repeating the same request may succeed."
39614
+ },
39615
+ data: {
39616
+ $ref: "#/components/schemas/Empty"
39617
+ }
39618
+ }
39619
+ },
38601
39620
  AccountUpdateMemberBody: {
38602
39621
  type: "object",
38603
39622
  required: [
@@ -38807,6 +39826,386 @@ var schemaComponents = {
38807
39826
  },
38808
39827
  additionalProperties: false
38809
39828
  },
39829
+ AccountUsageFeature: {
39830
+ type: "object",
39831
+ required: [
39832
+ "feature",
39833
+ "units",
39834
+ "events",
39835
+ "groups"
39836
+ ],
39837
+ properties: {
39838
+ feature: {
39839
+ anyOf: [
39840
+ {
39841
+ type: "string",
39842
+ const: "voice_minutes"
39843
+ },
39844
+ {
39845
+ type: "string",
39846
+ const: "telephony_minutes"
39847
+ },
39848
+ {
39849
+ type: "string",
39850
+ const: "whatsapp_conversations"
39851
+ },
39852
+ {
39853
+ type: "string",
39854
+ const: "whatsapp_messages"
39855
+ },
39856
+ {
39857
+ type: "string",
39858
+ const: "whatsapp_templates"
39859
+ },
39860
+ {
39861
+ type: "string",
39862
+ const: "tool_calls"
39863
+ },
39864
+ {
39865
+ type: "string",
39866
+ const: "ai_cost"
39867
+ },
39868
+ {
39869
+ type: "string",
39870
+ const: "phone_numbers"
39871
+ },
39872
+ {
39873
+ type: "string",
39874
+ const: "sisben_lookups"
39875
+ },
39876
+ {
39877
+ type: "string",
39878
+ const: "agenda_plan"
39879
+ },
39880
+ {
39881
+ type: "string",
39882
+ const: "agenda_users"
39883
+ },
39884
+ {
39885
+ type: "string",
39886
+ const: "support_fee"
39887
+ }
39888
+ ]
39889
+ },
39890
+ units: {
39891
+ type: "number",
39892
+ description: "What was used, in the feature's units: minutes, conversations, lookups… For `ai_cost`, the model calls."
39893
+ },
39894
+ events: {
39895
+ type: "integer",
39896
+ description: "How many reports made it up."
39897
+ },
39898
+ groups: {
39899
+ type: "array",
39900
+ items: {
39901
+ type: "object",
39902
+ required: [
39903
+ "key",
39904
+ "units"
39905
+ ],
39906
+ properties: {
39907
+ key: {
39908
+ type: "string",
39909
+ description: "The product (`raiz`) or channel (`voice`)."
39910
+ },
39911
+ units: {
39912
+ type: "number"
39913
+ }
39914
+ },
39915
+ additionalProperties: false
39916
+ },
39917
+ maxItems: 100
39918
+ }
39919
+ },
39920
+ additionalProperties: false
39921
+ },
39922
+ AccountUsageSummary: {
39923
+ type: "object",
39924
+ required: [
39925
+ "from",
39926
+ "to",
39927
+ "groupBy",
39928
+ "credits",
39929
+ "features"
39930
+ ],
39931
+ properties: {
39932
+ from: {
39933
+ type: "string",
39934
+ format: "date-time"
39935
+ },
39936
+ to: {
39937
+ type: "string",
39938
+ format: "date-time"
39939
+ },
39940
+ groupBy: {
39941
+ anyOf: [
39942
+ {
39943
+ type: "string",
39944
+ const: "product"
39945
+ },
39946
+ {
39947
+ type: "string",
39948
+ const: "channel"
39949
+ }
39950
+ ]
39951
+ },
39952
+ credits: {
39953
+ type: "number",
39954
+ description: "Credits the wallet paid in the range."
39955
+ },
39956
+ features: {
39957
+ type: "array",
39958
+ items: {
39959
+ $ref: "#/components/schemas/AccountUsageFeature"
39960
+ },
39961
+ maxItems: 12
39962
+ }
39963
+ },
39964
+ additionalProperties: false
39965
+ },
39966
+ AccountUsageSummaryResponse: {
39967
+ type: "object",
39968
+ description: "A successful answer.",
39969
+ additionalProperties: false,
39970
+ required: [
39971
+ "success",
39972
+ "data",
39973
+ "error",
39974
+ "metadata"
39975
+ ],
39976
+ properties: {
39977
+ success: {
39978
+ type: "boolean",
39979
+ enum: [
39980
+ true
39981
+ ]
39982
+ },
39983
+ data: {
39984
+ $ref: "#/components/schemas/AccountUsageSummary"
39985
+ },
39986
+ error: {
39987
+ const: null
39988
+ },
39989
+ metadata: {
39990
+ $ref: "#/components/schemas/ResponseMetadata"
39991
+ }
39992
+ }
39993
+ },
39994
+ AccountWalletTopUp: {
39995
+ type: "object",
39996
+ required: [
39997
+ "status",
39998
+ "checkoutUrl"
39999
+ ],
40000
+ properties: {
40001
+ status: {
40002
+ anyOf: [
40003
+ {
40004
+ type: "string",
40005
+ const: "paid"
40006
+ },
40007
+ {
40008
+ type: "string",
40009
+ const: "checkout"
40010
+ }
40011
+ ],
40012
+ description: "`paid`: the saved card was charged and the credits are in the wallet; `checkout`: pay on `checkoutUrl`."
40013
+ },
40014
+ checkoutUrl: {
40015
+ anyOf: [
40016
+ {
40017
+ type: "string"
40018
+ },
40019
+ {
40020
+ type: "null"
40021
+ }
40022
+ ],
40023
+ description: "Stripe's page to pay on, for `checkout`."
40024
+ }
40025
+ },
40026
+ additionalProperties: false
40027
+ },
40028
+ AccountWalletTopUpResponse: {
40029
+ type: "object",
40030
+ description: "A successful answer.",
40031
+ additionalProperties: false,
40032
+ required: [
40033
+ "success",
40034
+ "data",
40035
+ "error",
40036
+ "metadata"
40037
+ ],
40038
+ properties: {
40039
+ success: {
40040
+ type: "boolean",
40041
+ enum: [
40042
+ true
40043
+ ]
40044
+ },
40045
+ data: {
40046
+ $ref: "#/components/schemas/AccountWalletTopUp"
40047
+ },
40048
+ error: {
40049
+ const: null
40050
+ },
40051
+ metadata: {
40052
+ $ref: "#/components/schemas/ResponseMetadata"
40053
+ }
40054
+ }
40055
+ },
40056
+ AccountWalletTransaction: {
40057
+ type: "object",
40058
+ required: [
40059
+ "id",
40060
+ "kind",
40061
+ "occurredAt",
40062
+ "endsAt",
40063
+ "count",
40064
+ "amount",
40065
+ "balanceAfter",
40066
+ "approximate"
40067
+ ],
40068
+ properties: {
40069
+ id: {
40070
+ type: "string"
40071
+ },
40072
+ kind: {
40073
+ anyOf: [
40074
+ {
40075
+ type: "string",
40076
+ const: "usage"
40077
+ },
40078
+ {
40079
+ type: "string",
40080
+ const: "top_up"
40081
+ },
40082
+ {
40083
+ type: "string",
40084
+ const: "plan"
40085
+ },
40086
+ {
40087
+ type: "string",
40088
+ const: "reset"
40089
+ },
40090
+ {
40091
+ type: "string",
40092
+ const: "adjustment"
40093
+ }
40094
+ ],
40095
+ description: "`usage`: credits spent, one entry per UTC day; `top_up`: credits bought; `plan`: a plan's grant or change; `reset`: the plan's period renewed; `adjustment`: a change Arbol made."
40096
+ },
40097
+ occurredAt: {
40098
+ type: "string",
40099
+ format: "date-time",
40100
+ description: "When it happened; for a day of usage, its first use."
40101
+ },
40102
+ endsAt: {
40103
+ anyOf: [
40104
+ {
40105
+ type: "string",
40106
+ format: "date-time"
40107
+ },
40108
+ {
40109
+ type: "null"
40110
+ }
40111
+ ],
40112
+ description: "For a day of usage, its last use."
40113
+ },
40114
+ count: {
40115
+ anyOf: [
40116
+ {
40117
+ type: "integer"
40118
+ },
40119
+ {
40120
+ type: "null"
40121
+ }
40122
+ ],
40123
+ description: "For usage, how many reports it groups."
40124
+ },
40125
+ amount: {
40126
+ anyOf: [
40127
+ {
40128
+ type: "number"
40129
+ },
40130
+ {
40131
+ type: "null"
40132
+ }
40133
+ ],
40134
+ description: "Credits it added (positive) or took (negative); null when Autumn could not tell."
40135
+ },
40136
+ balanceAfter: {
40137
+ anyOf: [
40138
+ {
40139
+ type: "number"
40140
+ },
40141
+ {
40142
+ type: "null"
40143
+ }
40144
+ ],
40145
+ description: "Credits left right after it."
40146
+ },
40147
+ approximate: {
40148
+ type: "boolean",
40149
+ description: "Its amounts are Autumn’s estimate, not an exact record."
40150
+ }
40151
+ },
40152
+ additionalProperties: false
40153
+ },
40154
+ AccountWalletTransactionPage: {
40155
+ type: "object",
40156
+ required: [
40157
+ "data",
40158
+ "object",
40159
+ "pageInfo"
40160
+ ],
40161
+ properties: {
40162
+ data: {
40163
+ type: "array",
40164
+ items: {
40165
+ $ref: "#/components/schemas/AccountWalletTransaction"
40166
+ },
40167
+ description: "Items admitted by this resource contract within the verified organization."
40168
+ },
40169
+ object: {
40170
+ type: "string",
40171
+ const: "list",
40172
+ description: "Discriminator for a resource list response."
40173
+ },
40174
+ pageInfo: {
40175
+ $ref: "#/components/schemas/PageInfo",
40176
+ description: "Opaque navigation cursors for this page’s stable keyset order."
40177
+ }
40178
+ },
40179
+ additionalProperties: false
40180
+ },
40181
+ AccountWalletTransactionPageResponse: {
40182
+ type: "object",
40183
+ description: "A successful answer.",
40184
+ additionalProperties: false,
40185
+ required: [
40186
+ "success",
40187
+ "data",
40188
+ "error",
40189
+ "metadata"
40190
+ ],
40191
+ properties: {
40192
+ success: {
40193
+ type: "boolean",
40194
+ enum: [
40195
+ true
40196
+ ]
40197
+ },
40198
+ data: {
40199
+ $ref: "#/components/schemas/AccountWalletTransactionPage"
40200
+ },
40201
+ error: {
40202
+ const: null
40203
+ },
40204
+ metadata: {
40205
+ $ref: "#/components/schemas/ResponseMetadata"
40206
+ }
40207
+ }
40208
+ },
38810
40209
  AdresAffiliationPresentation: {
38811
40210
  anyOf: [
38812
40211
  {
@@ -240415,6 +241814,16 @@ var schemaComponents = {
240415
241814
  },
240416
241815
  additionalProperties: false
240417
241816
  },
241817
+ AccountBillingGetInput: {
241818
+ type: "object",
241819
+ properties: {},
241820
+ additionalProperties: false
241821
+ },
241822
+ AccountBillingPortalSessionsCreateInput: {
241823
+ type: "object",
241824
+ properties: {},
241825
+ additionalProperties: false
241826
+ },
240418
241827
  AccountColombianRecordsLookupInput: {
240419
241828
  type: "object",
240420
241829
  required: [
@@ -240916,6 +242325,82 @@ var schemaComponents = {
240916
242325
  },
240917
242326
  additionalProperties: false
240918
242327
  },
242328
+ AccountUsageSummaryGetInput: {
242329
+ type: "object",
242330
+ properties: {
242331
+ from: {
242332
+ type: "string",
242333
+ format: "date-time",
242334
+ description: "Start of the range; the current month by default."
242335
+ },
242336
+ to: {
242337
+ type: "string",
242338
+ format: "date-time",
242339
+ description: "End of the range; now by default."
242340
+ },
242341
+ groupBy: {
242342
+ anyOf: [
242343
+ {
242344
+ type: "string",
242345
+ const: "product"
242346
+ },
242347
+ {
242348
+ type: "string",
242349
+ const: "channel"
242350
+ }
242351
+ ],
242352
+ description: "Breaks each feature down; by product by default."
242353
+ }
242354
+ },
242355
+ additionalProperties: false
242356
+ },
242357
+ AccountWalletTopUpsCreateInput: {
242358
+ type: "object",
242359
+ required: [
242360
+ "credits"
242361
+ ],
242362
+ properties: {
242363
+ credits: {
242364
+ type: "integer",
242365
+ minimum: 10,
242366
+ maximum: 1e4,
242367
+ description: "Credits to buy, at one US dollar each."
242368
+ }
242369
+ },
242370
+ additionalProperties: false
242371
+ },
242372
+ AccountWalletTransactionsListInput: {
242373
+ type: "object",
242374
+ required: [],
242375
+ properties: {
242376
+ cursor: {
242377
+ type: "string",
242378
+ description: "Opaque cursor returned by pageInfo; omit it to request the first page."
242379
+ },
242380
+ direction: {
242381
+ anyOf: [
242382
+ {
242383
+ type: "string",
242384
+ const: "forward"
242385
+ },
242386
+ {
242387
+ type: "string",
242388
+ const: "backward"
242389
+ }
242390
+ ],
242391
+ description: "Direction to traverse the stable keyset ordering from the supplied cursor.",
242392
+ default: "forward"
242393
+ },
242394
+ limit: {
242395
+ type: "integer",
242396
+ minimum: 1,
242397
+ maximum: 100,
242398
+ description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
242399
+ default: 25
242400
+ }
242401
+ },
242402
+ additionalProperties: false
242403
+ },
240919
242404
  AdresAffiliationsLookupInput: {
240920
242405
  type: "object",
240921
242406
  required: [
@@ -259333,9 +260818,9 @@ var schemaComponents = {
259333
260818
  // src/generated/generation.json
259334
260819
  var generation_default = {
259335
260820
  formatVersion: 6,
259336
- release: "1.20261114.55927",
259337
- openapiSha256: "1abdad9c23520e8ef4da837215c0baf0801aeaea7f8d887e9d4111bbaab29a83",
259338
- openapiContentSha256: "462eea12036d37178570a5523a10281d5389066b5910e996572d5e3a70f1de66",
260821
+ release: "1.20261114.234006",
260822
+ openapiSha256: "af7e237f46f7fc845b5542bb4a0f1ca7097f69661c57509dd5b1cecfb2e95177",
260823
+ openapiContentSha256: "662eae46d14c21e0810a1da19c527985cb67bc864561432e838a8a5d913ffe7a",
259339
260824
  forge: {
259340
260825
  repository: "https://github.com/cloudflare/forge",
259341
260826
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -259348,7 +260833,7 @@ var generation_default = {
259348
260833
  outputs: [
259349
260834
  {
259350
260835
  path: "src/generated/commands.ts",
259351
- sha256: "944435e94f4d505828b6be56adb7edd042efb8af82f5253c8ce188b133b23352"
260836
+ sha256: "07597e0c5031c897af0c310096457a4907d70f493c0636c7d6b5c2022f5ce90c"
259352
260837
  }
259353
260838
  ]
259354
260839
  };
@@ -260948,7 +262433,7 @@ ${name}`);
260948
262433
  }
260949
262434
 
260950
262435
  // src/index.ts
260951
- var VERSION = "3.59.0";
262436
+ var VERSION = "3.61.0";
260952
262437
  var RELEASE = generation_default.release;
260953
262438
  var commands2 = { ...commands, ...accountOperatorCommands };
260954
262439
  var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));