@robosystems/client 0.3.4 → 0.3.6
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/artifacts/LedgerClient.d.ts +24 -0
- package/artifacts/LedgerClient.js +30 -0
- package/artifacts/LedgerClient.ts +52 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +5 -4
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +21 -19
- package/sdk/sdk.gen.js +34 -23
- package/sdk/sdk.gen.ts +31 -20
- package/sdk/types.gen.d.ts +141 -23
- package/sdk/types.gen.ts +148 -24
- package/sdk.gen.d.ts +21 -19
- package/sdk.gen.js +34 -23
- package/sdk.gen.ts +31 -20
- package/types.gen.d.ts +141 -23
- package/types.gen.ts +148 -24
package/types.gen.ts
CHANGED
|
@@ -1007,6 +1007,20 @@ export type BulkDocumentUploadResponse = {
|
|
|
1007
1007
|
}> | null;
|
|
1008
1008
|
};
|
|
1009
1009
|
|
|
1010
|
+
/**
|
|
1011
|
+
* ChangeTierOp
|
|
1012
|
+
*
|
|
1013
|
+
* Body for the change-tier operation (supports upgrades and downgrades).
|
|
1014
|
+
*/
|
|
1015
|
+
export type ChangeTierOp = {
|
|
1016
|
+
/**
|
|
1017
|
+
* New Tier
|
|
1018
|
+
*
|
|
1019
|
+
* Target infrastructure tier
|
|
1020
|
+
*/
|
|
1021
|
+
new_tier: 'ladybug-standard' | 'ladybug-large' | 'ladybug-xlarge';
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1010
1024
|
/**
|
|
1011
1025
|
* CheckoutResponse
|
|
1012
1026
|
*
|
|
@@ -1548,8 +1562,8 @@ export type CreateElementRequest = {
|
|
|
1548
1562
|
* Request model for creating a new graph.
|
|
1549
1563
|
*
|
|
1550
1564
|
* Use this to create either:
|
|
1551
|
-
* - **Entity graphs**: Standard graphs with entity schema
|
|
1552
|
-
* - **Custom graphs**: Generic graphs with fully custom schema
|
|
1565
|
+
* - **Entity graphs**: Standard graphs with entity schema. Requires `initial_entity`.
|
|
1566
|
+
* - **Custom graphs**: Generic graphs with a fully custom schema. Requires `custom_schema`; `initial_entity` is not used.
|
|
1553
1567
|
*/
|
|
1554
1568
|
export type CreateGraphRequest = {
|
|
1555
1569
|
/**
|
|
@@ -1567,7 +1581,7 @@ export type CreateGraphRequest = {
|
|
|
1567
1581
|
*/
|
|
1568
1582
|
custom_schema?: CustomSchemaDefinition | null;
|
|
1569
1583
|
/**
|
|
1570
|
-
*
|
|
1584
|
+
* Initial entity for the graph. Required for entity graphs (when custom_schema is omitted). Omit only when providing custom_schema for a generic graph.
|
|
1571
1585
|
*/
|
|
1572
1586
|
initial_entity?: InitialEntityData | null;
|
|
1573
1587
|
/**
|
|
@@ -2047,6 +2061,66 @@ export type CreateTaxonomyRequest = {
|
|
|
2047
2061
|
target_taxonomy_id?: string | null;
|
|
2048
2062
|
};
|
|
2049
2063
|
|
|
2064
|
+
/**
|
|
2065
|
+
* CreateTransactionRequest
|
|
2066
|
+
*
|
|
2067
|
+
* Create a standalone business-event Transaction.
|
|
2068
|
+
*
|
|
2069
|
+
* Use this when you want to record a real-world event (invoice, payment,
|
|
2070
|
+
* deposit, expense) first and then attach one or more journal entries to
|
|
2071
|
+
* it via `create-journal-entry` with the returned `transaction_id`.
|
|
2072
|
+
*
|
|
2073
|
+
* `amount` is in minor currency units (cents). `type` is free-form but
|
|
2074
|
+
* common values are: invoice, payment, bill, expense, deposit, transfer,
|
|
2075
|
+
* journal_entry.
|
|
2076
|
+
*/
|
|
2077
|
+
export type CreateTransactionRequest = {
|
|
2078
|
+
/**
|
|
2079
|
+
* Type
|
|
2080
|
+
*/
|
|
2081
|
+
type: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* Date
|
|
2084
|
+
*/
|
|
2085
|
+
date: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* Amount
|
|
2088
|
+
*/
|
|
2089
|
+
amount: number;
|
|
2090
|
+
/**
|
|
2091
|
+
* Currency
|
|
2092
|
+
*/
|
|
2093
|
+
currency?: string;
|
|
2094
|
+
/**
|
|
2095
|
+
* Description
|
|
2096
|
+
*/
|
|
2097
|
+
description?: string | null;
|
|
2098
|
+
/**
|
|
2099
|
+
* Merchant Name
|
|
2100
|
+
*/
|
|
2101
|
+
merchant_name?: string | null;
|
|
2102
|
+
/**
|
|
2103
|
+
* Reference Number
|
|
2104
|
+
*/
|
|
2105
|
+
reference_number?: string | null;
|
|
2106
|
+
/**
|
|
2107
|
+
* Number
|
|
2108
|
+
*/
|
|
2109
|
+
number?: string | null;
|
|
2110
|
+
/**
|
|
2111
|
+
* Category
|
|
2112
|
+
*/
|
|
2113
|
+
category?: string | null;
|
|
2114
|
+
/**
|
|
2115
|
+
* Due Date
|
|
2116
|
+
*/
|
|
2117
|
+
due_date?: string | null;
|
|
2118
|
+
/**
|
|
2119
|
+
* Status
|
|
2120
|
+
*/
|
|
2121
|
+
status?: 'pending' | 'posted';
|
|
2122
|
+
};
|
|
2123
|
+
|
|
2050
2124
|
/**
|
|
2051
2125
|
* CreateViewRequest
|
|
2052
2126
|
*/
|
|
@@ -7733,20 +7807,6 @@ export type UpgradeSubscriptionRequest = {
|
|
|
7733
7807
|
new_plan_name: string;
|
|
7734
7808
|
};
|
|
7735
7809
|
|
|
7736
|
-
/**
|
|
7737
|
-
* UpgradeTierOp
|
|
7738
|
-
*
|
|
7739
|
-
* Body for the upgrade-tier operation.
|
|
7740
|
-
*/
|
|
7741
|
-
export type UpgradeTierOp = {
|
|
7742
|
-
/**
|
|
7743
|
-
* New Tier
|
|
7744
|
-
*
|
|
7745
|
-
* Target infrastructure tier
|
|
7746
|
-
*/
|
|
7747
|
-
new_tier: 'ladybug-standard' | 'ladybug-large' | 'ladybug-xlarge';
|
|
7748
|
-
};
|
|
7749
|
-
|
|
7750
7810
|
/**
|
|
7751
7811
|
* UserGraphsResponse
|
|
7752
7812
|
*
|
|
@@ -11251,8 +11311,8 @@ export type OpRestoreBackupResponses = {
|
|
|
11251
11311
|
|
|
11252
11312
|
export type OpRestoreBackupResponse = OpRestoreBackupResponses[keyof OpRestoreBackupResponses];
|
|
11253
11313
|
|
|
11254
|
-
export type
|
|
11255
|
-
body:
|
|
11314
|
+
export type OpChangeTierData = {
|
|
11315
|
+
body: ChangeTierOp;
|
|
11256
11316
|
headers?: {
|
|
11257
11317
|
/**
|
|
11258
11318
|
* Idempotency-Key
|
|
@@ -11266,10 +11326,10 @@ export type OpUpgradeTierData = {
|
|
|
11266
11326
|
graph_id: string;
|
|
11267
11327
|
};
|
|
11268
11328
|
query?: never;
|
|
11269
|
-
url: '/v1/graphs/{graph_id}/operations/
|
|
11329
|
+
url: '/v1/graphs/{graph_id}/operations/change-tier';
|
|
11270
11330
|
};
|
|
11271
11331
|
|
|
11272
|
-
export type
|
|
11332
|
+
export type OpChangeTierErrors = {
|
|
11273
11333
|
/**
|
|
11274
11334
|
* Invalid request payload
|
|
11275
11335
|
*/
|
|
@@ -11304,16 +11364,16 @@ export type OpUpgradeTierErrors = {
|
|
|
11304
11364
|
500: unknown;
|
|
11305
11365
|
};
|
|
11306
11366
|
|
|
11307
|
-
export type
|
|
11367
|
+
export type OpChangeTierError = OpChangeTierErrors[keyof OpChangeTierErrors];
|
|
11308
11368
|
|
|
11309
|
-
export type
|
|
11369
|
+
export type OpChangeTierResponses = {
|
|
11310
11370
|
/**
|
|
11311
11371
|
* Successful Response
|
|
11312
11372
|
*/
|
|
11313
11373
|
202: OperationEnvelope;
|
|
11314
11374
|
};
|
|
11315
11375
|
|
|
11316
|
-
export type
|
|
11376
|
+
export type OpChangeTierResponse = OpChangeTierResponses[keyof OpChangeTierResponses];
|
|
11317
11377
|
|
|
11318
11378
|
export type OpMaterializeData = {
|
|
11319
11379
|
body: MaterializeOp;
|
|
@@ -13911,6 +13971,70 @@ export type OpDeleteAssociationResponses = {
|
|
|
13911
13971
|
|
|
13912
13972
|
export type OpDeleteAssociationResponse = OpDeleteAssociationResponses[keyof OpDeleteAssociationResponses];
|
|
13913
13973
|
|
|
13974
|
+
export type OpCreateTransactionData = {
|
|
13975
|
+
body: CreateTransactionRequest;
|
|
13976
|
+
headers?: {
|
|
13977
|
+
/**
|
|
13978
|
+
* Idempotency-Key
|
|
13979
|
+
*/
|
|
13980
|
+
'Idempotency-Key'?: string | null;
|
|
13981
|
+
};
|
|
13982
|
+
path: {
|
|
13983
|
+
/**
|
|
13984
|
+
* Graph Id
|
|
13985
|
+
*/
|
|
13986
|
+
graph_id: string;
|
|
13987
|
+
};
|
|
13988
|
+
query?: never;
|
|
13989
|
+
url: '/extensions/roboledger/{graph_id}/operations/create-transaction';
|
|
13990
|
+
};
|
|
13991
|
+
|
|
13992
|
+
export type OpCreateTransactionErrors = {
|
|
13993
|
+
/**
|
|
13994
|
+
* Invalid request payload
|
|
13995
|
+
*/
|
|
13996
|
+
400: OperationError;
|
|
13997
|
+
/**
|
|
13998
|
+
* Unauthorized — missing or invalid credentials
|
|
13999
|
+
*/
|
|
14000
|
+
401: unknown;
|
|
14001
|
+
/**
|
|
14002
|
+
* Forbidden — caller cannot access this graph
|
|
14003
|
+
*/
|
|
14004
|
+
403: unknown;
|
|
14005
|
+
/**
|
|
14006
|
+
* Resource not found (graph, ledger, report, etc.)
|
|
14007
|
+
*/
|
|
14008
|
+
404: OperationError;
|
|
14009
|
+
/**
|
|
14010
|
+
* Idempotency-Key reused with a different request body, or other operation-level conflict
|
|
14011
|
+
*/
|
|
14012
|
+
409: OperationError;
|
|
14013
|
+
/**
|
|
14014
|
+
* Validation Error
|
|
14015
|
+
*/
|
|
14016
|
+
422: HttpValidationError;
|
|
14017
|
+
/**
|
|
14018
|
+
* Rate limit exceeded
|
|
14019
|
+
*/
|
|
14020
|
+
429: unknown;
|
|
14021
|
+
/**
|
|
14022
|
+
* Internal error
|
|
14023
|
+
*/
|
|
14024
|
+
500: unknown;
|
|
14025
|
+
};
|
|
14026
|
+
|
|
14027
|
+
export type OpCreateTransactionError = OpCreateTransactionErrors[keyof OpCreateTransactionErrors];
|
|
14028
|
+
|
|
14029
|
+
export type OpCreateTransactionResponses = {
|
|
14030
|
+
/**
|
|
14031
|
+
* Successful Response
|
|
14032
|
+
*/
|
|
14033
|
+
200: OperationEnvelope;
|
|
14034
|
+
};
|
|
14035
|
+
|
|
14036
|
+
export type OpCreateTransactionResponse = OpCreateTransactionResponses[keyof OpCreateTransactionResponses];
|
|
14037
|
+
|
|
13914
14038
|
export type OpCreateJournalEntryData = {
|
|
13915
14039
|
body: CreateJournalEntryRequest;
|
|
13916
14040
|
headers?: {
|