@robosystems/client 0.3.40 → 0.3.41

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/types.gen.ts CHANGED
@@ -8080,6 +8080,52 @@ export type OperationEnvelopeReportResponse = {
8080
8080
  idempotentReplay?: boolean;
8081
8081
  };
8082
8082
 
8083
+ /**
8084
+ * OperationEnvelope[ScheduleCreatedResponse]
8085
+ */
8086
+ export type OperationEnvelopeScheduleCreatedResponse = {
8087
+ /**
8088
+ * Operation
8089
+ *
8090
+ * Kebab-case operation name
8091
+ */
8092
+ operation: string;
8093
+ /**
8094
+ * Operationid
8095
+ *
8096
+ * op_-prefixed ULID for audit and SSE correlation
8097
+ */
8098
+ operationId: string;
8099
+ /**
8100
+ * Status
8101
+ *
8102
+ * Operation lifecycle state
8103
+ */
8104
+ status: 'completed' | 'pending' | 'failed';
8105
+ /**
8106
+ * Command-specific result payload
8107
+ */
8108
+ result?: ScheduleCreatedResponse | null;
8109
+ /**
8110
+ * At
8111
+ *
8112
+ * ISO-8601 UTC timestamp
8113
+ */
8114
+ at: string;
8115
+ /**
8116
+ * Createdby
8117
+ *
8118
+ * User ID that initiated the operation (null for legacy callers)
8119
+ */
8120
+ createdBy?: string | null;
8121
+ /**
8122
+ * Idempotentreplay
8123
+ *
8124
+ * True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.
8125
+ */
8126
+ idempotentReplay?: boolean;
8127
+ };
8128
+
8083
8129
  /**
8084
8130
  * OperationEnvelope[SecurityResponse]
8085
8131
  */
@@ -9820,6 +9866,32 @@ export type RateLimits = {
9820
9866
  burst_capacity: number;
9821
9867
  };
9822
9868
 
9869
+ /**
9870
+ * RebuildScheduleRequest
9871
+ *
9872
+ * Re-run the schedule generator in place on an existing schedule.
9873
+ *
9874
+ * Atomic alternative to delete-then-recreate: the structure id and its
9875
+ * element associations are preserved, the old pending obligation chain
9876
+ * is voided, the old facts + rules are deleted, and a fresh set of
9877
+ * forward facts + a fresh obligation chain are regenerated from the
9878
+ * schedule's stored definition (entry_template / schedule_metadata /
9879
+ * monthly_amount / period bounds on the Structure's metadata).
9880
+ *
9881
+ * The historical-vs-in-scope split is re-derived from the CURRENT fiscal
9882
+ * calendar `closed_through`, so a rebuild re-scopes the schedule to
9883
+ * today's close state. Use this to pick up a fixed generator (e.g. the
9884
+ * roll-forward direction fix) without orphaning obligations.
9885
+ */
9886
+ export type RebuildScheduleRequest = {
9887
+ /**
9888
+ * Structure Id
9889
+ *
9890
+ * The schedule structure to regenerate in place.
9891
+ */
9892
+ structure_id: string;
9893
+ };
9894
+
9823
9895
  /**
9824
9896
  * RegenerateReportOperation
9825
9897
  *
@@ -10611,6 +10683,46 @@ export type SsoTokenResponse = {
10611
10683
  apps: Array<string>;
10612
10684
  };
10613
10685
 
10686
+ /**
10687
+ * ScheduleCreatedResponse
10688
+ */
10689
+ export type ScheduleCreatedResponse = {
10690
+ /**
10691
+ * Structure Id
10692
+ */
10693
+ structure_id: string;
10694
+ /**
10695
+ * Name
10696
+ */
10697
+ name: string;
10698
+ /**
10699
+ * Taxonomy Id
10700
+ */
10701
+ taxonomy_id: string;
10702
+ /**
10703
+ * Total Periods
10704
+ */
10705
+ total_periods: number;
10706
+ /**
10707
+ * Total Facts
10708
+ */
10709
+ total_facts: number;
10710
+ /**
10711
+ * Rule Summary
10712
+ */
10713
+ rule_summary?: {
10714
+ [key: string]: number;
10715
+ } | null;
10716
+ /**
10717
+ * Schedule Created Event Id
10718
+ */
10719
+ schedule_created_event_id?: string | null;
10720
+ /**
10721
+ * Pending Event Count
10722
+ */
10723
+ pending_event_count?: number;
10724
+ };
10725
+
10614
10726
  /**
10615
10727
  * ScheduleMechanics
10616
10728
  *
@@ -13240,7 +13352,7 @@ export type UpdateRollforwardRequest = {
13240
13352
  * NOT editable via this op: period_start, period_end, monthly_amount.
13241
13353
  * Those require fact regeneration — fire an event block that terminates
13242
13354
  * the schedule (e.g., `asset_disposed`) and create a fresh schedule via
13243
- * `create-schedule`.
13355
+ * `create-information-block` (`block_type='schedule'`).
13244
13356
  *
13245
13357
  * Omitted fields are left unchanged.
13246
13358
  */
@@ -21860,6 +21972,70 @@ export type OpPromoteObligationsResponses = {
21860
21972
 
21861
21973
  export type OpPromoteObligationsResponse = OpPromoteObligationsResponses[keyof OpPromoteObligationsResponses];
21862
21974
 
21975
+ export type OpRebuildScheduleData = {
21976
+ body: RebuildScheduleRequest;
21977
+ headers?: {
21978
+ /**
21979
+ * Idempotency-Key
21980
+ */
21981
+ 'Idempotency-Key'?: string | null;
21982
+ };
21983
+ path: {
21984
+ /**
21985
+ * Graph Id
21986
+ */
21987
+ graph_id: string;
21988
+ };
21989
+ query?: never;
21990
+ url: '/extensions/roboledger/{graph_id}/operations/rebuild-schedule';
21991
+ };
21992
+
21993
+ export type OpRebuildScheduleErrors = {
21994
+ /**
21995
+ * Invalid request
21996
+ */
21997
+ 400: ErrorResponse;
21998
+ /**
21999
+ * Authentication required
22000
+ */
22001
+ 401: ErrorResponse;
22002
+ /**
22003
+ * Access denied
22004
+ */
22005
+ 403: ErrorResponse;
22006
+ /**
22007
+ * Resource not found
22008
+ */
22009
+ 404: ErrorResponse;
22010
+ /**
22011
+ * Idempotency-Key conflict — key reused with different body
22012
+ */
22013
+ 409: ErrorResponse;
22014
+ /**
22015
+ * Validation error
22016
+ */
22017
+ 422: ErrorResponse;
22018
+ /**
22019
+ * Rate limit exceeded
22020
+ */
22021
+ 429: ErrorResponse;
22022
+ /**
22023
+ * Internal server error
22024
+ */
22025
+ 500: ErrorResponse;
22026
+ };
22027
+
22028
+ export type OpRebuildScheduleError = OpRebuildScheduleErrors[keyof OpRebuildScheduleErrors];
22029
+
22030
+ export type OpRebuildScheduleResponses = {
22031
+ /**
22032
+ * Successful Response
22033
+ */
22034
+ 200: OperationEnvelopeScheduleCreatedResponse;
22035
+ };
22036
+
22037
+ export type OpRebuildScheduleResponse = OpRebuildScheduleResponses[keyof OpRebuildScheduleResponses];
22038
+
21863
22039
  export type OpSetCloseTargetData = {
21864
22040
  body: SetCloseTargetOperation;
21865
22041
  headers?: {