@robosystems/client 0.5.1 → 0.5.2

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.
@@ -711,6 +711,118 @@ export type BillingCustomer = {
711
711
  */
712
712
  created_at: string;
713
713
  };
714
+ /**
715
+ * BindTextBlockRequest
716
+ */
717
+ export type BindTextBlockRequest = {
718
+ /**
719
+ * Document Id
720
+ *
721
+ * Platform Document to bind (see list-documents).
722
+ */
723
+ document_id: string;
724
+ /**
725
+ * Section Id
726
+ *
727
+ * Slugified heading id of one section to bind (the section ids search-documents returns); omit to bind the whole document.
728
+ */
729
+ section_id?: string | null;
730
+ /**
731
+ * Structure Id
732
+ *
733
+ * Disclosure Structure the text block belongs to — must be block_type='regulatory_disclosure' with a text-block concept_arrangement (text_block / levelN_textblock).
734
+ */
735
+ structure_id: string;
736
+ /**
737
+ * Element Id
738
+ *
739
+ * Disclosure element to tag the text to (id form).
740
+ */
741
+ element_id?: string | null;
742
+ /**
743
+ * Element Qname
744
+ *
745
+ * Disclosure element qname (e.g. 'acme:SignificantAccountingPoliciesTextBlock') — exactly one of element_id / element_qname.
746
+ */
747
+ element_qname?: string | null;
748
+ /**
749
+ * Period Start
750
+ *
751
+ * Reporting period start the narrative covers (duration fact).
752
+ */
753
+ period_start: string;
754
+ /**
755
+ * Period End
756
+ *
757
+ * Reporting period end.
758
+ */
759
+ period_end: string;
760
+ /**
761
+ * Entity Id
762
+ *
763
+ * Entity the fact belongs to; defaults to the primary entity.
764
+ */
765
+ entity_id?: string | null;
766
+ };
767
+ /**
768
+ * BindTextBlockResponse
769
+ */
770
+ export type BindTextBlockResponse = {
771
+ /**
772
+ * Fact Id
773
+ *
774
+ * The Nonnumeric Fact created.
775
+ */
776
+ fact_id: string;
777
+ /**
778
+ * Fact Set Id
779
+ *
780
+ * Standing 'disclosure' FactSet holding the fact.
781
+ */
782
+ fact_set_id: string;
783
+ /**
784
+ * Structure Id
785
+ */
786
+ structure_id: string;
787
+ /**
788
+ * Element Id
789
+ */
790
+ element_id: string;
791
+ /**
792
+ * Document Id
793
+ */
794
+ document_id: string;
795
+ /**
796
+ * Section Id
797
+ */
798
+ section_id?: string | null;
799
+ /**
800
+ * Content Hash
801
+ *
802
+ * Full sha256 hex of the bound text (drift signal).
803
+ */
804
+ content_hash: string;
805
+ /**
806
+ * Characters
807
+ *
808
+ * Length of the bound text.
809
+ */
810
+ characters: number;
811
+ /**
812
+ * Period Start
813
+ */
814
+ period_start: string;
815
+ /**
816
+ * Period End
817
+ */
818
+ period_end: string;
819
+ /**
820
+ * Replaced
821
+ *
822
+ * True when a re-bind replaced this element's existing fact in the standing FactSet (content and provenance refreshed).
823
+ */
824
+ replaced: boolean;
825
+ };
714
826
  /**
715
827
  * CancelSubscriptionRequest
716
828
  *
@@ -1752,7 +1864,7 @@ export type CreateInformationBlockRequest = ({
1752
1864
  } & CreateScheduleArm) | ({
1753
1865
  block_type: 'rollforward';
1754
1866
  } & CreateRollforwardArm) | ({
1755
- block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
1867
+ block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'regulatory_disclosure';
1756
1868
  } & CreateLegacyArm);
1757
1869
  /**
1758
1870
  * CreateMappingAssociationOperation
@@ -2783,7 +2895,7 @@ export type DeleteInformationBlockRequest = ({
2783
2895
  } & DeleteScheduleArm) | ({
2784
2896
  block_type: 'rollforward';
2785
2897
  } & DeleteRollforwardArm) | ({
2786
- block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
2898
+ block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'regulatory_disclosure';
2787
2899
  } & DeleteLegacyArm);
2788
2900
  /**
2789
2901
  * DeleteInformationBlockResponse
@@ -4063,8 +4175,28 @@ export type FactLite = {
4063
4175
  element_qname?: string | null;
4064
4176
  /**
4065
4177
  * Value
4178
+ *
4179
+ * Numeric value; null for Nonnumeric (text-block) facts.
4066
4180
  */
4067
- value: number;
4181
+ value?: number | null;
4182
+ /**
4183
+ * Text Value
4184
+ *
4185
+ * Text payload for Nonnumeric facts; null for numeric.
4186
+ */
4187
+ text_value?: string | null;
4188
+ /**
4189
+ * Fact Type
4190
+ *
4191
+ * Numeric | Nonnumeric
4192
+ */
4193
+ fact_type?: string;
4194
+ /**
4195
+ * Content Type
4196
+ *
4197
+ * MIME type of text_value (e.g. 'text/markdown').
4198
+ */
4199
+ content_type?: string | null;
4068
4200
  /**
4069
4201
  * Period Start
4070
4202
  */
@@ -4122,7 +4254,7 @@ export type FactSetLite = {
4122
4254
  /**
4123
4255
  * Factset Type
4124
4256
  *
4125
- * 'report' | 'schedule' | 'custom'. Enum closure enforced by the ``public.fact_sets`` CHECK constraint.
4257
+ * 'report' | 'schedule' | 'custom' | 'disclosure'. Enum closure enforced by the ``public.fact_sets`` CHECK constraint.
4126
4258
  */
4127
4259
  factset_type: string;
4128
4260
  /**
@@ -7024,6 +7156,51 @@ export type OperationEnvelopeAssociationResponse = {
7024
7156
  */
7025
7157
  idempotentReplay?: boolean;
7026
7158
  };
7159
+ /**
7160
+ * OperationEnvelope[BindTextBlockResponse]
7161
+ */
7162
+ export type OperationEnvelopeBindTextBlockResponse = {
7163
+ /**
7164
+ * Operation
7165
+ *
7166
+ * Kebab-case operation name
7167
+ */
7168
+ operation: string;
7169
+ /**
7170
+ * Operationid
7171
+ *
7172
+ * op_-prefixed ULID for audit and SSE correlation
7173
+ */
7174
+ operationId: string;
7175
+ /**
7176
+ * Status
7177
+ *
7178
+ * Operation lifecycle state
7179
+ */
7180
+ status: 'completed' | 'pending' | 'failed';
7181
+ /**
7182
+ * Command-specific result payload
7183
+ */
7184
+ result?: BindTextBlockResponse | null;
7185
+ /**
7186
+ * At
7187
+ *
7188
+ * ISO-8601 UTC timestamp
7189
+ */
7190
+ at: string;
7191
+ /**
7192
+ * Createdby
7193
+ *
7194
+ * User ID that initiated the operation (null for legacy callers)
7195
+ */
7196
+ createdBy?: string | null;
7197
+ /**
7198
+ * Idempotentreplay
7199
+ *
7200
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
7201
+ */
7202
+ idempotentReplay?: boolean;
7203
+ };
7027
7204
  /**
7028
7205
  * OperationEnvelope[ChangeReportingStyleResponse]
7029
7206
  */
@@ -9988,6 +10165,12 @@ export type RenderingRowLite = {
9988
10165
  * Values
9989
10166
  */
9990
10167
  values?: Array<number | null>;
10168
+ /**
10169
+ * Text Value
10170
+ *
10171
+ * Narrative payload for text-block disclosure rows (markdown); numeric rows carry values instead.
10172
+ */
10173
+ text_value?: string | null;
9991
10174
  /**
9992
10175
  * Is Subtotal
9993
10176
  */
@@ -12386,9 +12569,15 @@ export type TaxonomyBlockStructureRequest = {
12386
12569
  /**
12387
12570
  * Block Type
12388
12571
  *
12389
- * DB ``structures.block_type`` enum. CoA blocks use ``chart_of_accounts``; reporting extensions use the statement family or ``custom``; custom ontology uses ``custom``.
12572
+ * DB ``structures.block_type`` enum. CoA blocks use ``chart_of_accounts``; reporting extensions use the statement family, ``regulatory_disclosure`` (disclosure notes), or ``custom``; custom ontology uses ``custom``.
12390
12573
  */
12391
- block_type: 'chart_of_accounts' | 'custom' | 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'rollforward' | 'reconciliation' | 'policy' | 'metric';
12574
+ block_type: 'chart_of_accounts' | 'custom' | 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'coa_mapping' | 'schedule' | 'rollforward' | 'reconciliation' | 'policy' | 'metric' | 'regulatory_disclosure';
12575
+ /**
12576
+ * Concept Arrangement
12577
+ *
12578
+ * Concept Arrangement Pattern (CAP) — how the structure's concepts relate (mirrors the ``structures.concept_arrangement`` CHECK vocabulary). A disclosure note footing members to a total is ``roll_up``. Null leaves the pattern unset.
12579
+ */
12580
+ concept_arrangement?: 'set' | 'roll_up' | 'roll_forward' | 'roll_forward_info' | 'adjustment' | 'variance' | 'arithmetic' | 'text_block' | 'level1_textblock' | 'level2_textblock' | 'level3_textblock' | 'level4_detail' | 'table_equivalent_textblock' | 'grid' | 'compound_fact' | null;
12392
12581
  /**
12393
12582
  * Description
12394
12583
  */
@@ -12996,7 +13185,7 @@ export type UpdateInformationBlockRequest = ({
12996
13185
  } & UpdateScheduleArm) | ({
12997
13186
  block_type: 'rollforward';
12998
13187
  } & UpdateRollforwardArm) | ({
12999
- block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric';
13188
+ block_type: 'balance_sheet' | 'cash_flow_statement' | 'comprehensive_income' | 'equity_statement' | 'income_statement' | 'metric' | 'regulatory_disclosure';
13000
13189
  } & UpdateLegacyArm);
13001
13190
  /**
13002
13191
  * UpdateJournalEntryRequest
@@ -13789,10 +13978,13 @@ export type ViewProjections = {
13789
13978
  *
13790
13979
  * Statement-family blocks (balance_sheet, income_statement,
13791
13980
  * cash_flow_statement, equity_statement, comprehensive_income) are
13792
- * constructed via `create-report`, not this endpoint. Metric blocks
13793
- * are recognized but their evaluator has not shipped. Calling this
13794
- * endpoint with one of these block types returns HTTP 501 with a hint
13795
- * pointing to the correct construction path.
13981
+ * constructed via `create-report`, not this endpoint. Disclosure
13982
+ * structures (regulatory_disclosure) are vocabulary, authored via
13983
+ * `create-taxonomy-block`; their facts land when `create-report`
13984
+ * picks them. Metric blocks are recognized but their evaluator has
13985
+ * not shipped. Calling this endpoint with one of these block types
13986
+ * returns HTTP 501 with a hint pointing to the correct construction
13987
+ * path.
13796
13988
  */
13797
13989
  export type CreateLegacyArm = {
13798
13990
  /**
@@ -13800,7 +13992,7 @@ export type CreateLegacyArm = {
13800
13992
  *
13801
13993
  * Statement-family or metric block type. The endpoint returns 501 for these values — statements are constructed via `create-report`; metric construction is pending.
13802
13994
  */
13803
- block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'metric';
13995
+ block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric';
13804
13996
  /**
13805
13997
  * Payload
13806
13998
  *
@@ -13867,7 +14059,7 @@ export type DeleteLegacyArm = {
13867
14059
  *
13868
14060
  * Statement-family or metric block type. Deletion returns 501 — statements are library-seeded (archive the underlying Report instead); metric deletion is pending.
13869
14061
  */
13870
- block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'metric';
14062
+ block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric';
13871
14063
  /**
13872
14064
  * Payload
13873
14065
  *
@@ -13932,7 +14124,7 @@ export type UpdateLegacyArm = {
13932
14124
  *
13933
14125
  * Statement-family or metric block type. Updates return 501 — statement Structures are library-seeded; metric updates are pending.
13934
14126
  */
13935
- block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'metric';
14127
+ block_type: 'balance_sheet' | 'income_statement' | 'cash_flow_statement' | 'equity_statement' | 'comprehensive_income' | 'regulatory_disclosure' | 'metric';
13936
14128
  /**
13937
14129
  * Payload
13938
14130
  *
@@ -20812,6 +21004,65 @@ export type EvaluateRulesResponses = {
20812
21004
  200: OperationEnvelopeEvaluateRulesResponse;
20813
21005
  };
20814
21006
  export type EvaluateRulesResponse2 = EvaluateRulesResponses[keyof EvaluateRulesResponses];
21007
+ export type BindTextBlockData = {
21008
+ body: BindTextBlockRequest;
21009
+ headers?: {
21010
+ /**
21011
+ * Idempotency-Key
21012
+ */
21013
+ 'Idempotency-Key'?: string | null;
21014
+ };
21015
+ path: {
21016
+ /**
21017
+ * Graph Id
21018
+ */
21019
+ graph_id: string;
21020
+ };
21021
+ query?: never;
21022
+ url: '/extensions/roboledger/{graph_id}/operations/bind-text-block';
21023
+ };
21024
+ export type BindTextBlockErrors = {
21025
+ /**
21026
+ * Invalid request
21027
+ */
21028
+ 400: ErrorResponse;
21029
+ /**
21030
+ * Authentication required
21031
+ */
21032
+ 401: ErrorResponse;
21033
+ /**
21034
+ * Access denied
21035
+ */
21036
+ 403: ErrorResponse;
21037
+ /**
21038
+ * Resource not found
21039
+ */
21040
+ 404: ErrorResponse;
21041
+ /**
21042
+ * Idempotency-Key conflict — key reused with different body
21043
+ */
21044
+ 409: ErrorResponse;
21045
+ /**
21046
+ * Validation error
21047
+ */
21048
+ 422: ErrorResponse;
21049
+ /**
21050
+ * Rate limit exceeded
21051
+ */
21052
+ 429: ErrorResponse;
21053
+ /**
21054
+ * Internal server error
21055
+ */
21056
+ 500: ErrorResponse;
21057
+ };
21058
+ export type BindTextBlockError = BindTextBlockErrors[keyof BindTextBlockErrors];
21059
+ export type BindTextBlockResponses = {
21060
+ /**
21061
+ * Successful Response
21062
+ */
21063
+ 200: OperationEnvelopeBindTextBlockResponse;
21064
+ };
21065
+ export type BindTextBlockResponse2 = BindTextBlockResponses[keyof BindTextBlockResponses];
20815
21066
  export type CreateAgentData = {
20816
21067
  body: CreateAgentRequest;
20817
21068
  headers?: {