@arbol-ai/cli 3.38.0 → 3.38.1

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 +124 -7
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -27125,6 +27125,13 @@ var commands = {
27125
27125
  required: false,
27126
27126
  description: ""
27127
27127
  },
27128
+ {
27129
+ name: "providerId",
27130
+ flag: "provider-id",
27131
+ kind: "string",
27132
+ required: false,
27133
+ description: "An exact provider context id from getConnection(expand: providers), required when the source has no selected default."
27134
+ },
27128
27135
  {
27129
27136
  name: "documentType",
27130
27137
  flag: "document-type",
@@ -27181,6 +27188,11 @@ var commands = {
27181
27188
  pattern: "^con_[0-9a-z]{26}$",
27182
27189
  type: "string"
27183
27190
  },
27191
+ providerId: {
27192
+ pattern: "^[1-9][0-9]{0,8}$",
27193
+ description: "An exact provider context id from getConnection(expand: providers), required when the source has no selected default.",
27194
+ type: "string"
27195
+ },
27184
27196
  documentType: {
27185
27197
  anyOf: [
27186
27198
  {
@@ -27281,7 +27293,18 @@ var commands = {
27281
27293
  "get"
27282
27294
  ],
27283
27295
  pathField: "connectionId",
27284
- fields: [],
27296
+ fields: [
27297
+ {
27298
+ name: "expand",
27299
+ flag: "expand",
27300
+ kind: "string",
27301
+ required: false,
27302
+ description: "The expand.",
27303
+ choices: [
27304
+ "providers"
27305
+ ]
27306
+ }
27307
+ ],
27285
27308
  inputSchema: {
27286
27309
  type: "object",
27287
27310
  properties: {
@@ -27289,6 +27312,11 @@ var commands = {
27289
27312
  pattern: "^con_[0-9a-z]{26}$",
27290
27313
  type: "string",
27291
27314
  description: "The connection id."
27315
+ },
27316
+ expand: {
27317
+ const: "providers",
27318
+ type: "string",
27319
+ description: "The expand."
27292
27320
  }
27293
27321
  },
27294
27322
  required: [
@@ -27297,7 +27325,7 @@ var commands = {
27297
27325
  additionalProperties: false
27298
27326
  },
27299
27327
  title: "Get connection",
27300
- description: "Read safe status without contacting the provider.",
27328
+ description: "Read safe status. expand providers reads the available business provider contexts with the retained session, without submitting credentials.",
27301
27329
  effect: "read",
27302
27330
  confirmation: null,
27303
27331
  hidden: false
@@ -102580,6 +102608,9 @@ var schemaComponents = {
102580
102608
  {
102581
102609
  $ref: "#/components/schemas/SanitasConnectionRequiredFailure"
102582
102610
  },
102611
+ {
102612
+ $ref: "#/components/schemas/SanitasProviderContextRequiredFailure"
102613
+ },
102583
102614
  {
102584
102615
  $ref: "#/components/schemas/SanitasProviderSessionExpiredFailure"
102585
102616
  },
@@ -102591,6 +102622,7 @@ var schemaComponents = {
102591
102622
  propertyName: "code",
102592
102623
  mapping: {
102593
102624
  CONNECTION_REQUIRED: "#/components/schemas/SanitasConnectionRequiredFailure",
102625
+ PROVIDER_CONTEXT_REQUIRED: "#/components/schemas/SanitasProviderContextRequiredFailure",
102594
102626
  PROVIDER_SESSION_EXPIRED: "#/components/schemas/SanitasProviderSessionExpiredFailure",
102595
102627
  PATIENT_UNRESOLVED: "#/components/schemas/SanitasPatientUnresolvedFailure"
102596
102628
  }
@@ -102781,6 +102813,11 @@ var schemaComponents = {
102781
102813
  pattern: "^con_[0-9a-z]{26}$",
102782
102814
  type: "string"
102783
102815
  },
102816
+ providerId: {
102817
+ pattern: "^[1-9][0-9]{0,8}$",
102818
+ description: "An exact provider context id from getConnection(expand: providers), required when the source has no selected default.",
102819
+ type: "string"
102820
+ },
102784
102821
  documentType: {
102785
102822
  anyOf: [
102786
102823
  {
@@ -102900,6 +102937,9 @@ var schemaComponents = {
102900
102937
  {
102901
102938
  $ref: "#/components/schemas/SanitasConnectionRequiredFailure"
102902
102939
  },
102940
+ {
102941
+ $ref: "#/components/schemas/SanitasProviderContextRequiredFailure"
102942
+ },
102903
102943
  {
102904
102944
  $ref: "#/components/schemas/SanitasProviderSessionExpiredFailure"
102905
102945
  },
@@ -102911,6 +102951,7 @@ var schemaComponents = {
102911
102951
  propertyName: "code",
102912
102952
  mapping: {
102913
102953
  CONNECTION_REQUIRED: "#/components/schemas/SanitasConnectionRequiredFailure",
102954
+ PROVIDER_CONTEXT_REQUIRED: "#/components/schemas/SanitasProviderContextRequiredFailure",
102914
102955
  PROVIDER_SESSION_EXPIRED: "#/components/schemas/SanitasProviderSessionExpiredFailure",
102915
102956
  PATIENT_UNRESOLVED: "#/components/schemas/SanitasPatientUnresolvedFailure"
102916
102957
  }
@@ -103078,6 +103119,40 @@ var schemaComponents = {
103078
103119
  }
103079
103120
  }
103080
103121
  },
103122
+ SanitasProviderContextRequiredFailure: {
103123
+ type: "object",
103124
+ description: "Select one of this connection’s provider contexts before querying affiliation.",
103125
+ additionalProperties: false,
103126
+ required: [
103127
+ "code",
103128
+ "message",
103129
+ "retryable",
103130
+ "data"
103131
+ ],
103132
+ properties: {
103133
+ code: {
103134
+ type: "string",
103135
+ enum: [
103136
+ "PROVIDER_CONTEXT_REQUIRED"
103137
+ ],
103138
+ description: "The failure code, stable across releases."
103139
+ },
103140
+ message: {
103141
+ type: "string",
103142
+ description: "What went wrong, for people; it never contains input values."
103143
+ },
103144
+ retryable: {
103145
+ type: "boolean",
103146
+ enum: [
103147
+ false
103148
+ ],
103149
+ description: "Whether repeating the same request may succeed."
103150
+ },
103151
+ data: {
103152
+ $ref: "#/components/schemas/Empty"
103153
+ }
103154
+ }
103155
+ },
103081
103156
  SanitasProviderProtocolChangedFailure: {
103082
103157
  type: "object",
103083
103158
  description: "The provider response could not be verified.",
@@ -103378,6 +103453,7 @@ var schemaComponents = {
103378
103453
  type: "object",
103379
103454
  required: [
103380
103455
  "id",
103456
+ "providers",
103381
103457
  "status",
103382
103458
  "verifiedAt",
103383
103459
  "errorCode"
@@ -103387,6 +103463,37 @@ var schemaComponents = {
103387
103463
  pattern: "^con_[0-9a-z]{26}$",
103388
103464
  type: "string"
103389
103465
  },
103466
+ providers: {
103467
+ anyOf: [
103468
+ {
103469
+ maxItems: 100,
103470
+ type: "array",
103471
+ items: {
103472
+ additionalProperties: false,
103473
+ type: "object",
103474
+ required: [
103475
+ "id",
103476
+ "name",
103477
+ "selected"
103478
+ ],
103479
+ properties: {
103480
+ id: {
103481
+ type: "string"
103482
+ },
103483
+ name: {
103484
+ type: "string"
103485
+ },
103486
+ selected: {
103487
+ type: "boolean"
103488
+ }
103489
+ }
103490
+ }
103491
+ },
103492
+ {
103493
+ type: "null"
103494
+ }
103495
+ ]
103496
+ },
103390
103497
  status: {
103391
103498
  anyOf: [
103392
103499
  {
@@ -129189,6 +129296,11 @@ var schemaComponents = {
129189
129296
  pattern: "^con_[0-9a-z]{26}$",
129190
129297
  type: "string"
129191
129298
  },
129299
+ providerId: {
129300
+ pattern: "^[1-9][0-9]{0,8}$",
129301
+ description: "An exact provider context id from getConnection(expand: providers), required when the source has no selected default.",
129302
+ type: "string"
129303
+ },
129192
129304
  documentType: {
129193
129305
  anyOf: [
129194
129306
  {
@@ -129282,6 +129394,11 @@ var schemaComponents = {
129282
129394
  pattern: "^con_[0-9a-z]{26}$",
129283
129395
  type: "string",
129284
129396
  description: "The connection id."
129397
+ },
129398
+ expand: {
129399
+ const: "providers",
129400
+ type: "string",
129401
+ description: "The expand."
129285
129402
  }
129286
129403
  },
129287
129404
  required: [
@@ -132068,9 +132185,9 @@ var schemaComponents = {
132068
132185
  // src/generated/generation.json
132069
132186
  var generation_default = {
132070
132187
  formatVersion: 6,
132071
- release: "1.20261105.142412",
132072
- openapiSha256: "619001af7ae00bd7ef54abf1415d83bef1e92fd656227d892cebc7dea363204b",
132073
- openapiContentSha256: "12f082ea2aa4a683c8d9b2cd0da26addee085672cdc67b386ea5da4596f08152",
132188
+ release: "1.20261105.144113",
132189
+ openapiSha256: "0f00d8c1d1c40d1e29a31aa7fad66b6b7efb94a9d6a0c96286a0be78282ad279",
132190
+ openapiContentSha256: "8fff8c00b1e6e30ca52365be13d4db5b16960cae920280e7cf872bece943a285",
132074
132191
  forge: {
132075
132192
  repository: "https://github.com/cloudflare/forge",
132076
132193
  commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
@@ -132083,7 +132200,7 @@ var generation_default = {
132083
132200
  outputs: [
132084
132201
  {
132085
132202
  path: "src/generated/commands.ts",
132086
- sha256: "2a06c28be1d498261df2c2167f162dd9565129490b1efb1bfe7ae55f23bc57b5"
132203
+ sha256: "acb680eced24d5beed47e5a6e833fdbdcdab4c371b5f9c2eab44158f4b79f82a"
132087
132204
  }
132088
132205
  ]
132089
132206
  };
@@ -133683,7 +133800,7 @@ ${name}`);
133683
133800
  }
133684
133801
 
133685
133802
  // src/index.ts
133686
- var VERSION = "3.38.0";
133803
+ var VERSION = "3.38.1";
133687
133804
  var RELEASE = generation_default.release;
133688
133805
  var commands2 = { ...commands, ...accountOperatorCommands };
133689
133806
  var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/cli",
3
- "version": "3.38.0",
3
+ "version": "3.38.1",
4
4
  "description": "The Arbol CLI: the Arbol API from your terminal, with commands generated by Cloudflare Forge from the public OpenAPI.",
5
5
  "keywords": [
6
6
  "arbol",
@@ -45,7 +45,7 @@
45
45
  "verify:with-tests": "bun run typecheck && bun run test && bun run build"
46
46
  },
47
47
  "dependencies": {
48
- "@arbol-ai/sdk": "5.38.0",
48
+ "@arbol-ai/sdk": "5.38.1",
49
49
  "ajv": "8.20.0",
50
50
  "ajv-formats": "3.0.1",
51
51
  "oauth4webapi": "3.8.8"
@@ -60,8 +60,8 @@
60
60
  "packageManager": "bun@1.4.3",
61
61
  "arbol": {
62
62
  "openapi": {
63
- "release": "1.20261105.142412",
64
- "sha256": "12f082ea2aa4a683c8d9b2cd0da26addee085672cdc67b386ea5da4596f08152"
63
+ "release": "1.20261105.144113",
64
+ "sha256": "8fff8c00b1e6e30ca52365be13d4db5b16960cae920280e7cf872bece943a285"
65
65
  }
66
66
  }
67
67
  }