@arbol-ai/sdk 5.18.0 → 5.20.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.
- package/dist/account/apiKeys/client.js +2 -1
- package/dist/account/apiKeys/models.d.ts +11 -0
- package/dist/account/apiKeys/models.js +4 -0
- package/dist/account/client.d.ts +0 -2
- package/dist/account/client.js +0 -5
- package/dist/account/colombianRecords/client.d.ts +6 -5
- package/dist/account/colombianRecords/index.d.ts +1 -1
- package/dist/account/colombianRecords/models.d.ts +28 -4
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +0 -21
- package/package.json +3 -3
- package/dist/account/personalConsents/client.d.ts +0 -22
- package/dist/account/personalConsents/client.js +0 -18
- package/dist/account/personalConsents/index.d.ts +0 -5
- package/dist/account/personalConsents/index.js +0 -4
- package/dist/account/personalConsents/models.d.ts +0 -5
- package/dist/account/personalConsents/models.js +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, } from "../../_/index.js";
|
|
4
|
-
import { AccountApiKeyPageResponseCodec, AccountIssuedApiKeyResponseCodec, } from "./models.js";
|
|
4
|
+
import { AccountApiKeyPageResponseCodec, AccountCreateApiKeyBodyCodec, AccountIssuedApiKeyResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -17,6 +17,7 @@ const CreateOperation = {
|
|
|
17
17
|
method: "POST",
|
|
18
18
|
route: "/v1/account/api-keys",
|
|
19
19
|
body: "flat",
|
|
20
|
+
request: AccountCreateApiKeyBodyCodec,
|
|
20
21
|
response: AccountIssuedApiKeyResponseCodec,
|
|
21
22
|
errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
22
23
|
};
|
|
@@ -3,6 +3,11 @@ import type { AccountAccountNotConfiguredFailure, AccountIdentityUnavailableFail
|
|
|
3
3
|
export interface AccountApiKey {
|
|
4
4
|
createdAt: Temporal.Instant | null;
|
|
5
5
|
createdBy: string | null;
|
|
6
|
+
/**
|
|
7
|
+
* The UTC instant at which the key stops working. Null for a legacy key
|
|
8
|
+
* without a deadline.
|
|
9
|
+
*/
|
|
10
|
+
expiresAt: Temporal.Instant | null;
|
|
6
11
|
/**
|
|
7
12
|
* The machine application's client id.
|
|
8
13
|
*/
|
|
@@ -80,6 +85,11 @@ export interface AccountApiKeyPageResponse {
|
|
|
80
85
|
success: true;
|
|
81
86
|
}
|
|
82
87
|
export interface AccountCreateApiKeyBody {
|
|
88
|
+
/**
|
|
89
|
+
* Exclusive expiration instant, with timezone. Defaults to seven days from
|
|
90
|
+
* creation.
|
|
91
|
+
*/
|
|
92
|
+
expiresAt?: Temporal.Instant;
|
|
83
93
|
/**
|
|
84
94
|
* What uses it, such as "Billing backend".
|
|
85
95
|
*/
|
|
@@ -201,5 +211,6 @@ export type AccountRotateApiKeyServiceUnavailableFailure = UpstreamUnavailableFa
|
|
|
201
211
|
export declare const AccountApiKeyCodec: import("../../_/codec.js").Codec;
|
|
202
212
|
export declare const AccountApiKeyPageCodec: import("../../_/codec.js").Codec;
|
|
203
213
|
export declare const AccountApiKeyPageResponseCodec: import("../../_/codec.js").Codec;
|
|
214
|
+
export declare const AccountCreateApiKeyBodyCodec: import("../../_/codec.js").Codec;
|
|
204
215
|
export declare const AccountIssuedApiKeyCodec: import("../../_/codec.js").Codec;
|
|
205
216
|
export declare const AccountIssuedApiKeyResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { array, instant, object } from "../../_/index.js";
|
|
4
4
|
export const AccountApiKeyCodec = object([
|
|
5
5
|
["createdAt", null, instant],
|
|
6
|
+
["expiresAt", null, instant],
|
|
6
7
|
]);
|
|
7
8
|
export const AccountApiKeyPageCodec = object([
|
|
8
9
|
["data", null, array(() => AccountApiKeyCodec)],
|
|
@@ -10,6 +11,9 @@ export const AccountApiKeyPageCodec = object([
|
|
|
10
11
|
export const AccountApiKeyPageResponseCodec = object([
|
|
11
12
|
["data", null, () => AccountApiKeyPageCodec],
|
|
12
13
|
]);
|
|
14
|
+
export const AccountCreateApiKeyBodyCodec = object([
|
|
15
|
+
["expiresAt", null, instant],
|
|
16
|
+
]);
|
|
13
17
|
export const AccountIssuedApiKeyCodec = object([
|
|
14
18
|
["apiKey", null, () => AccountApiKeyCodec],
|
|
15
19
|
]);
|
package/dist/account/client.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { type Client as OrganizationClient } from "./organization/client.js";
|
|
|
12
12
|
import { type Client as OrganizationsClient } from "./organizations/client.js";
|
|
13
13
|
import { type Client as PaymentsClient } from "./payments/client.js";
|
|
14
14
|
import { type Client as PermissionsClient } from "./permissions/client.js";
|
|
15
|
-
import { type Client as PersonalConsentsClient } from "./personalConsents/client.js";
|
|
16
15
|
import { type Client as RegistryInstallationsClient } from "./registryInstallations/client.js";
|
|
17
16
|
import { type Client as RolesClient } from "./roles/client.js";
|
|
18
17
|
import { type Client as UsageClient } from "./usage/client.js";
|
|
@@ -38,7 +37,6 @@ export interface Client {
|
|
|
38
37
|
readonly organizations: OrganizationsClient;
|
|
39
38
|
readonly payments: PaymentsClient;
|
|
40
39
|
readonly permissions: PermissionsClient;
|
|
41
|
-
readonly personalConsents: PersonalConsentsClient;
|
|
42
40
|
readonly registryInstallations: RegistryInstallationsClient;
|
|
43
41
|
readonly roles: RolesClient;
|
|
44
42
|
readonly usage: UsageClient;
|
package/dist/account/client.js
CHANGED
|
@@ -14,7 +14,6 @@ import { bind as bindOrganization, } from "./organization/client.js";
|
|
|
14
14
|
import { bind as bindOrganizations, } from "./organizations/client.js";
|
|
15
15
|
import { bind as bindPayments, } from "./payments/client.js";
|
|
16
16
|
import { bind as bindPermissions, } from "./permissions/client.js";
|
|
17
|
-
import { bind as bindPersonalConsents, } from "./personalConsents/client.js";
|
|
18
17
|
import { bind as bindRegistryInstallations, } from "./registryInstallations/client.js";
|
|
19
18
|
import { bind as bindRoles, } from "./roles/client.js";
|
|
20
19
|
import { bind as bindUsage, } from "./usage/client.js";
|
|
@@ -37,7 +36,6 @@ export function bind(transport) {
|
|
|
37
36
|
let organizationsClient;
|
|
38
37
|
let paymentsClient;
|
|
39
38
|
let permissionsClient;
|
|
40
|
-
let personalConsentsClient;
|
|
41
39
|
let registryInstallationsClient;
|
|
42
40
|
let rolesClient;
|
|
43
41
|
let usageClient;
|
|
@@ -83,9 +81,6 @@ export function bind(transport) {
|
|
|
83
81
|
get permissions() {
|
|
84
82
|
return (permissionsClient ??= bindPermissions(transport));
|
|
85
83
|
},
|
|
86
|
-
get personalConsents() {
|
|
87
|
-
return (personalConsentsClient ??= bindPersonalConsents(transport));
|
|
88
|
-
},
|
|
89
84
|
get registryInstallations() {
|
|
90
85
|
return (registryInstallationsClient ??= bindRegistryInstallations(transport));
|
|
91
86
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { AccountConsultIncludedRecordBody } from "./models.js";
|
|
2
|
+
import type { AccountColombiaLookupPresentationResponse, AccountConsultIncludedRecordBody } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -11,12 +10,14 @@ export interface Client {
|
|
|
11
10
|
/**
|
|
12
11
|
* Consult an included Colombian source
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* Read ADRES or Sisbén for an authorized document, or obtain the personal
|
|
14
|
+
* Police guide without submitting a document. A machine key needs connection
|
|
15
|
+
* read access and an explicit restriction allowing this operation. Set
|
|
16
|
+
* agentMode to true for concise Spanish text.
|
|
16
17
|
*/
|
|
17
18
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
18
19
|
}
|
|
19
20
|
export declare function createClient(options: ClientOptions): Client;
|
|
20
21
|
export declare function bind(transport: Transport): Client;
|
|
21
22
|
export type LookupRequest = AccountConsultIncludedRecordBody;
|
|
22
|
-
export type LookupResponse =
|
|
23
|
+
export type LookupResponse = AccountColombiaLookupPresentationResponse;
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
-
export type { AccountConsultIncludedRecordBody } from "./models.js";
|
|
5
|
+
export type { AccountColombiaLookupPresentation, AccountColombiaLookupPresentationResponse, AccountColombiaResourceEnvelope, AccountConsultIncludedRecordBody, } from "./models.js";
|
|
@@ -1,5 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
2
|
+
export type AccountColombiaLookupPresentation = AccountColombiaResourceEnvelope | {
|
|
3
|
+
text: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* A successful answer.
|
|
7
|
+
*/
|
|
8
|
+
export interface AccountColombiaLookupPresentationResponse {
|
|
9
|
+
data: AccountColombiaLookupPresentation;
|
|
10
|
+
error: null;
|
|
11
|
+
/**
|
|
12
|
+
* What every answer carries besides its data or error.
|
|
13
|
+
*/
|
|
14
|
+
metadata: ResponseMetadata;
|
|
15
|
+
success: true;
|
|
5
16
|
}
|
|
17
|
+
export interface AccountColombiaResourceEnvelope {
|
|
18
|
+
result: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export type AccountConsultIncludedRecordBody = {
|
|
23
|
+
agentMode?: boolean;
|
|
24
|
+
documentNumber?: string;
|
|
25
|
+
documentType?: string;
|
|
26
|
+
integration: "adres" | "sisben" | "policia-colombia";
|
|
27
|
+
} & {
|
|
28
|
+
integration?: "policia-colombia";
|
|
29
|
+
};
|
package/dist/account/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { ApiError } from "../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, } from "./client.js";
|
|
5
|
-
export type { AccountAccountNotConfiguredFailure, AccountBillingRecordNotFoundError, AccountBillingRecordNotFoundFailure, AccountBillingRejectedError, AccountBillingRejectedFailure, AccountBillingUnavailableFailure,
|
|
5
|
+
export type { AccountAccountNotConfiguredFailure, AccountBillingRecordNotFoundError, AccountBillingRecordNotFoundFailure, AccountBillingRejectedError, AccountBillingRejectedFailure, AccountBillingUnavailableFailure, AccountIdentityRejectedError, AccountIdentityRejectedFailure, AccountIdentityUnavailableFailure, AccountMemberProtectedFailure, AccountProductRole, AccountRoleNotAssignableFailure, } from "./models.js";
|
package/dist/account/models.d.ts
CHANGED
|
@@ -113,27 +113,6 @@ export interface AccountBillingUnavailableFailure {
|
|
|
113
113
|
*/
|
|
114
114
|
retryable: true;
|
|
115
115
|
}
|
|
116
|
-
export interface AccountColombiaResourceEnvelope {
|
|
117
|
-
result: {
|
|
118
|
-
[key: string]: unknown;
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* A successful answer.
|
|
123
|
-
*/
|
|
124
|
-
export interface AccountColombiaResourceEnvelopeResponse {
|
|
125
|
-
/**
|
|
126
|
-
* The result from the selected Colombian source or the holder’s personal
|
|
127
|
-
* consent receipt.
|
|
128
|
-
*/
|
|
129
|
-
data: AccountColombiaResourceEnvelope;
|
|
130
|
-
error: null;
|
|
131
|
-
/**
|
|
132
|
-
* What every answer carries besides its data or error.
|
|
133
|
-
*/
|
|
134
|
-
metadata: ResponseMetadata;
|
|
135
|
-
success: true;
|
|
136
|
-
}
|
|
137
116
|
/**
|
|
138
117
|
* A failed answer.
|
|
139
118
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.20.0",
|
|
4
4
|
"description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"packageManager": "bun@1.4.3",
|
|
58
58
|
"arbol": {
|
|
59
59
|
"openapi": {
|
|
60
|
-
"release": "1.20261101.
|
|
61
|
-
"sha256": "
|
|
60
|
+
"release": "1.20261101.23052",
|
|
61
|
+
"sha256": "f88814afe6ce88b18383d3337d0d9a741fdc69e7e20d9fa69392e19348ccae2e"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { AccountColombiaResourceEnvelopeResponse } from "../models.js";
|
|
3
|
-
import type { AccountPrepareColombiaConsentBody } from "./models.js";
|
|
4
|
-
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
-
/**
|
|
6
|
-
* The URL the paths of the API are relative to.
|
|
7
|
-
*/
|
|
8
|
-
baseUrl: string;
|
|
9
|
-
}
|
|
10
|
-
export interface Client {
|
|
11
|
-
/**
|
|
12
|
-
* Prepare a personal Colombian Police declaration
|
|
13
|
-
*
|
|
14
|
-
* Send the holder’s explicitly accepted document and receive the matching
|
|
15
|
-
* personal-use declaration.
|
|
16
|
-
*/
|
|
17
|
-
prepare(request: PrepareRequest, options?: RequestOptions): Promise<PrepareResponse>;
|
|
18
|
-
}
|
|
19
|
-
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
-
export declare function bind(transport: Transport): Client;
|
|
21
|
-
export type PrepareRequest = AccountPrepareColombiaConsentBody;
|
|
22
|
-
export type PrepareResponse = AccountColombiaResourceEnvelopeResponse;
|
|
@@ -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
|
-
prepare: (request, options) => transport.send(PrepareOperation, request, options),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
const PrepareOperation = {
|
|
13
|
-
method: "POST",
|
|
14
|
-
route: "/v1/account/personal-consents/prepare",
|
|
15
|
-
body: "flat",
|
|
16
|
-
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "413": true, "415": 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, PrepareRequest, PrepareResponse, } from "./client.js";
|
|
5
|
-
export type { AccountPrepareColombiaConsentBody } from "./models.js";
|