@arbidocs/client 0.4.57 → 0.4.59

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/dist/index.d.cts CHANGED
@@ -1093,7 +1093,10 @@ interface paths {
1093
1093
  };
1094
1094
  get?: never;
1095
1095
  put?: never;
1096
- /** Create Docx Note */
1096
+ /**
1097
+ * Create Docx Note
1098
+ * @description Store a DOCX note: a new document, or (``version_of``) the next version of an editable one.
1099
+ */
1097
1100
  post: operations['create_docx_note_v1_editor_notes_post'];
1098
1101
  delete?: never;
1099
1102
  options?: never;
@@ -1144,7 +1147,13 @@ interface paths {
1144
1147
  };
1145
1148
  get?: never;
1146
1149
  put?: never;
1147
- /** Create Word Redline */
1150
+ /**
1151
+ * Create Word Redline
1152
+ * @description Compare two documents into a NEW redline document (base -> revised).
1153
+ *
1154
+ * Without ``base_ext_id`` the base is the revised document's previous version.
1155
+ * The redline records both inputs as provenance and is shared only if both are.
1156
+ */
1148
1157
  post: operations['create_word_redline_v1_editor_redline_post'];
1149
1158
  delete?: never;
1150
1159
  options?: never;
@@ -1227,6 +1236,10 @@ interface paths {
1227
1236
  /**
1228
1237
  * Delete Documents
1229
1238
  * @description Delete one or more documents.
1239
+ *
1240
+ * A document is deleted with all its versions (any version's id names it), and an
1241
+ * email with its attachments (an archive with its messages). In-flight processing
1242
+ * is cancelled so a deleted row does not pop back into the Processing tab.
1230
1243
  */
1231
1244
  delete: operations['delete_documents'];
1232
1245
  options?: never;
@@ -1251,6 +1264,29 @@ interface paths {
1251
1264
  patch: operations['update_documents'];
1252
1265
  trace?: never;
1253
1266
  };
1267
+ '/v1/document/{document_ext_id}/versions': {
1268
+ parameters: {
1269
+ query?: never;
1270
+ header?: never;
1271
+ path?: never;
1272
+ cookie?: never;
1273
+ };
1274
+ /**
1275
+ * List Document Versions
1276
+ * @description Every version of the document ``document_ext_id`` belongs to (any version's id), oldest first.
1277
+ *
1278
+ * ``is_current`` marks the current one. Lists and search show only current
1279
+ * versions; this is how older ones are reached.
1280
+ */
1281
+ get: operations['list_document_versions'];
1282
+ put?: never;
1283
+ post?: never;
1284
+ delete?: never;
1285
+ options?: never;
1286
+ head?: never;
1287
+ patch?: never;
1288
+ trace?: never;
1289
+ };
1254
1290
  '/v1/document/doctag': {
1255
1291
  parameters: {
1256
1292
  query?: never;
@@ -1297,8 +1333,9 @@ interface paths {
1297
1333
  * - For file uploads: standard multipart form with files
1298
1334
  * - For artifacts/content: create a file from text content on the client side
1299
1335
  *
1300
- * Optional parameters for version tracking and document typing:
1301
- * - parent_ext_id: Links new document as child of parent (version chain)
1336
+ * Optional parameters for versions, provenance and document typing:
1337
+ * - version_of: Saves the file as the next version of that document
1338
+ * - derived_from + derived_role: Records that the new document was made from another (a crop)
1302
1339
  * - wp_type: Document type (source, skill, memory, artifact). Defaults to 'source'.
1303
1340
  * - tag_ext_id: Links document to a tag
1304
1341
  * - folder: Logical folder path for grouping (URL safe, e.g., 'skills/weather')
@@ -5685,10 +5722,10 @@ interface components {
5685
5722
  */
5686
5723
  version: number;
5687
5724
  /**
5688
- * Parent Doc Ext Id
5725
+ * Version Of
5689
5726
  * @description Document this artifact updates; it is saved as the next version in that document's chain
5690
5727
  */
5691
- parent_doc_ext_id?: string | null;
5728
+ version_of?: string | null;
5692
5729
  /**
5693
5730
  * Message Ext Id
5694
5731
  * @description External ID of the assistant message that generated this artifact
@@ -7321,6 +7358,15 @@ interface components {
7321
7358
  /** External Ids */
7322
7359
  external_ids: string[];
7323
7360
  };
7361
+ /**
7362
+ * DerivedFrom
7363
+ * @description One provenance link of a document: it was made from ``doc_ext_id`` as ``role``.
7364
+ */
7365
+ DerivedFrom: {
7366
+ /** Doc Ext Id */
7367
+ doc_ext_id: string;
7368
+ role: components['schemas']['DocRelationRole'];
7369
+ };
7324
7370
  /**
7325
7371
  * DmAttachmentUploadResponse
7326
7372
  * @description An uploaded, client-encrypted DM attachment blob.
@@ -7347,6 +7393,12 @@ interface components {
7347
7393
  /** Title */
7348
7394
  title?: string | null;
7349
7395
  };
7396
+ /**
7397
+ * DocRelationRole
7398
+ * @description How ``from_doc`` was derived from ``to_doc`` (provenance only, no behaviour).
7399
+ * @enum {string}
7400
+ */
7401
+ DocRelationRole: 'edit' | 'sync' | 'crop' | 'redline_base' | 'redline_revised';
7350
7402
  /** DocResponse */
7351
7403
  DocResponse: {
7352
7404
  /** External Id */
@@ -7385,6 +7437,25 @@ interface components {
7385
7437
  config_ext_id?: string | null;
7386
7438
  /** Parent Ext Id */
7387
7439
  parent_ext_id?: string | null;
7440
+ /** Lineage Id */
7441
+ lineage_id?: string | null;
7442
+ /**
7443
+ * Version Number
7444
+ * @default 1
7445
+ */
7446
+ version_number: number;
7447
+ /**
7448
+ * Is Current
7449
+ * @default true
7450
+ */
7451
+ is_current: boolean;
7452
+ /** Thread Id */
7453
+ thread_id?: string | null;
7454
+ /**
7455
+ * Derived From
7456
+ * @default []
7457
+ */
7458
+ derived_from: components['schemas']['DerivedFrom'][];
7388
7459
  /** Source Message Ext Id */
7389
7460
  source_message_ext_id?: string | null;
7390
7461
  /** Conversation Ext Id */
@@ -13004,8 +13075,11 @@ interface components {
13004
13075
  shared: boolean;
13005
13076
  /** Config Ext Id */
13006
13077
  config_ext_id?: string | null;
13007
- /** Parent Ext Id */
13008
- parent_ext_id?: string | null;
13078
+ /**
13079
+ * Version Of
13080
+ * @description Upload as the next version of this document (any of its versions)
13081
+ */
13082
+ version_of?: string | null;
13009
13083
  /** Wp Type */
13010
13084
  wp_type?: string | null;
13011
13085
  /** Tag Ext Id */
@@ -15620,7 +15694,7 @@ interface operations {
15620
15694
  parameters: {
15621
15695
  query?: {
15622
15696
  title?: string;
15623
- parent_ext_id?: string | null;
15697
+ version_of?: string | null;
15624
15698
  };
15625
15699
  header?: never;
15626
15700
  path?: never;
@@ -15913,6 +15987,37 @@ interface operations {
15913
15987
  };
15914
15988
  };
15915
15989
  };
15990
+ list_document_versions: {
15991
+ parameters: {
15992
+ query?: never;
15993
+ header?: never;
15994
+ path: {
15995
+ document_ext_id: string;
15996
+ };
15997
+ cookie?: never;
15998
+ };
15999
+ requestBody?: never;
16000
+ responses: {
16001
+ /** @description Successful Response */
16002
+ 200: {
16003
+ headers: {
16004
+ [name: string]: unknown;
16005
+ };
16006
+ content: {
16007
+ 'application/json': components['schemas']['DocResponse'][];
16008
+ };
16009
+ };
16010
+ /** @description Validation Error */
16011
+ 422: {
16012
+ headers: {
16013
+ [name: string]: unknown;
16014
+ };
16015
+ content: {
16016
+ 'application/json': components['schemas']['HTTPValidationError'];
16017
+ };
16018
+ };
16019
+ };
16020
+ };
15916
16021
  create_doctags: {
15917
16022
  parameters: {
15918
16023
  query?: never;
@@ -16017,8 +16122,12 @@ interface operations {
16017
16122
  shared?: boolean;
16018
16123
  /** @description Configuration to use for processing */
16019
16124
  config_ext_id?: string | null;
16020
- /** @description Parent document ID for version tracking */
16021
- parent_ext_id?: string | null;
16125
+ /** @description Upload a single file as the next version of this document (any of its versions). It becomes the current version and takes the document's sharing, folder and labels. */
16126
+ version_of?: string | null;
16127
+ /** @description A new, separate document made from this one (e.g. a crop); recorded as provenance only */
16128
+ derived_from?: string | null;
16129
+ /** @description How it was made from `derived_from` */
16130
+ derived_role?: ('crop' | 'redline_base' | 'redline_revised') | null;
16022
16131
  /** @description Work product type: source, skill, memory, artifact */
16023
16132
  wp_type?: string | null;
16024
16133
  /** @description Tag to link the document to */
package/dist/index.d.ts CHANGED
@@ -1093,7 +1093,10 @@ interface paths {
1093
1093
  };
1094
1094
  get?: never;
1095
1095
  put?: never;
1096
- /** Create Docx Note */
1096
+ /**
1097
+ * Create Docx Note
1098
+ * @description Store a DOCX note: a new document, or (``version_of``) the next version of an editable one.
1099
+ */
1097
1100
  post: operations['create_docx_note_v1_editor_notes_post'];
1098
1101
  delete?: never;
1099
1102
  options?: never;
@@ -1144,7 +1147,13 @@ interface paths {
1144
1147
  };
1145
1148
  get?: never;
1146
1149
  put?: never;
1147
- /** Create Word Redline */
1150
+ /**
1151
+ * Create Word Redline
1152
+ * @description Compare two documents into a NEW redline document (base -> revised).
1153
+ *
1154
+ * Without ``base_ext_id`` the base is the revised document's previous version.
1155
+ * The redline records both inputs as provenance and is shared only if both are.
1156
+ */
1148
1157
  post: operations['create_word_redline_v1_editor_redline_post'];
1149
1158
  delete?: never;
1150
1159
  options?: never;
@@ -1227,6 +1236,10 @@ interface paths {
1227
1236
  /**
1228
1237
  * Delete Documents
1229
1238
  * @description Delete one or more documents.
1239
+ *
1240
+ * A document is deleted with all its versions (any version's id names it), and an
1241
+ * email with its attachments (an archive with its messages). In-flight processing
1242
+ * is cancelled so a deleted row does not pop back into the Processing tab.
1230
1243
  */
1231
1244
  delete: operations['delete_documents'];
1232
1245
  options?: never;
@@ -1251,6 +1264,29 @@ interface paths {
1251
1264
  patch: operations['update_documents'];
1252
1265
  trace?: never;
1253
1266
  };
1267
+ '/v1/document/{document_ext_id}/versions': {
1268
+ parameters: {
1269
+ query?: never;
1270
+ header?: never;
1271
+ path?: never;
1272
+ cookie?: never;
1273
+ };
1274
+ /**
1275
+ * List Document Versions
1276
+ * @description Every version of the document ``document_ext_id`` belongs to (any version's id), oldest first.
1277
+ *
1278
+ * ``is_current`` marks the current one. Lists and search show only current
1279
+ * versions; this is how older ones are reached.
1280
+ */
1281
+ get: operations['list_document_versions'];
1282
+ put?: never;
1283
+ post?: never;
1284
+ delete?: never;
1285
+ options?: never;
1286
+ head?: never;
1287
+ patch?: never;
1288
+ trace?: never;
1289
+ };
1254
1290
  '/v1/document/doctag': {
1255
1291
  parameters: {
1256
1292
  query?: never;
@@ -1297,8 +1333,9 @@ interface paths {
1297
1333
  * - For file uploads: standard multipart form with files
1298
1334
  * - For artifacts/content: create a file from text content on the client side
1299
1335
  *
1300
- * Optional parameters for version tracking and document typing:
1301
- * - parent_ext_id: Links new document as child of parent (version chain)
1336
+ * Optional parameters for versions, provenance and document typing:
1337
+ * - version_of: Saves the file as the next version of that document
1338
+ * - derived_from + derived_role: Records that the new document was made from another (a crop)
1302
1339
  * - wp_type: Document type (source, skill, memory, artifact). Defaults to 'source'.
1303
1340
  * - tag_ext_id: Links document to a tag
1304
1341
  * - folder: Logical folder path for grouping (URL safe, e.g., 'skills/weather')
@@ -5685,10 +5722,10 @@ interface components {
5685
5722
  */
5686
5723
  version: number;
5687
5724
  /**
5688
- * Parent Doc Ext Id
5725
+ * Version Of
5689
5726
  * @description Document this artifact updates; it is saved as the next version in that document's chain
5690
5727
  */
5691
- parent_doc_ext_id?: string | null;
5728
+ version_of?: string | null;
5692
5729
  /**
5693
5730
  * Message Ext Id
5694
5731
  * @description External ID of the assistant message that generated this artifact
@@ -7321,6 +7358,15 @@ interface components {
7321
7358
  /** External Ids */
7322
7359
  external_ids: string[];
7323
7360
  };
7361
+ /**
7362
+ * DerivedFrom
7363
+ * @description One provenance link of a document: it was made from ``doc_ext_id`` as ``role``.
7364
+ */
7365
+ DerivedFrom: {
7366
+ /** Doc Ext Id */
7367
+ doc_ext_id: string;
7368
+ role: components['schemas']['DocRelationRole'];
7369
+ };
7324
7370
  /**
7325
7371
  * DmAttachmentUploadResponse
7326
7372
  * @description An uploaded, client-encrypted DM attachment blob.
@@ -7347,6 +7393,12 @@ interface components {
7347
7393
  /** Title */
7348
7394
  title?: string | null;
7349
7395
  };
7396
+ /**
7397
+ * DocRelationRole
7398
+ * @description How ``from_doc`` was derived from ``to_doc`` (provenance only, no behaviour).
7399
+ * @enum {string}
7400
+ */
7401
+ DocRelationRole: 'edit' | 'sync' | 'crop' | 'redline_base' | 'redline_revised';
7350
7402
  /** DocResponse */
7351
7403
  DocResponse: {
7352
7404
  /** External Id */
@@ -7385,6 +7437,25 @@ interface components {
7385
7437
  config_ext_id?: string | null;
7386
7438
  /** Parent Ext Id */
7387
7439
  parent_ext_id?: string | null;
7440
+ /** Lineage Id */
7441
+ lineage_id?: string | null;
7442
+ /**
7443
+ * Version Number
7444
+ * @default 1
7445
+ */
7446
+ version_number: number;
7447
+ /**
7448
+ * Is Current
7449
+ * @default true
7450
+ */
7451
+ is_current: boolean;
7452
+ /** Thread Id */
7453
+ thread_id?: string | null;
7454
+ /**
7455
+ * Derived From
7456
+ * @default []
7457
+ */
7458
+ derived_from: components['schemas']['DerivedFrom'][];
7388
7459
  /** Source Message Ext Id */
7389
7460
  source_message_ext_id?: string | null;
7390
7461
  /** Conversation Ext Id */
@@ -13004,8 +13075,11 @@ interface components {
13004
13075
  shared: boolean;
13005
13076
  /** Config Ext Id */
13006
13077
  config_ext_id?: string | null;
13007
- /** Parent Ext Id */
13008
- parent_ext_id?: string | null;
13078
+ /**
13079
+ * Version Of
13080
+ * @description Upload as the next version of this document (any of its versions)
13081
+ */
13082
+ version_of?: string | null;
13009
13083
  /** Wp Type */
13010
13084
  wp_type?: string | null;
13011
13085
  /** Tag Ext Id */
@@ -15620,7 +15694,7 @@ interface operations {
15620
15694
  parameters: {
15621
15695
  query?: {
15622
15696
  title?: string;
15623
- parent_ext_id?: string | null;
15697
+ version_of?: string | null;
15624
15698
  };
15625
15699
  header?: never;
15626
15700
  path?: never;
@@ -15913,6 +15987,37 @@ interface operations {
15913
15987
  };
15914
15988
  };
15915
15989
  };
15990
+ list_document_versions: {
15991
+ parameters: {
15992
+ query?: never;
15993
+ header?: never;
15994
+ path: {
15995
+ document_ext_id: string;
15996
+ };
15997
+ cookie?: never;
15998
+ };
15999
+ requestBody?: never;
16000
+ responses: {
16001
+ /** @description Successful Response */
16002
+ 200: {
16003
+ headers: {
16004
+ [name: string]: unknown;
16005
+ };
16006
+ content: {
16007
+ 'application/json': components['schemas']['DocResponse'][];
16008
+ };
16009
+ };
16010
+ /** @description Validation Error */
16011
+ 422: {
16012
+ headers: {
16013
+ [name: string]: unknown;
16014
+ };
16015
+ content: {
16016
+ 'application/json': components['schemas']['HTTPValidationError'];
16017
+ };
16018
+ };
16019
+ };
16020
+ };
15916
16021
  create_doctags: {
15917
16022
  parameters: {
15918
16023
  query?: never;
@@ -16017,8 +16122,12 @@ interface operations {
16017
16122
  shared?: boolean;
16018
16123
  /** @description Configuration to use for processing */
16019
16124
  config_ext_id?: string | null;
16020
- /** @description Parent document ID for version tracking */
16021
- parent_ext_id?: string | null;
16125
+ /** @description Upload a single file as the next version of this document (any of its versions). It becomes the current version and takes the document's sharing, folder and labels. */
16126
+ version_of?: string | null;
16127
+ /** @description A new, separate document made from this one (e.g. a crop); recorded as provenance only */
16128
+ derived_from?: string | null;
16129
+ /** @description How it was made from `derived_from` */
16130
+ derived_role?: ('crop' | 'redline_base' | 'redline_revised') | null;
16022
16131
  /** @description Work product type: source, skill, memory, artifact */
16023
16132
  wp_type?: string | null;
16024
16133
  /** @description Tag to link the document to */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/client",
3
- "version": "0.4.57",
3
+ "version": "0.4.59",
4
4
  "description": "TypeScript SDK for the ARBI API — zero-knowledge auth, E2E encryption, and type-safe REST client",
5
5
  "type": "module",
6
6
  "sideEffects": false,