@rundit-sdk/embed 0.2.0 → 0.3.0-rc.11
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/AGENTS.md +32 -9
- package/README.md +59 -9
- package/ai-manifest.json +216 -9
- package/dist/index.d.ts +378 -99
- package/dist/index.js +248 -24
- package/openapi.json +1658 -305
- package/package.json +5 -1
- package/skills/rundit-sdk-embed/SKILL.md +2 -2
package/AGENTS.md
CHANGED
|
@@ -10,8 +10,8 @@ This package is generated for agentic and human consumers.
|
|
|
10
10
|
import { createEmbedClient, routeManifest } from '@rundit-sdk/embed'
|
|
11
11
|
|
|
12
12
|
const client = createEmbedClient({
|
|
13
|
-
baseUrl: 'https://test.rundit.com/api/v1/sdk',
|
|
14
13
|
token: '<embed token>',
|
|
14
|
+
// baseUrl: 'https://test.rundit.com/api/v2/sdk',
|
|
15
15
|
})
|
|
16
16
|
|
|
17
17
|
console.log(routeManifest)
|
|
@@ -32,14 +32,16 @@ console.log(routeManifest)
|
|
|
32
32
|
- Returns: `CompaniesGetOneResponse`
|
|
33
33
|
- Params: path: id (number)
|
|
34
34
|
- companies.getAll: List companies available to the SDK consumer
|
|
35
|
-
- Call: `client.companies.getAll()`
|
|
35
|
+
- Call: `client.companies.getAll({ limit: 123 })`
|
|
36
36
|
- Returns: `CompaniesGetAllResponse`
|
|
37
|
+
- Params: query: limit? (number), cursor? (string), companyIds? (number[]), companyGroupIds? (number[])
|
|
37
38
|
|
|
38
39
|
## companyGroups
|
|
39
40
|
|
|
40
41
|
- companyGroups.getAll: List company groups available to the SDK consumer
|
|
41
|
-
- Call: `client.companyGroups.getAll()`
|
|
42
|
+
- Call: `client.companyGroups.getAll({ limit: 123 })`
|
|
42
43
|
- Returns: `CompanyGroupsGetAllResponse`
|
|
44
|
+
- Params: query: limit? (number), cursor? (string), companyGroupIds? (number[])
|
|
43
45
|
- companyGroups.getOne: Get one company group available to the SDK consumer
|
|
44
46
|
- Call: `client.companyGroups.getOne(123)`
|
|
45
47
|
- Returns: `CompanyGroupsGetOneResponse`
|
|
@@ -50,19 +52,40 @@ console.log(routeManifest)
|
|
|
50
52
|
- positions.getCompanyPositions: Get positions for one company
|
|
51
53
|
- Call: `client.positions.getCompanyPositions(123, { currency: 'USD' })`
|
|
52
54
|
- Returns: `PositionsGetCompanyPositionsResponse`
|
|
53
|
-
- Params: path: id (number); query:
|
|
55
|
+
- Params: path: id (number); query: limit? (number), cursor? (string), companyGroupIds? (number[]), currency (string), date? (string)
|
|
54
56
|
- positions.getPortfolioPositions: Get portfolio positions
|
|
55
57
|
- Call: `client.positions.getPortfolioPositions({ currency: 'USD' })`
|
|
56
58
|
- Returns: `PositionsGetPortfolioPositionsResponse`
|
|
57
|
-
- Params: query: companyGroupIds? (number[]), currency (string), date? (string)
|
|
59
|
+
- Params: query: companyGroupIds? (number[]), companyIds? (number[]), currency (string), date? (string)
|
|
58
60
|
|
|
59
61
|
## transactions
|
|
60
62
|
|
|
61
63
|
- transactions.getCompanyTransactions: Get transactions for one company
|
|
62
|
-
- Call: `client.transactions.getCompanyTransactions(123, {
|
|
64
|
+
- Call: `client.transactions.getCompanyTransactions(123, { limit: 123 })`
|
|
63
65
|
- Returns: `TransactionsGetCompanyTransactionsResponse`
|
|
64
|
-
- Params: path: id (number); query: companyGroupIds? (number[])
|
|
66
|
+
- Params: path: id (number); query: limit? (number), cursor? (string), companyGroupIds? (number[]), types? (("Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff")[]), priorTo? (string)
|
|
65
67
|
- transactions.getTransactions: Get transactions for multiple companies
|
|
66
|
-
- Call: `client.transactions.getTransactions({
|
|
68
|
+
- Call: `client.transactions.getTransactions({ limit: 123 })`
|
|
67
69
|
- Returns: `TransactionsGetTransactionsResponse`
|
|
68
|
-
- Params: query: companyGroupIds? (number[]), companyIds? (number[])
|
|
70
|
+
- Params: query: limit? (number), cursor? (string), companyGroupIds? (number[]), types? (("Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff")[]), priorTo? (string), companyIds? (number[])
|
|
71
|
+
|
|
72
|
+
## metrics
|
|
73
|
+
|
|
74
|
+
- metrics.getTypes: List metric types available to the SDK consumer
|
|
75
|
+
- Call: `client.metrics.getTypes()`
|
|
76
|
+
- Returns: `MetricsGetTypesResponse`
|
|
77
|
+
- metrics.search: Read metric values for accessible companies, grouped by company
|
|
78
|
+
- Call: `client.metrics.search({})`
|
|
79
|
+
- Returns: `MetricsSearchResponse`
|
|
80
|
+
- Params: body: MetricsSearchBody
|
|
81
|
+
|
|
82
|
+
## companyReports
|
|
83
|
+
|
|
84
|
+
- companyReports.list: List published company reports accessible to the caller (metadata only)
|
|
85
|
+
- Call: `client.companyReports.list({ limit: 123 })`
|
|
86
|
+
- Returns: `CompanyReportsListResponse`
|
|
87
|
+
- Params: query: limit? (number), cursor? (string), companyIds? (number[]), companyGroupIds? (number[]), timeframe? ("Month" | "Quarter" | "Year"), from? (string), to? (string)
|
|
88
|
+
- companyReports.getOne: Fetch the full content of a single company report
|
|
89
|
+
- Call: `client.companyReports.getOne(123)`
|
|
90
|
+
- Returns: `CompanyReportsGetOneResponse`
|
|
91
|
+
- Params: path: id (number)
|
package/README.md
CHANGED
|
@@ -16,15 +16,23 @@ npm install @rundit-sdk/embed
|
|
|
16
16
|
import { createEmbedClient } from '@rundit-sdk/embed'
|
|
17
17
|
|
|
18
18
|
const client = createEmbedClient({
|
|
19
|
-
baseUrl: 'https://test.rundit.com/api/v1/sdk',
|
|
20
19
|
token: '<embed token>',
|
|
20
|
+
// baseUrl: 'https://test.rundit.com/api/v2/sdk',
|
|
21
21
|
})
|
|
22
22
|
|
|
23
23
|
await client.companies.getOne(123)
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
## Authentication
|
|
27
|
+
|
|
28
|
+
- Authenticated with an embed session token sent as a `Bearer` token in the `Authorization` header
|
|
29
|
+
- Embed tokens are short-lived and minted by the host application for a specific user
|
|
30
|
+
- Tokens carry the issuing user's security context; the SDK cannot escape those bounds
|
|
31
|
+
|
|
32
|
+
|
|
26
33
|
## AI Quickstart
|
|
27
34
|
|
|
35
|
+
- Designed for embedded Lovable modules and iframe integrations
|
|
28
36
|
- Use namespace methods such as `client.companies.getAll()` or `client.positions.getPortfolioPositions({ currency: 'USD' })`
|
|
29
37
|
- Inspect `routeManifest` at runtime for a machine-readable map of method paths, parameters, and response types
|
|
30
38
|
- Read `AGENTS.md` or `ai-manifest.json` in this package for AI-focused usage guidance
|
|
@@ -49,9 +57,10 @@ Get one company available to the SDK consumer
|
|
|
49
57
|
|
|
50
58
|
List companies available to the SDK consumer
|
|
51
59
|
|
|
52
|
-
- Call: `client.companies.getAll()`
|
|
60
|
+
- Call: `client.companies.getAll({ limit: 123 })`
|
|
53
61
|
- HTTP: `GET /companies`
|
|
54
62
|
- Returns: `CompaniesGetAllResponse`
|
|
63
|
+
- Params: query: limit? (number), cursor? (string), companyIds? (number[]), companyGroupIds? (number[])
|
|
55
64
|
|
|
56
65
|
## companyGroups
|
|
57
66
|
|
|
@@ -59,9 +68,10 @@ List companies available to the SDK consumer
|
|
|
59
68
|
|
|
60
69
|
List company groups available to the SDK consumer
|
|
61
70
|
|
|
62
|
-
- Call: `client.companyGroups.getAll()`
|
|
71
|
+
- Call: `client.companyGroups.getAll({ limit: 123 })`
|
|
63
72
|
- HTTP: `GET /company-groups`
|
|
64
73
|
- Returns: `CompanyGroupsGetAllResponse`
|
|
74
|
+
- Params: query: limit? (number), cursor? (string), companyGroupIds? (number[])
|
|
65
75
|
|
|
66
76
|
### `companyGroups.getOne`
|
|
67
77
|
|
|
@@ -81,7 +91,7 @@ Get positions for one company
|
|
|
81
91
|
- Call: `client.positions.getCompanyPositions(123, { currency: 'USD' })`
|
|
82
92
|
- HTTP: `GET /positions/companies/:id`
|
|
83
93
|
- Returns: `PositionsGetCompanyPositionsResponse`
|
|
84
|
-
- Params: path: id (number); query:
|
|
94
|
+
- Params: path: id (number); query: limit? (number), cursor? (string), companyGroupIds? (number[]), currency (string), date? (string)
|
|
85
95
|
|
|
86
96
|
### `positions.getPortfolioPositions`
|
|
87
97
|
|
|
@@ -90,7 +100,7 @@ Get portfolio positions
|
|
|
90
100
|
- Call: `client.positions.getPortfolioPositions({ currency: 'USD' })`
|
|
91
101
|
- HTTP: `GET /positions/portfolio`
|
|
92
102
|
- Returns: `PositionsGetPortfolioPositionsResponse`
|
|
93
|
-
- Params: query: companyGroupIds? (number[]), currency (string), date? (string)
|
|
103
|
+
- Params: query: companyGroupIds? (number[]), companyIds? (number[]), currency (string), date? (string)
|
|
94
104
|
|
|
95
105
|
## transactions
|
|
96
106
|
|
|
@@ -98,19 +108,58 @@ Get portfolio positions
|
|
|
98
108
|
|
|
99
109
|
Get transactions for one company
|
|
100
110
|
|
|
101
|
-
- Call: `client.transactions.getCompanyTransactions(123, {
|
|
111
|
+
- Call: `client.transactions.getCompanyTransactions(123, { limit: 123 })`
|
|
102
112
|
- HTTP: `GET /transactions/companies/:id`
|
|
103
113
|
- Returns: `TransactionsGetCompanyTransactionsResponse`
|
|
104
|
-
- Params: path: id (number); query: companyGroupIds? (number[])
|
|
114
|
+
- Params: path: id (number); query: limit? (number), cursor? (string), companyGroupIds? (number[]), types? (("Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff")[]), priorTo? (string)
|
|
105
115
|
|
|
106
116
|
### `transactions.getTransactions`
|
|
107
117
|
|
|
108
118
|
Get transactions for multiple companies
|
|
109
119
|
|
|
110
|
-
- Call: `client.transactions.getTransactions({
|
|
120
|
+
- Call: `client.transactions.getTransactions({ limit: 123 })`
|
|
111
121
|
- HTTP: `GET /transactions`
|
|
112
122
|
- Returns: `TransactionsGetTransactionsResponse`
|
|
113
|
-
- Params: query: companyGroupIds? (number[]), companyIds? (number[])
|
|
123
|
+
- Params: query: limit? (number), cursor? (string), companyGroupIds? (number[]), types? (("Auction" | "ConvertibleNote" | "ConvertToEquity" | "Dividend" | "EquityInvestment" | "EquityReceived" | "Extend" | "FutureEquityAgreement" | "Insolvency" | "IPO" | "LimitedAuction" | "OptionsReceived" | "OtherExit" | "OtherInvestment" | "OtherRealization" | "Payback" | "Proprietary" | "TradeSale" | "ValuationChange" | "WriteOff")[]), priorTo? (string), companyIds? (number[])
|
|
124
|
+
|
|
125
|
+
## metrics
|
|
126
|
+
|
|
127
|
+
### `metrics.getTypes`
|
|
128
|
+
|
|
129
|
+
List metric types available to the SDK consumer
|
|
130
|
+
|
|
131
|
+
- Call: `client.metrics.getTypes()`
|
|
132
|
+
- HTTP: `GET /metrics/types`
|
|
133
|
+
- Returns: `MetricsGetTypesResponse`
|
|
134
|
+
|
|
135
|
+
### `metrics.search`
|
|
136
|
+
|
|
137
|
+
Read metric values for accessible companies, grouped by company
|
|
138
|
+
|
|
139
|
+
- Call: `client.metrics.search({})`
|
|
140
|
+
- HTTP: `POST /metrics`
|
|
141
|
+
- Returns: `MetricsSearchResponse`
|
|
142
|
+
- Params: body: MetricsSearchBody
|
|
143
|
+
|
|
144
|
+
## companyReports
|
|
145
|
+
|
|
146
|
+
### `companyReports.list`
|
|
147
|
+
|
|
148
|
+
List published company reports accessible to the caller (metadata only)
|
|
149
|
+
|
|
150
|
+
- Call: `client.companyReports.list({ limit: 123 })`
|
|
151
|
+
- HTTP: `GET /company-reports`
|
|
152
|
+
- Returns: `CompanyReportsListResponse`
|
|
153
|
+
- Params: query: limit? (number), cursor? (string), companyIds? (number[]), companyGroupIds? (number[]), timeframe? ("Month" | "Quarter" | "Year"), from? (string), to? (string)
|
|
154
|
+
|
|
155
|
+
### `companyReports.getOne`
|
|
156
|
+
|
|
157
|
+
Fetch the full content of a single company report
|
|
158
|
+
|
|
159
|
+
- Call: `client.companyReports.getOne(123)`
|
|
160
|
+
- HTTP: `GET /company-reports/:id`
|
|
161
|
+
- Returns: `CompanyReportsGetOneResponse`
|
|
162
|
+
- Params: path: id (number)
|
|
114
163
|
|
|
115
164
|
## TypeScript
|
|
116
165
|
|
|
@@ -122,4 +171,5 @@ Get transactions for multiple companies
|
|
|
122
171
|
## Notes
|
|
123
172
|
|
|
124
173
|
- This package is generated from `sdk-packages/openapi/sdk.openapi.json`
|
|
174
|
+
- Defaults to `https://api.rundit.com/api/v2/sdk`; pass `baseUrl` to target a different environment such as test
|
|
125
175
|
- Do not edit files under `dist/` manually
|
package/ai-manifest.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"placeholderNotice": null,
|
|
6
6
|
"factoryName": "createEmbedClient",
|
|
7
7
|
"initialization": {
|
|
8
|
-
"
|
|
8
|
+
"baseUrlDefault": "https://api.rundit.com/api/v2/sdk",
|
|
9
9
|
"authOption": "token",
|
|
10
10
|
"authLabel": "embed token"
|
|
11
11
|
},
|
|
@@ -43,10 +43,35 @@
|
|
|
43
43
|
"description": null,
|
|
44
44
|
"method": "GET",
|
|
45
45
|
"path": "/companies",
|
|
46
|
-
"exampleCall": "client.companies.getAll()",
|
|
46
|
+
"exampleCall": "client.companies.getAll({ limit: 123 })",
|
|
47
47
|
"responseType": "CompaniesGetAllResponse",
|
|
48
48
|
"pathParams": [],
|
|
49
|
-
"queryParams": [
|
|
49
|
+
"queryParams": [
|
|
50
|
+
{
|
|
51
|
+
"name": "limit",
|
|
52
|
+
"required": false,
|
|
53
|
+
"type": "number",
|
|
54
|
+
"description": "Maximum items per page. Currently accepted but not enforced; reserved for future pagination."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "cursor",
|
|
58
|
+
"required": false,
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "companyIds",
|
|
64
|
+
"required": false,
|
|
65
|
+
"type": "number[]",
|
|
66
|
+
"description": "Restrict results to these company identifiers"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "companyGroupIds",
|
|
70
|
+
"required": false,
|
|
71
|
+
"type": "number[]",
|
|
72
|
+
"description": "Restrict results to companies that belong to any of these company groups"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
50
75
|
}
|
|
51
76
|
],
|
|
52
77
|
"companyGroups": [
|
|
@@ -56,10 +81,29 @@
|
|
|
56
81
|
"description": null,
|
|
57
82
|
"method": "GET",
|
|
58
83
|
"path": "/company-groups",
|
|
59
|
-
"exampleCall": "client.companyGroups.getAll()",
|
|
84
|
+
"exampleCall": "client.companyGroups.getAll({ limit: 123 })",
|
|
60
85
|
"responseType": "CompanyGroupsGetAllResponse",
|
|
61
86
|
"pathParams": [],
|
|
62
|
-
"queryParams": [
|
|
87
|
+
"queryParams": [
|
|
88
|
+
{
|
|
89
|
+
"name": "limit",
|
|
90
|
+
"required": false,
|
|
91
|
+
"type": "number",
|
|
92
|
+
"description": "Maximum items per page. Currently accepted but not enforced; reserved for future pagination."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "cursor",
|
|
96
|
+
"required": false,
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "companyGroupIds",
|
|
102
|
+
"required": false,
|
|
103
|
+
"type": "number[]",
|
|
104
|
+
"description": "Restrict results to these company group identifiers"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
63
107
|
},
|
|
64
108
|
{
|
|
65
109
|
"operation": "getOne",
|
|
@@ -97,10 +141,22 @@
|
|
|
97
141
|
],
|
|
98
142
|
"queryParams": [
|
|
99
143
|
{
|
|
100
|
-
"name": "
|
|
144
|
+
"name": "limit",
|
|
101
145
|
"required": false,
|
|
102
146
|
"type": "number",
|
|
103
|
-
"description": "
|
|
147
|
+
"description": "Maximum items per page. Currently accepted but not enforced; reserved for future pagination."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "cursor",
|
|
151
|
+
"required": false,
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "companyGroupIds",
|
|
157
|
+
"required": false,
|
|
158
|
+
"type": "number[]",
|
|
159
|
+
"description": "Optional list of company group identifiers to filter the position breakdown"
|
|
104
160
|
},
|
|
105
161
|
{
|
|
106
162
|
"name": "currency",
|
|
@@ -132,6 +188,12 @@
|
|
|
132
188
|
"type": "number[]",
|
|
133
189
|
"description": "Optional list of company group identifiers to filter the portfolio positions"
|
|
134
190
|
},
|
|
191
|
+
{
|
|
192
|
+
"name": "companyIds",
|
|
193
|
+
"required": false,
|
|
194
|
+
"type": "number[]",
|
|
195
|
+
"description": "Optional list of company identifiers to narrow the aggregation to"
|
|
196
|
+
},
|
|
135
197
|
{
|
|
136
198
|
"name": "currency",
|
|
137
199
|
"required": true,
|
|
@@ -154,7 +216,7 @@
|
|
|
154
216
|
"description": null,
|
|
155
217
|
"method": "GET",
|
|
156
218
|
"path": "/transactions/companies/:id",
|
|
157
|
-
"exampleCall": "client.transactions.getCompanyTransactions(123, {
|
|
219
|
+
"exampleCall": "client.transactions.getCompanyTransactions(123, { limit: 123 })",
|
|
158
220
|
"responseType": "TransactionsGetCompanyTransactionsResponse",
|
|
159
221
|
"pathParams": [
|
|
160
222
|
{
|
|
@@ -164,11 +226,35 @@
|
|
|
164
226
|
}
|
|
165
227
|
],
|
|
166
228
|
"queryParams": [
|
|
229
|
+
{
|
|
230
|
+
"name": "limit",
|
|
231
|
+
"required": false,
|
|
232
|
+
"type": "number",
|
|
233
|
+
"description": "Maximum items per page. Currently accepted but not enforced; reserved for future pagination."
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "cursor",
|
|
237
|
+
"required": false,
|
|
238
|
+
"type": "string",
|
|
239
|
+
"description": "Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored."
|
|
240
|
+
},
|
|
167
241
|
{
|
|
168
242
|
"name": "companyGroupIds",
|
|
169
243
|
"required": false,
|
|
170
244
|
"type": "number[]",
|
|
171
245
|
"description": "Optional company group identifiers to filter transactions by"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "types",
|
|
249
|
+
"required": false,
|
|
250
|
+
"type": "(\"Auction\" | \"ConvertibleNote\" | \"ConvertToEquity\" | \"Dividend\" | \"EquityInvestment\" | \"EquityReceived\" | \"Extend\" | \"FutureEquityAgreement\" | \"Insolvency\" | \"IPO\" | \"LimitedAuction\" | \"OptionsReceived\" | \"OtherExit\" | \"OtherInvestment\" | \"OtherRealization\" | \"Payback\" | \"Proprietary\" | \"TradeSale\" | \"ValuationChange\" | \"WriteOff\")[]",
|
|
251
|
+
"description": "Restrict results to these transaction types"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "priorTo",
|
|
255
|
+
"required": false,
|
|
256
|
+
"type": "string",
|
|
257
|
+
"description": "Exclude transactions on or after this ISO 8601 date (cut-off filter)"
|
|
172
258
|
}
|
|
173
259
|
]
|
|
174
260
|
},
|
|
@@ -178,16 +264,40 @@
|
|
|
178
264
|
"description": null,
|
|
179
265
|
"method": "GET",
|
|
180
266
|
"path": "/transactions",
|
|
181
|
-
"exampleCall": "client.transactions.getTransactions({
|
|
267
|
+
"exampleCall": "client.transactions.getTransactions({ limit: 123 })",
|
|
182
268
|
"responseType": "TransactionsGetTransactionsResponse",
|
|
183
269
|
"pathParams": [],
|
|
184
270
|
"queryParams": [
|
|
271
|
+
{
|
|
272
|
+
"name": "limit",
|
|
273
|
+
"required": false,
|
|
274
|
+
"type": "number",
|
|
275
|
+
"description": "Maximum items per page. Currently accepted but not enforced; reserved for future pagination."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "cursor",
|
|
279
|
+
"required": false,
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored."
|
|
282
|
+
},
|
|
185
283
|
{
|
|
186
284
|
"name": "companyGroupIds",
|
|
187
285
|
"required": false,
|
|
188
286
|
"type": "number[]",
|
|
189
287
|
"description": "Optional company group identifiers to filter transactions by"
|
|
190
288
|
},
|
|
289
|
+
{
|
|
290
|
+
"name": "types",
|
|
291
|
+
"required": false,
|
|
292
|
+
"type": "(\"Auction\" | \"ConvertibleNote\" | \"ConvertToEquity\" | \"Dividend\" | \"EquityInvestment\" | \"EquityReceived\" | \"Extend\" | \"FutureEquityAgreement\" | \"Insolvency\" | \"IPO\" | \"LimitedAuction\" | \"OptionsReceived\" | \"OtherExit\" | \"OtherInvestment\" | \"OtherRealization\" | \"Payback\" | \"Proprietary\" | \"TradeSale\" | \"ValuationChange\" | \"WriteOff\")[]",
|
|
293
|
+
"description": "Restrict results to these transaction types"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "priorTo",
|
|
297
|
+
"required": false,
|
|
298
|
+
"type": "string",
|
|
299
|
+
"description": "Exclude transactions on or after this ISO 8601 date (cut-off filter)"
|
|
300
|
+
},
|
|
191
301
|
{
|
|
192
302
|
"name": "companyIds",
|
|
193
303
|
"required": false,
|
|
@@ -196,6 +306,103 @@
|
|
|
196
306
|
}
|
|
197
307
|
]
|
|
198
308
|
}
|
|
309
|
+
],
|
|
310
|
+
"metrics": [
|
|
311
|
+
{
|
|
312
|
+
"operation": "getTypes",
|
|
313
|
+
"summary": "List metric types available to the SDK consumer",
|
|
314
|
+
"description": "Returns predefined metric types plus user-defined metric types scoped to the caller — VC group custom types for VC users, company custom types for company users. Each entry includes a numeric id and a human-readable name suitable for display or LLM context.",
|
|
315
|
+
"method": "GET",
|
|
316
|
+
"path": "/metrics/types",
|
|
317
|
+
"exampleCall": "client.metrics.getTypes()",
|
|
318
|
+
"responseType": "MetricsGetTypesResponse",
|
|
319
|
+
"pathParams": [],
|
|
320
|
+
"queryParams": []
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"operation": "search",
|
|
324
|
+
"summary": "Read metric values for accessible companies, grouped by company",
|
|
325
|
+
"description": "Returns metric data points for companies the caller can access (companies in the caller's VC group portfolio, or the caller's own company for company users). Each entry carries company and metric type references with id and human-readable name. Filter by company, company group, metric type, timeframe, and date range to narrow the response.",
|
|
326
|
+
"method": "POST",
|
|
327
|
+
"path": "/metrics",
|
|
328
|
+
"exampleCall": "client.metrics.search({})",
|
|
329
|
+
"responseType": "MetricsSearchResponse",
|
|
330
|
+
"pathParams": [],
|
|
331
|
+
"queryParams": []
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"companyReports": [
|
|
335
|
+
{
|
|
336
|
+
"operation": "list",
|
|
337
|
+
"summary": "List published company reports accessible to the caller (metadata only)",
|
|
338
|
+
"description": "Returns lightweight report metadata (id, title, period, publisher company reference). Use GET /company-reports/:id to fetch the full content of a specific report. Visibility is determined by the caller's roles — VC users see reports for managed-portfolio companies, company employees see their own company's reports, portfolio investors see Published reports shared with their visibility groups. Filters narrow the list by company ids and reporting period (timeframe + date range).",
|
|
339
|
+
"method": "GET",
|
|
340
|
+
"path": "/company-reports",
|
|
341
|
+
"exampleCall": "client.companyReports.list({ limit: 123 })",
|
|
342
|
+
"responseType": "CompanyReportsListResponse",
|
|
343
|
+
"pathParams": [],
|
|
344
|
+
"queryParams": [
|
|
345
|
+
{
|
|
346
|
+
"name": "limit",
|
|
347
|
+
"required": false,
|
|
348
|
+
"type": "number",
|
|
349
|
+
"description": "Maximum items per page. Currently accepted but not enforced; reserved for future pagination."
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "cursor",
|
|
353
|
+
"required": false,
|
|
354
|
+
"type": "string",
|
|
355
|
+
"description": "Opaque cursor from a previous response's meta.nextCursor. Currently accepted but ignored."
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "companyIds",
|
|
359
|
+
"required": false,
|
|
360
|
+
"type": "number[]",
|
|
361
|
+
"description": "Restrict results to these companies. Defaults to all companies the caller can access."
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "companyGroupIds",
|
|
365
|
+
"required": false,
|
|
366
|
+
"type": "number[]",
|
|
367
|
+
"description": "Restrict to companies that belong to any of these company groups."
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "timeframe",
|
|
371
|
+
"required": false,
|
|
372
|
+
"type": "\"Month\" | \"Quarter\" | \"Year\"",
|
|
373
|
+
"description": "Restrict to a reporting period granularity (Month, Quarter, Year)."
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "from",
|
|
377
|
+
"required": false,
|
|
378
|
+
"type": "string",
|
|
379
|
+
"description": "Lower bound for the reporting period date (ISO 8601, inclusive)."
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "to",
|
|
383
|
+
"required": false,
|
|
384
|
+
"type": "string",
|
|
385
|
+
"description": "Upper bound for the reporting period date (ISO 8601, inclusive)."
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"operation": "getOne",
|
|
391
|
+
"summary": "Fetch the full content of a single company report",
|
|
392
|
+
"description": "Returns the report metadata plus structured sections (text/markdown/image) and attachments with pre-signed URLs. Returns 404 if the report does not exist and 403 if the caller cannot access it under their role-based permissions.",
|
|
393
|
+
"method": "GET",
|
|
394
|
+
"path": "/company-reports/:id",
|
|
395
|
+
"exampleCall": "client.companyReports.getOne(123)",
|
|
396
|
+
"responseType": "CompanyReportsGetOneResponse",
|
|
397
|
+
"pathParams": [
|
|
398
|
+
{
|
|
399
|
+
"name": "id",
|
|
400
|
+
"type": "number",
|
|
401
|
+
"description": "Report identifier"
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
"queryParams": []
|
|
405
|
+
}
|
|
199
406
|
]
|
|
200
407
|
}
|
|
201
408
|
}
|