@robosystems/client 0.6.0 → 0.6.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.
- package/artifacts/graphql/generated/graphql.d.ts +1 -1
- package/artifacts/graphql/generated/graphql.ts +1 -1
- 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 +10 -2
- package/sdk/sdk.gen.js +20 -3
- package/sdk/sdk.gen.ts +19 -2
- package/sdk/types.gen.d.ts +306 -6
- package/sdk/types.gen.ts +317 -6
- package/sdk.gen.d.ts +10 -2
- package/sdk.gen.js +20 -3
- package/sdk.gen.ts +19 -2
- package/types.gen.d.ts +306 -6
- package/types.gen.ts +317 -6
package/types.gen.d.ts
CHANGED
|
@@ -189,6 +189,151 @@ export type ArtifactResponse = {
|
|
|
189
189
|
kind: 'forecast';
|
|
190
190
|
} & ForecastMechanics);
|
|
191
191
|
};
|
|
192
|
+
/**
|
|
193
|
+
* AssertMetricsRequest
|
|
194
|
+
*
|
|
195
|
+
* Request body for the ``assert-metrics`` operation.
|
|
196
|
+
*
|
|
197
|
+
* The observation sibling of ``compute-metrics``: writes externally-
|
|
198
|
+
* observed values (usage counts, marketing numbers, hand-carried
|
|
199
|
+
* figures) into the period's standing ``factset_type='metric'`` FactSet
|
|
200
|
+
* with ``AssertedProvenance``. Re-asserting a period replaces its facts
|
|
201
|
+
* — one standing FactSet per (structure, entity, period_end), the
|
|
202
|
+
* accumulating time series.
|
|
203
|
+
*
|
|
204
|
+
* Structures carrying ``Derive`` rules are compute-owned
|
|
205
|
+
* (``compute-metrics``) and rejected — asserted and derived metric
|
|
206
|
+
* series keep disjoint structures. Asserted series are actuals; there
|
|
207
|
+
* is no scenario axis.
|
|
208
|
+
*/
|
|
209
|
+
export type AssertMetricsRequest = {
|
|
210
|
+
/**
|
|
211
|
+
* Structure Id
|
|
212
|
+
*
|
|
213
|
+
* Metric block structure (block_type='metric') to assert into.
|
|
214
|
+
*/
|
|
215
|
+
structure_id: string;
|
|
216
|
+
/**
|
|
217
|
+
* Period End
|
|
218
|
+
*
|
|
219
|
+
* Period end the observations are for — instant concepts (a follower count at month end) land as of this date; duration concepts (monthly downloads) end on it.
|
|
220
|
+
*/
|
|
221
|
+
period_end: string;
|
|
222
|
+
/**
|
|
223
|
+
* Period Start
|
|
224
|
+
*
|
|
225
|
+
* Window start for duration concepts and the standing FactSet's period_start. Instant concepts ignore it.
|
|
226
|
+
*/
|
|
227
|
+
period_start?: string | null;
|
|
228
|
+
/**
|
|
229
|
+
* Entity Id
|
|
230
|
+
*
|
|
231
|
+
* Entity to assert for. Defaults to the graph's earliest-created entity (the primary entity for single-entity graphs).
|
|
232
|
+
*/
|
|
233
|
+
entity_id?: string | null;
|
|
234
|
+
/**
|
|
235
|
+
* Source System
|
|
236
|
+
*
|
|
237
|
+
* Identifier of the asserting system (e.g. 'content-machine') — recorded as the AssertedProvenance source_system.
|
|
238
|
+
*/
|
|
239
|
+
source_system: string;
|
|
240
|
+
/**
|
|
241
|
+
* Basis Note
|
|
242
|
+
*
|
|
243
|
+
* Free-text basis / source reference for the observations.
|
|
244
|
+
*/
|
|
245
|
+
basis_note?: string | null;
|
|
246
|
+
/**
|
|
247
|
+
* Observations
|
|
248
|
+
*
|
|
249
|
+
* Observed values, one per metric concept — duplicates rejected.
|
|
250
|
+
*/
|
|
251
|
+
observations: Array<MetricObservation>;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* AssertMetricsResponse
|
|
255
|
+
*
|
|
256
|
+
* Response for the ``assert-metrics`` operation.
|
|
257
|
+
*/
|
|
258
|
+
export type AssertMetricsResponse = {
|
|
259
|
+
/**
|
|
260
|
+
* Structure Id
|
|
261
|
+
*/
|
|
262
|
+
structure_id: string;
|
|
263
|
+
/**
|
|
264
|
+
* Entity Id
|
|
265
|
+
*/
|
|
266
|
+
entity_id: string;
|
|
267
|
+
/**
|
|
268
|
+
* Period End
|
|
269
|
+
*/
|
|
270
|
+
period_end: string;
|
|
271
|
+
/**
|
|
272
|
+
* Fact Set Id
|
|
273
|
+
*
|
|
274
|
+
* Standing metric FactSet the observations were written to.
|
|
275
|
+
*/
|
|
276
|
+
fact_set_id: string;
|
|
277
|
+
/**
|
|
278
|
+
* Asserted
|
|
279
|
+
*/
|
|
280
|
+
asserted?: Array<AssertedMetricLite>;
|
|
281
|
+
/**
|
|
282
|
+
* Replaced
|
|
283
|
+
*
|
|
284
|
+
* True when a prior standing set existed for the period and its facts were replaced.
|
|
285
|
+
*/
|
|
286
|
+
replaced?: boolean;
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* AssertedMetricLite
|
|
290
|
+
*
|
|
291
|
+
* One metric written by an ``assert-metrics`` run.
|
|
292
|
+
*/
|
|
293
|
+
export type AssertedMetricLite = {
|
|
294
|
+
/**
|
|
295
|
+
* Element Id
|
|
296
|
+
*
|
|
297
|
+
* Metric element the fact was written for.
|
|
298
|
+
*/
|
|
299
|
+
element_id: string;
|
|
300
|
+
/**
|
|
301
|
+
* Element Qname
|
|
302
|
+
*
|
|
303
|
+
* Metric element qname.
|
|
304
|
+
*/
|
|
305
|
+
element_qname: string;
|
|
306
|
+
/**
|
|
307
|
+
* Name
|
|
308
|
+
*
|
|
309
|
+
* Metric display name.
|
|
310
|
+
*/
|
|
311
|
+
name: string;
|
|
312
|
+
/**
|
|
313
|
+
* Value
|
|
314
|
+
*
|
|
315
|
+
* Asserted value.
|
|
316
|
+
*/
|
|
317
|
+
value: number;
|
|
318
|
+
/**
|
|
319
|
+
* Unit
|
|
320
|
+
*
|
|
321
|
+
* Fact unit — 'USD' for monetary, 'days' for days, else 'pure'.
|
|
322
|
+
*/
|
|
323
|
+
unit: string;
|
|
324
|
+
/**
|
|
325
|
+
* Period Type
|
|
326
|
+
*
|
|
327
|
+
* 'instant' or 'duration'.
|
|
328
|
+
*/
|
|
329
|
+
period_type: string;
|
|
330
|
+
/**
|
|
331
|
+
* Item Type
|
|
332
|
+
*
|
|
333
|
+
* Format family from the metric element (monetary | ratio | percent | multiple | days). None means untyped; fall back to unit.
|
|
334
|
+
*/
|
|
335
|
+
item_type?: string | null;
|
|
336
|
+
};
|
|
192
337
|
/**
|
|
193
338
|
* AssociationResponse
|
|
194
339
|
*
|
|
@@ -1672,7 +1817,7 @@ export type ConnectionProviderInfo = {
|
|
|
1672
1817
|
*
|
|
1673
1818
|
* Provider identifier
|
|
1674
1819
|
*/
|
|
1675
|
-
provider: 'sec' | 'quickbooks';
|
|
1820
|
+
provider: 'sec' | 'quickbooks' | 'external';
|
|
1676
1821
|
/**
|
|
1677
1822
|
* Display Name
|
|
1678
1823
|
*
|
|
@@ -1794,6 +1939,12 @@ export type ConnectionResponse = {
|
|
|
1794
1939
|
* Source-of-truth write policy: 'native' (RoboSystems is authoritative; no outbound write-back) or 'qb_authoritative' (QuickBooks is authoritative; RoboSystems-originated entries publish to QB). Set via the write-policy endpoint.
|
|
1795
1940
|
*/
|
|
1796
1941
|
write_policy?: string | null;
|
|
1942
|
+
/**
|
|
1943
|
+
* Source Name
|
|
1944
|
+
*
|
|
1945
|
+
* External-provider registered source slug — the value the integration stamps on the events it emits. Null for platform providers.
|
|
1946
|
+
*/
|
|
1947
|
+
source_name?: string | null;
|
|
1797
1948
|
/**
|
|
1798
1949
|
* Metadata
|
|
1799
1950
|
*
|
|
@@ -2053,7 +2204,7 @@ export type CreateConnectionRequest = {
|
|
|
2053
2204
|
*
|
|
2054
2205
|
* Connection provider type
|
|
2055
2206
|
*/
|
|
2056
|
-
provider: 'sec' | 'quickbooks';
|
|
2207
|
+
provider: 'sec' | 'quickbooks' | 'external';
|
|
2057
2208
|
/**
|
|
2058
2209
|
* Entity Id
|
|
2059
2210
|
*
|
|
@@ -2062,6 +2213,7 @@ export type CreateConnectionRequest = {
|
|
|
2062
2213
|
entity_id?: string | null;
|
|
2063
2214
|
sec_config?: SecConnectionConfig | null;
|
|
2064
2215
|
quickbooks_config?: QuickBooksConnectionConfig | null;
|
|
2216
|
+
external_config?: ExternalConnectionConfig | null;
|
|
2065
2217
|
};
|
|
2066
2218
|
/**
|
|
2067
2219
|
* CreateEventBlockRequest
|
|
@@ -2126,7 +2278,7 @@ export type CreateEventBlockRequest = {
|
|
|
2126
2278
|
/**
|
|
2127
2279
|
* Source
|
|
2128
2280
|
*
|
|
2129
|
-
* 'manual' | 'system' | 'schedule'
|
|
2281
|
+
* 'manual' | 'system' | 'schedule', a connected provider name (e.g. 'quickbooks'), or a source_name registered via an 'external' connection. Validated against the graph's registered connections.
|
|
2130
2282
|
*/
|
|
2131
2283
|
source: string;
|
|
2132
2284
|
/**
|
|
@@ -4480,7 +4632,7 @@ export type EventBlockEnvelope = {
|
|
|
4480
4632
|
/**
|
|
4481
4633
|
* Source
|
|
4482
4634
|
*
|
|
4483
|
-
* Capture source
|
|
4635
|
+
* Capture source: `manual`, `system`, `schedule`, a connected provider name (e.g. `quickbooks`), or a registered external source_name. Used for adapter routing.
|
|
4484
4636
|
*/
|
|
4485
4637
|
source: string;
|
|
4486
4638
|
/**
|
|
@@ -4745,6 +4897,31 @@ export type ExecuteEventBlockResponse = {
|
|
|
4745
4897
|
[key: string]: unknown;
|
|
4746
4898
|
} | null;
|
|
4747
4899
|
};
|
|
4900
|
+
/**
|
|
4901
|
+
* ExternalConnectionConfig
|
|
4902
|
+
*
|
|
4903
|
+
* External-integration connection configuration.
|
|
4904
|
+
*
|
|
4905
|
+
* Registers a source namespace for an integration the platform does not
|
|
4906
|
+
* run: the connection is registration + telemetry, not execution config.
|
|
4907
|
+
* The platform holds no credentials for the external source — the
|
|
4908
|
+
* integration authenticates to its own source and writes here through
|
|
4909
|
+
* the public API, stamping ``source_name`` on everything it emits.
|
|
4910
|
+
*/
|
|
4911
|
+
export type ExternalConnectionConfig = {
|
|
4912
|
+
/**
|
|
4913
|
+
* Source Name
|
|
4914
|
+
*
|
|
4915
|
+
* Source slug the integration stamps on the events it emits (lowercase letters, digits, '-', '_'; must start with a letter). Unique per graph among live connections.
|
|
4916
|
+
*/
|
|
4917
|
+
source_name: string;
|
|
4918
|
+
/**
|
|
4919
|
+
* Display Name
|
|
4920
|
+
*
|
|
4921
|
+
* Human-readable label for the connections UI.
|
|
4922
|
+
*/
|
|
4923
|
+
display_name?: string | null;
|
|
4924
|
+
};
|
|
4748
4925
|
/**
|
|
4749
4926
|
* FactLite
|
|
4750
4927
|
*
|
|
@@ -7788,7 +7965,7 @@ export type MaterializeOp = {
|
|
|
7788
7965
|
/**
|
|
7789
7966
|
* Rebuild
|
|
7790
7967
|
*
|
|
7791
|
-
* Rebuild the graph from scratch, dropping existing data
|
|
7968
|
+
* Rebuild the graph from scratch, dropping existing data. Required (staged source) when materializing new uploads into a graph that already contains materialized data — staging replays all uploaded files, so a non-rebuild pass would re-copy ingested rows (409).
|
|
7792
7969
|
*/
|
|
7793
7970
|
rebuild?: boolean;
|
|
7794
7971
|
/**
|
|
@@ -7957,6 +8134,25 @@ export type MetricMechanics = {
|
|
|
7957
8134
|
*/
|
|
7958
8135
|
unit?: string;
|
|
7959
8136
|
};
|
|
8137
|
+
/**
|
|
8138
|
+
* MetricObservation
|
|
8139
|
+
*
|
|
8140
|
+
* One externally-observed value in an ``assert-metrics`` request.
|
|
8141
|
+
*/
|
|
8142
|
+
export type MetricObservation = {
|
|
8143
|
+
/**
|
|
8144
|
+
* Qname
|
|
8145
|
+
*
|
|
8146
|
+
* Metric element qname (e.g. rsx:GithubStars). Must resolve to a concept on the structure's presentation catalog.
|
|
8147
|
+
*/
|
|
8148
|
+
qname: string;
|
|
8149
|
+
/**
|
|
8150
|
+
* Value
|
|
8151
|
+
*
|
|
8152
|
+
* Observed value.
|
|
8153
|
+
*/
|
|
8154
|
+
value: number;
|
|
8155
|
+
};
|
|
7960
8156
|
/**
|
|
7961
8157
|
* OAuthCallbackRequest
|
|
7962
8158
|
*
|
|
@@ -8249,6 +8445,51 @@ export type OperationEnvelope = {
|
|
|
8249
8445
|
*/
|
|
8250
8446
|
idempotentReplay?: boolean;
|
|
8251
8447
|
};
|
|
8448
|
+
/**
|
|
8449
|
+
* OperationEnvelope[AssertMetricsResponse]
|
|
8450
|
+
*/
|
|
8451
|
+
export type OperationEnvelopeAssertMetricsResponse = {
|
|
8452
|
+
/**
|
|
8453
|
+
* Operation
|
|
8454
|
+
*
|
|
8455
|
+
* Kebab-case operation name
|
|
8456
|
+
*/
|
|
8457
|
+
operation: string;
|
|
8458
|
+
/**
|
|
8459
|
+
* Operationid
|
|
8460
|
+
*
|
|
8461
|
+
* op_-prefixed ULID for audit and SSE correlation
|
|
8462
|
+
*/
|
|
8463
|
+
operationId: string;
|
|
8464
|
+
/**
|
|
8465
|
+
* Status
|
|
8466
|
+
*
|
|
8467
|
+
* Operation lifecycle state
|
|
8468
|
+
*/
|
|
8469
|
+
status: 'completed' | 'pending' | 'failed';
|
|
8470
|
+
/**
|
|
8471
|
+
* Command-specific result payload
|
|
8472
|
+
*/
|
|
8473
|
+
result?: AssertMetricsResponse | null;
|
|
8474
|
+
/**
|
|
8475
|
+
* At
|
|
8476
|
+
*
|
|
8477
|
+
* ISO-8601 UTC timestamp
|
|
8478
|
+
*/
|
|
8479
|
+
at: string;
|
|
8480
|
+
/**
|
|
8481
|
+
* Createdby
|
|
8482
|
+
*
|
|
8483
|
+
* User ID that initiated the operation (null for legacy callers)
|
|
8484
|
+
*/
|
|
8485
|
+
createdBy?: string | null;
|
|
8486
|
+
/**
|
|
8487
|
+
* Idempotentreplay
|
|
8488
|
+
*
|
|
8489
|
+
* True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
|
|
8490
|
+
*/
|
|
8491
|
+
idempotentReplay?: boolean;
|
|
8492
|
+
};
|
|
8252
8493
|
/**
|
|
8253
8494
|
* OperationEnvelope[AssociationResponse]
|
|
8254
8495
|
*/
|
|
@@ -17491,7 +17732,7 @@ export type ListConnectionsData = {
|
|
|
17491
17732
|
*
|
|
17492
17733
|
* Filter by provider type
|
|
17493
17734
|
*/
|
|
17494
|
-
provider?: 'sec' | 'quickbooks' | null;
|
|
17735
|
+
provider?: 'sec' | 'quickbooks' | 'external' | null;
|
|
17495
17736
|
};
|
|
17496
17737
|
url: '/v1/graphs/{graph_id}/connections';
|
|
17497
17738
|
};
|
|
@@ -22793,6 +23034,65 @@ export type ComputeMetricsResponses = {
|
|
|
22793
23034
|
200: OperationEnvelopeComputeMetricsResponse;
|
|
22794
23035
|
};
|
|
22795
23036
|
export type ComputeMetricsResponse2 = ComputeMetricsResponses[keyof ComputeMetricsResponses];
|
|
23037
|
+
export type AssertMetricsData = {
|
|
23038
|
+
body: AssertMetricsRequest;
|
|
23039
|
+
headers?: {
|
|
23040
|
+
/**
|
|
23041
|
+
* Idempotency-Key
|
|
23042
|
+
*/
|
|
23043
|
+
'Idempotency-Key'?: string | null;
|
|
23044
|
+
};
|
|
23045
|
+
path: {
|
|
23046
|
+
/**
|
|
23047
|
+
* Graph Id
|
|
23048
|
+
*/
|
|
23049
|
+
graph_id: string;
|
|
23050
|
+
};
|
|
23051
|
+
query?: never;
|
|
23052
|
+
url: '/extensions/roboledger/{graph_id}/operations/assert-metrics';
|
|
23053
|
+
};
|
|
23054
|
+
export type AssertMetricsErrors = {
|
|
23055
|
+
/**
|
|
23056
|
+
* Invalid request
|
|
23057
|
+
*/
|
|
23058
|
+
400: ErrorResponse;
|
|
23059
|
+
/**
|
|
23060
|
+
* Authentication required
|
|
23061
|
+
*/
|
|
23062
|
+
401: ErrorResponse;
|
|
23063
|
+
/**
|
|
23064
|
+
* Access denied
|
|
23065
|
+
*/
|
|
23066
|
+
403: ErrorResponse;
|
|
23067
|
+
/**
|
|
23068
|
+
* Resource not found
|
|
23069
|
+
*/
|
|
23070
|
+
404: ErrorResponse;
|
|
23071
|
+
/**
|
|
23072
|
+
* Idempotency-Key conflict — key reused with different body
|
|
23073
|
+
*/
|
|
23074
|
+
409: ErrorResponse;
|
|
23075
|
+
/**
|
|
23076
|
+
* Validation error
|
|
23077
|
+
*/
|
|
23078
|
+
422: ErrorResponse;
|
|
23079
|
+
/**
|
|
23080
|
+
* Rate limit exceeded
|
|
23081
|
+
*/
|
|
23082
|
+
429: ErrorResponse;
|
|
23083
|
+
/**
|
|
23084
|
+
* Internal server error
|
|
23085
|
+
*/
|
|
23086
|
+
500: ErrorResponse;
|
|
23087
|
+
};
|
|
23088
|
+
export type AssertMetricsError = AssertMetricsErrors[keyof AssertMetricsErrors];
|
|
23089
|
+
export type AssertMetricsResponses = {
|
|
23090
|
+
/**
|
|
23091
|
+
* Successful Response
|
|
23092
|
+
*/
|
|
23093
|
+
200: OperationEnvelopeAssertMetricsResponse;
|
|
23094
|
+
};
|
|
23095
|
+
export type AssertMetricsResponse2 = AssertMetricsResponses[keyof AssertMetricsResponses];
|
|
22796
23096
|
export type ComputeForecastData = {
|
|
22797
23097
|
body: ComputeForecastRequest;
|
|
22798
23098
|
headers?: {
|