@robosystems/client 2.36.0 → 2.37.0

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.d.ts CHANGED
@@ -96,7 +96,7 @@ export type AcceptSuggestionLine = {
96
96
  /**
97
97
  * Reason
98
98
  *
99
- * Why a skipped line was not taken: `not_open` (already classified, posted or retracted), `no_suggestion` (nothing to take, or a name that matches no account), `source_changed` (the feed changed it after capture), `suggestion_changed` (a line taken earlier in the batch moved the counterparty's default, so this one's suggestion is not the one selected; review it again), `closed_period`, `locked` (another process holds it; retry), or `refused` (the handler would not post the choice).
99
+ * Why a skipped line was not taken: `not_open` (already classified, posted or retracted), `no_suggestion` (nothing to take, or a name that matches no account), `source_changed` (the feed changed it after capture), `needs_review` (the suggestion carries a caution, such as an amount far above the counterparty's usual; classify the line on its own), `suggestion_changed` (a line taken earlier in the batch moved the counterparty's default, so this one's suggestion is not the one selected; review it again), `closed_period`, `locked` (another process holds it; retry), or `refused` (the handler would not post the choice).
100
100
  */
101
101
  reason?: string | null;
102
102
  /**
@@ -2554,7 +2554,7 @@ export type ConnectionResponse = {
2554
2554
  /**
2555
2555
  * Write Policy
2556
2556
  *
2557
- * 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.
2557
+ * Outbound write policy: 'qb_authoritative' (QuickBooks is the book of record and RoboSystems-originated entries publish to it at close), 'shadow' (QuickBooks is the book of record, nothing is written to it and the close posts nothing locally), or 'native' (no external ledger; what severing leaves). Set via the write-policy endpoint.
2558
2558
  */
2559
2559
  write_policy?: string | null;
2560
2560
  /**
@@ -8125,6 +8125,12 @@ export type GraphSubscriptionResponse = {
8125
8125
  * Cancellation date
8126
8126
  */
8127
8127
  canceled_at?: string | null;
8128
+ /**
8129
+ * Trial Ends At
8130
+ *
8131
+ * When the free trial ends and the first charge is made. Null for a subscription that opened without a trial; kept after the trial is over.
8132
+ */
8133
+ trial_ends_at?: string | null;
8128
8134
  /**
8129
8135
  * Ends At
8130
8136
  *
@@ -18609,6 +18615,12 @@ export type RepositoryInfo = {
18609
18615
  * Whether repository is coming soon
18610
18616
  */
18611
18617
  coming_soon: boolean;
18618
+ /**
18619
+ * Trial Days
18620
+ *
18621
+ * Length in days of the free trial a first subscription opens with; 0 when the repository offers none
18622
+ */
18623
+ trial_days?: number;
18612
18624
  /**
18613
18625
  * Plans
18614
18626
  *
@@ -20226,7 +20238,7 @@ export type SetWritePolicyRequest = {
20226
20238
  /**
20227
20239
  * Write Policy
20228
20240
  *
20229
- * 'qb_authoritative' = QuickBooks authoritative, entries publish to QB; 'shadow' = QuickBooks authoritative and RoboSystems only observes: nothing is written to QuickBooks, the close posts nothing locally, its drafts become shadowed expectations and its gates are findings. 'native', books kept in RoboSystems with no write-back, is what disconnecting or severing leaves, not a choice for a live connection.
20241
+ * 'qb_authoritative' = QuickBooks authoritative, entries publish to QB; 'shadow' = QuickBooks authoritative and RoboSystems only observes: nothing is written to QuickBooks, the close posts nothing locally, its drafts become shadowed expectations and its gates are findings. 'native', books kept in RoboSystems with no write-back, is what severing leaves, not a choice for a live connection.
20230
20242
  */
20231
20243
  write_policy: 'qb_authoritative' | 'shadow';
20232
20244
  };
@@ -28117,6 +28129,57 @@ export type CreateRepositorySubscriptionResponses = {
28117
28129
  201: GraphSubscriptionResponse;
28118
28130
  };
28119
28131
  export type CreateRepositorySubscriptionResponse = CreateRepositorySubscriptionResponses[keyof CreateRepositorySubscriptionResponses];
28132
+ export type EndRepositorySubscriptionTrialData = {
28133
+ body?: never;
28134
+ path: {
28135
+ /**
28136
+ * Graph Id
28137
+ *
28138
+ * Repository name (e.g., 'sec')
28139
+ */
28140
+ graph_id: string;
28141
+ };
28142
+ query?: never;
28143
+ url: '/v1/graphs/{graph_id}/subscriptions/end-trial';
28144
+ };
28145
+ export type EndRepositorySubscriptionTrialErrors = {
28146
+ /**
28147
+ * Invalid request
28148
+ */
28149
+ 400: ErrorResponse;
28150
+ /**
28151
+ * Authentication required
28152
+ */
28153
+ 401: ErrorResponse;
28154
+ /**
28155
+ * Access denied
28156
+ */
28157
+ 403: ErrorResponse;
28158
+ /**
28159
+ * Resource not found
28160
+ */
28161
+ 404: ErrorResponse;
28162
+ /**
28163
+ * Validation Error
28164
+ */
28165
+ 422: HttpValidationError;
28166
+ /**
28167
+ * Rate limit exceeded
28168
+ */
28169
+ 429: ErrorResponse;
28170
+ /**
28171
+ * Internal server error
28172
+ */
28173
+ 500: ErrorResponse;
28174
+ };
28175
+ export type EndRepositorySubscriptionTrialError = EndRepositorySubscriptionTrialErrors[keyof EndRepositorySubscriptionTrialErrors];
28176
+ export type EndRepositorySubscriptionTrialResponses = {
28177
+ /**
28178
+ * Successful Response
28179
+ */
28180
+ 200: GraphSubscriptionResponse;
28181
+ };
28182
+ export type EndRepositorySubscriptionTrialResponse = EndRepositorySubscriptionTrialResponses[keyof EndRepositorySubscriptionTrialResponses];
28120
28183
  export type CancelRepositorySubscriptionData = {
28121
28184
  body?: CancelSubscriptionRequest;
28122
28185
  path: {
package/types.gen.ts CHANGED
@@ -101,7 +101,7 @@ export type AcceptSuggestionLine = {
101
101
  /**
102
102
  * Reason
103
103
  *
104
- * Why a skipped line was not taken: `not_open` (already classified, posted or retracted), `no_suggestion` (nothing to take, or a name that matches no account), `source_changed` (the feed changed it after capture), `suggestion_changed` (a line taken earlier in the batch moved the counterparty's default, so this one's suggestion is not the one selected; review it again), `closed_period`, `locked` (another process holds it; retry), or `refused` (the handler would not post the choice).
104
+ * Why a skipped line was not taken: `not_open` (already classified, posted or retracted), `no_suggestion` (nothing to take, or a name that matches no account), `source_changed` (the feed changed it after capture), `needs_review` (the suggestion carries a caution, such as an amount far above the counterparty's usual; classify the line on its own), `suggestion_changed` (a line taken earlier in the batch moved the counterparty's default, so this one's suggestion is not the one selected; review it again), `closed_period`, `locked` (another process holds it; retry), or `refused` (the handler would not post the choice).
105
105
  */
106
106
  reason?: string | null;
107
107
  /**
@@ -2618,7 +2618,7 @@ export type ConnectionResponse = {
2618
2618
  /**
2619
2619
  * Write Policy
2620
2620
  *
2621
- * 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.
2621
+ * Outbound write policy: 'qb_authoritative' (QuickBooks is the book of record and RoboSystems-originated entries publish to it at close), 'shadow' (QuickBooks is the book of record, nothing is written to it and the close posts nothing locally), or 'native' (no external ledger; what severing leaves). Set via the write-policy endpoint.
2622
2622
  */
2623
2623
  write_policy?: string | null;
2624
2624
  /**
@@ -8312,6 +8312,12 @@ export type GraphSubscriptionResponse = {
8312
8312
  * Cancellation date
8313
8313
  */
8314
8314
  canceled_at?: string | null;
8315
+ /**
8316
+ * Trial Ends At
8317
+ *
8318
+ * When the free trial ends and the first charge is made. Null for a subscription that opened without a trial; kept after the trial is over.
8319
+ */
8320
+ trial_ends_at?: string | null;
8315
8321
  /**
8316
8322
  * Ends At
8317
8323
  *
@@ -19034,6 +19040,12 @@ export type RepositoryInfo = {
19034
19040
  * Whether repository is coming soon
19035
19041
  */
19036
19042
  coming_soon: boolean;
19043
+ /**
19044
+ * Trial Days
19045
+ *
19046
+ * Length in days of the free trial a first subscription opens with; 0 when the repository offers none
19047
+ */
19048
+ trial_days?: number;
19037
19049
  /**
19038
19050
  * Plans
19039
19051
  *
@@ -20692,7 +20704,7 @@ export type SetWritePolicyRequest = {
20692
20704
  /**
20693
20705
  * Write Policy
20694
20706
  *
20695
- * 'qb_authoritative' = QuickBooks authoritative, entries publish to QB; 'shadow' = QuickBooks authoritative and RoboSystems only observes: nothing is written to QuickBooks, the close posts nothing locally, its drafts become shadowed expectations and its gates are findings. 'native', books kept in RoboSystems with no write-back, is what disconnecting or severing leaves, not a choice for a live connection.
20707
+ * 'qb_authoritative' = QuickBooks authoritative, entries publish to QB; 'shadow' = QuickBooks authoritative and RoboSystems only observes: nothing is written to QuickBooks, the close posts nothing locally, its drafts become shadowed expectations and its gates are findings. 'native', books kept in RoboSystems with no write-back, is what severing leaves, not a choice for a live connection.
20696
20708
  */
20697
20709
  write_policy: 'qb_authoritative' | 'shadow';
20698
20710
  };
@@ -29140,6 +29152,62 @@ export type CreateRepositorySubscriptionResponses = {
29140
29152
 
29141
29153
  export type CreateRepositorySubscriptionResponse = CreateRepositorySubscriptionResponses[keyof CreateRepositorySubscriptionResponses];
29142
29154
 
29155
+ export type EndRepositorySubscriptionTrialData = {
29156
+ body?: never;
29157
+ path: {
29158
+ /**
29159
+ * Graph Id
29160
+ *
29161
+ * Repository name (e.g., 'sec')
29162
+ */
29163
+ graph_id: string;
29164
+ };
29165
+ query?: never;
29166
+ url: '/v1/graphs/{graph_id}/subscriptions/end-trial';
29167
+ };
29168
+
29169
+ export type EndRepositorySubscriptionTrialErrors = {
29170
+ /**
29171
+ * Invalid request
29172
+ */
29173
+ 400: ErrorResponse;
29174
+ /**
29175
+ * Authentication required
29176
+ */
29177
+ 401: ErrorResponse;
29178
+ /**
29179
+ * Access denied
29180
+ */
29181
+ 403: ErrorResponse;
29182
+ /**
29183
+ * Resource not found
29184
+ */
29185
+ 404: ErrorResponse;
29186
+ /**
29187
+ * Validation Error
29188
+ */
29189
+ 422: HttpValidationError;
29190
+ /**
29191
+ * Rate limit exceeded
29192
+ */
29193
+ 429: ErrorResponse;
29194
+ /**
29195
+ * Internal server error
29196
+ */
29197
+ 500: ErrorResponse;
29198
+ };
29199
+
29200
+ export type EndRepositorySubscriptionTrialError = EndRepositorySubscriptionTrialErrors[keyof EndRepositorySubscriptionTrialErrors];
29201
+
29202
+ export type EndRepositorySubscriptionTrialResponses = {
29203
+ /**
29204
+ * Successful Response
29205
+ */
29206
+ 200: GraphSubscriptionResponse;
29207
+ };
29208
+
29209
+ export type EndRepositorySubscriptionTrialResponse = EndRepositorySubscriptionTrialResponses[keyof EndRepositorySubscriptionTrialResponses];
29210
+
29143
29211
  export type CancelRepositorySubscriptionData = {
29144
29212
  body?: CancelSubscriptionRequest;
29145
29213
  path: {