@ai-matrx/records 0.60.6 → 0.60.7

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.
@@ -2120,18 +2120,26 @@ interface RecordsClient {
2120
2120
  limit?: number;
2121
2121
  }): Promise<RecordsResult<IoExportPage>>;
2122
2122
  /** G5. That page as an .xlsx; a withheld column is named on its own sheet. */
2123
- /** G9. Every table a picker may offer here, from BOTH stores, each saying which store opens it. */
2124
- tableListEverywhere(): Promise<RecordsResult<{
2123
+ /**
2124
+ * G9. Every table a picker may offer here, from BOTH stores, each saying which store opens it.
2125
+ * A table the app keeps out of default lists (`custom.table_kept_out_of_lists`: an agent's
2126
+ * outputs) is left out unless `include_app_tables` is true — the "Show app tables" switch.
2127
+ */
2128
+ tableListEverywhere(args?: {
2129
+ include_app_tables?: boolean;
2130
+ }): Promise<RecordsResult<{
2125
2131
  success: boolean;
2126
2132
  tables: TableListEntry[];
2127
2133
  }>>;
2128
2134
  /**
2129
2135
  * Every table the person reaches (`custom.data_home_tables`), as the data home lists them.
2130
2136
  * `organization_id` names one organization; `null` asks for every organization the person
2131
- * reaches — never the client's bound organization by default.
2137
+ * reaches — never the client's bound organization by default. A table the app keeps out of
2138
+ * default lists (an agent's outputs) is answered only with `include_app_tables: true`.
2132
2139
  */
2133
2140
  dataHomeTables(args: {
2134
2141
  organization_id: Uuid | null;
2142
+ include_app_tables?: boolean;
2135
2143
  }): Promise<RecordsResult<DataHomeTable[]>>;
2136
2144
  /**
2137
2145
  * G10. Refresh a synced source (a sheet tab) into ONE Table under `home_id`: new rows added,
@@ -2120,18 +2120,26 @@ interface RecordsClient {
2120
2120
  limit?: number;
2121
2121
  }): Promise<RecordsResult<IoExportPage>>;
2122
2122
  /** G5. That page as an .xlsx; a withheld column is named on its own sheet. */
2123
- /** G9. Every table a picker may offer here, from BOTH stores, each saying which store opens it. */
2124
- tableListEverywhere(): Promise<RecordsResult<{
2123
+ /**
2124
+ * G9. Every table a picker may offer here, from BOTH stores, each saying which store opens it.
2125
+ * A table the app keeps out of default lists (`custom.table_kept_out_of_lists`: an agent's
2126
+ * outputs) is left out unless `include_app_tables` is true — the "Show app tables" switch.
2127
+ */
2128
+ tableListEverywhere(args?: {
2129
+ include_app_tables?: boolean;
2130
+ }): Promise<RecordsResult<{
2125
2131
  success: boolean;
2126
2132
  tables: TableListEntry[];
2127
2133
  }>>;
2128
2134
  /**
2129
2135
  * Every table the person reaches (`custom.data_home_tables`), as the data home lists them.
2130
2136
  * `organization_id` names one organization; `null` asks for every organization the person
2131
- * reaches — never the client's bound organization by default.
2137
+ * reaches — never the client's bound organization by default. A table the app keeps out of
2138
+ * default lists (an agent's outputs) is answered only with `include_app_tables: true`.
2132
2139
  */
2133
2140
  dataHomeTables(args: {
2134
2141
  organization_id: Uuid | null;
2142
+ include_app_tables?: boolean;
2135
2143
  }): Promise<RecordsResult<DataHomeTable[]>>;
2136
2144
  /**
2137
2145
  * G10. Refresh a synced source (a sheet tab) into ONE Table under `home_id`: new rows added,
@@ -44109,17 +44109,18 @@ function createRecordsClient(given) {
44109
44109
  "tableFromExample"
44110
44110
  );
44111
44111
  },
44112
- async tableListEverywhere() {
44112
+ async tableListEverywhere(args) {
44113
44113
  return callDoor(
44114
44114
  DOORS.tableListEverywhere,
44115
- { p_organization_id: org },
44115
+ // The two-argument overload is chosen by naming both arguments (CHAIR-DOORS-2, N-C8).
44116
+ args?.include_app_tables ? { p_organization_id: org, p_include_app_tables: true } : { p_organization_id: org },
44116
44117
  "tableListEverywhere"
44117
44118
  );
44118
44119
  },
44119
- async dataHomeTables({ organization_id }) {
44120
+ async dataHomeTables({ organization_id, include_app_tables }) {
44120
44121
  return callDoor(
44121
44122
  DOORS.dataHomeTables,
44122
- { p_organization_id: organization_id },
44123
+ include_app_tables ? { p_organization_id: organization_id, p_include_app_tables: true } : { p_organization_id: organization_id },
44123
44124
  "dataHomeTables"
44124
44125
  );
44125
44126
  },