@lunch-money/v2-api-spec 2.11.1-preview.13 → 2.11.1-preview.14

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.
@@ -2712,8 +2712,11 @@ components:
2712
2712
  type: array
2713
2713
  nullable: false
2714
2714
  description: A list of objects that describe any attachments to the
2715
- transaction. This is only present when the `include_files` query
2716
- parameter is set to true.
2715
+ transaction. For OAuth clients, this property is available only
2716
+ with the `transaction_attachments:read` scope. Without that scope,
2717
+ an absent `files` property does not mean the transaction has no
2718
+ attachments. See the operation description for its attachment
2719
+ behavior.
2717
2720
  items:
2718
2721
  $ref: "#/components/schemas/transactionAttachmentObject"
2719
2722
  source:
@@ -3008,7 +3011,10 @@ components:
3008
3011
  type: array
3009
3012
  nullable: false
3010
3013
  description: A list of objects that describe any attachments to the
3011
- transaction
3014
+ transaction. OAuth clients also need the
3015
+ `transaction_attachments:read` scope. Without it, this property is
3016
+ omitted rather than returned as an empty array, so an absent
3017
+ `files` property does not mean the transaction has no attachments.
3012
3018
  items:
3013
3019
  $ref: "#/components/schemas/transactionAttachmentObject"
3014
3020
  required:
@@ -5136,11 +5142,11 @@ components:
5136
5142
  manual_accounts:delete: "Delete manually managed accounts"
5137
5143
  plaid_accounts:read: "View accounts connected through Plaid"
5138
5144
  plaid_accounts:update: "Request a Plaid account refresh, which may import new transactions"
5139
- transactions:read: "View transactions, including split and group information and attachment metadata"
5145
+ transactions:read: "View transactions, including split and group information"
5140
5146
  transactions:create: "Create transactions"
5141
5147
  transactions:update: "Update, split, unsplit, group, and ungroup transactions"
5142
5148
  transactions:delete: "Delete transactions"
5143
- transaction_attachments:read: "Get download access to transaction attachments"
5149
+ transaction_attachments:read: "View transaction attachment metadata and get download access to attachments"
5144
5150
  transaction_attachments:create: "Attach files to transactions"
5145
5151
  transaction_attachments:delete: "Delete transaction attachments"
5146
5152
  tags:read: "View tags"
@@ -9667,6 +9673,9 @@ paths:
9667
9673
  description: By default, the `files` property is not included in the
9668
9674
  response. Set to true if you'd like the responses to include a list
9669
9675
  of objects that describe any files attached to the transactions.
9676
+ OAuth clients must have both `transactions:read` and
9677
+ `transaction_attachments:read`; otherwise the request returns a
9678
+ `403` `insufficient_scope` error.
9670
9679
  - name: limit
9671
9680
  in: query
9672
9681
  schema:
@@ -9950,7 +9959,10 @@ paths:
9950
9959
  successfully inserted.<br>
9951
9960
  - `skipped_duplicates`: A list of
9952
9961
  transactions that were duplicates of existing transactions and were not
9953
- inserted.
9962
+ inserted.<p>
9963
+
9964
+ For OAuth clients, returned transactions include the `files` property
9965
+ only when the client has the `transaction_attachments:read` scope.
9954
9966
  operationId: createNewTransactions
9955
9967
  security:
9956
9968
  - bearerSecurity: []
@@ -10394,7 +10406,10 @@ paths:
10394
10406
 
10395
10407
  Each transaction in the array **must** include an `id` property to identify which transaction to update, along with at least one other property to be updated. For example, a transaction object that contains only an `id` and `category_id` property is valid.<br><br>
10396
10408
 
10397
- The request can include between 1 and 500 transactions to update in a single call.
10409
+ The request can include between 1 and 500 transactions to update in a single call.<br><br>
10410
+
10411
+ For OAuth clients, returned transactions include the `files` property
10412
+ only when the client has the `transaction_attachments:read` scope.
10398
10413
  operationId: updateTransactions
10399
10414
  security:
10400
10415
  - bearerSecurity: []
@@ -10877,7 +10892,8 @@ paths:
10877
10892
  added to transactions that were inserted or updated via the API.
10878
10893
 
10879
10894
  - `files` will be a list of objects that describe any attachments to the
10880
- transaction.
10895
+ transaction. For OAuth clients, this property is included only when the
10896
+ client has the `transaction_attachments:read` scope.
10881
10897
 
10882
10898
 
10883
10899
  If `is_group_parent` is true in the returned transaction, the object will also
@@ -11132,7 +11148,11 @@ paths:
11132
11148
  It is also possible to provide only the properties to be updated in the
11133
11149
  request body, as long as the request includes at least one of the
11134
11150
  properties that is not listed above. For example a request body that contains only
11135
- an `category_id` attribute is valid.
11151
+ an `category_id` attribute is valid.<br><br>
11152
+
11153
+ For OAuth clients, the returned transaction includes the `files`
11154
+ property only when the client has the
11155
+ `transaction_attachments:read` scope.
11136
11156
 
11137
11157
  operationId: updateTransaction
11138
11158
  security:
@@ -11348,7 +11368,11 @@ paths:
11348
11368
  transaction. The grouped transactions will
11349
11369
 
11350
11370
  be included in the `children` property of the transaction returned in
11351
- the response
11371
+ the response.<br><br>
11372
+
11373
+ For OAuth clients, the returned group and its children include the
11374
+ `files` property only when the client has the
11375
+ `transaction_attachments:read` scope.
11352
11376
  operationId: groupTransactions
11353
11377
  security:
11354
11378
  - bearerSecurity: []
@@ -11701,7 +11725,11 @@ paths:
11701
11725
 
11702
11726
  To see the details of the original parent transaction after it has been
11703
11727
  split, use the `GET /transactions/{id}` endpoint and pass the value of
11704
- the `split_parent_id` of one of the children.
11728
+ the `split_parent_id` of one of the children.<br><br>
11729
+
11730
+ For OAuth clients, the returned parent and its children include the
11731
+ `files` property only when the client has the
11732
+ `transaction_attachments:read` scope.
11705
11733
  operationId: splitTransaction
11706
11734
  security:
11707
11735
  - bearerSecurity: []
@@ -172,7 +172,7 @@ const scopeDefinitions = [
172
172
  },
173
173
  {
174
174
  name: 'transactions:read',
175
- description: 'View transactions, including split and group information and attachment metadata',
175
+ description: 'View transactions, including split and group information',
176
176
  category: 'api',
177
177
  operationIds: ['getAllTransactions', 'getTransactionById'],
178
178
  status: 'active',
@@ -200,7 +200,7 @@ const scopeDefinitions = [
200
200
  },
201
201
  {
202
202
  name: 'transaction_attachments:read',
203
- description: 'Get download access to transaction attachments',
203
+ description: 'View transaction attachment metadata and get download access to attachments',
204
204
  category: 'api',
205
205
  operationIds: ['getTransactionAttachmentUrl'],
206
206
  status: 'active',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunch-money/v2-api-spec",
3
- "version": "2.11.1-preview.13",
3
+ "version": "2.11.1-preview.14",
4
4
  "description": "OpenAPI specification and version history for the Lunch Money v2 API",
5
5
  "main": "lunch-money-api-v2.yaml",
6
6
  "exports": {