@wevion/cli 1.0.4656 → 1.0.4658

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.
Files changed (2) hide show
  1. package/openapi.json +47 -27
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -7851,7 +7851,7 @@
7851
7851
  "tags": [
7852
7852
  "ad-agency"
7853
7853
  ],
7854
- "description": "The spend of one ad account of the workspace, per day and per country, as imported from the data source of its platform. Only the part of the workspace: from the day it got the account, in the time zone of the account. Whoever governs the workspace sees every account, everyone else only those they work on (404 `AD_AGENCY_ACCOUNT_NOT_FOUND` otherwise). Default range: the last 30 days. 400 `AD_AGENCY_INVALID_SPEND_RANGE` for a range that is reversed or longer than 366 days.",
7854
+ "description": "The spend of one ad account of the workspace, per day and per country, as imported from the data source of its platform. Only the part of the workspace: from the day it got the account, in the time zone of the account. Whoever governs the workspace sees every account, everyone else only those they work on (404 `AD_AGENCY_ACCOUNT_NOT_FOUND` otherwise). Default range: the last 30 days. 400 `AD_AGENCY_INVALID_SPEND_RANGE` for a range that is reversed or longer than 366 days. The workspace is the one of the ad account, when only one workspace ever had it when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, the caller's primary workspace).",
7855
7855
  "parameters": [
7856
7856
  {
7857
7857
  "schema": {
@@ -8263,7 +8263,7 @@
8263
8263
  "tags": [
8264
8264
  "ad-agency"
8265
8265
  ],
8266
- "description": "Lets a member of the workspace work on one ad account: they see it, and the actions their module permissions allow apply to it. Idempotent: granting it again leaves who granted it and when as they were. Only owners and admins of the organization and managers of the workspace can do it (403 `AD_AGENCY_FORBIDDEN`). 404 `AD_AGENCY_ACCOUNT_NOT_FOUND` when the account does not belong to the workspace, 404 `AD_AGENCY_MEMBER_NOT_FOUND` when the person is not a member of it.",
8266
+ "description": "Lets a member of the workspace work on one ad account: they see it, and the actions their module permissions allow apply to it. Idempotent: granting it again leaves who granted it and when as they were. Only owners and admins of the organization and managers of the workspace can do it (403 `AD_AGENCY_FORBIDDEN`). 404 `AD_AGENCY_ACCOUNT_NOT_FOUND` when the account does not belong to the workspace, 404 `AD_AGENCY_MEMBER_NOT_FOUND` when the person is not a member of it. The workspace is the one of the workspace the ad account is delivered to when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
8267
8267
  "parameters": [
8268
8268
  {
8269
8269
  "schema": {
@@ -8601,7 +8601,7 @@
8601
8601
  "tags": [
8602
8602
  "ad-agency"
8603
8603
  ],
8604
- "description": "Takes a person off one ad account: they no longer see it, unless they govern the workspace. Only owners and admins of the organization and managers of the workspace can do it (403 `AD_AGENCY_FORBIDDEN`). 404 `AD_AGENCY_ACCESS_NOT_FOUND` when the person did not work on the account.",
8604
+ "description": "Takes a person off one ad account: they no longer see it, unless they govern the workspace. Only owners and admins of the organization and managers of the workspace can do it (403 `AD_AGENCY_FORBIDDEN`). 404 `AD_AGENCY_ACCESS_NOT_FOUND` when the person did not work on the account. The workspace is the one of the workspace the ad account is delivered to when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
8605
8605
  "parameters": [
8606
8606
  {
8607
8607
  "schema": {
@@ -9815,7 +9815,7 @@
9815
9815
  "tags": [
9816
9816
  "ad-agency"
9817
9817
  ],
9818
- "description": "Rewrites a billing address of the workspace. Whatever its state, it goes back to `pending` and Wevion reviews it again; the invoices already issued keep the address they were issued with. 404 `AD_AGENCY_BILLING_ADDRESS_NOT_FOUND` for an address of another workspace; 400 `AD_AGENCY_BILLING_ADDRESS_INVALID` as for a new one.",
9818
+ "description": "Rewrites a billing address of the workspace. Whatever its state, it goes back to `pending` and Wevion reviews it again; the invoices already issued keep the address they were issued with. 404 `AD_AGENCY_BILLING_ADDRESS_NOT_FOUND` for an address of another workspace; 400 `AD_AGENCY_BILLING_ADDRESS_INVALID` as for a new one. The workspace is the one of the billing address when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
9819
9819
  "requestBody": {
9820
9820
  "required": true,
9821
9821
  "content": {
@@ -10312,7 +10312,7 @@
10312
10312
  "tags": [
10313
10313
  "ad-agency"
10314
10314
  ],
10315
- "description": "The PDF of the invoice of a credited recharge, as the staff uploaded it. The backend reads the bytes and checks them against the digest recorded at upload; no link to the storage is ever given out. 404 `AD_AGENCY_INVOICE_NOT_FOUND` when the recharge has no invoice (or the file is not available), and for a recharge of another workspace; 500 when the storage fails to answer; 503 `AD_AGENCY_STORAGE_NOT_CONFIGURED` when the AD-Agency bucket is not configured.",
10315
+ "description": "The PDF of the invoice of a credited recharge, as the staff uploaded it. The backend reads the bytes and checks them against the digest recorded at upload; no link to the storage is ever given out. 404 `AD_AGENCY_INVOICE_NOT_FOUND` when the recharge has no invoice (or the file is not available), and for a recharge of another workspace; 500 when the storage fails to answer; 503 `AD_AGENCY_STORAGE_NOT_CONFIGURED` when the AD-Agency bucket is not configured. The workspace is the one of the recharge when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, the caller's primary workspace).",
10316
10316
  "parameters": [
10317
10317
  {
10318
10318
  "schema": {
@@ -38750,7 +38750,7 @@
38750
38750
  "tags": [
38751
38751
  "ad-agency"
38752
38752
  ],
38753
- "description": "Moves the partner to `past`. A partner is never deleted, and it can be archived only when no ad account is shared with it any more (409 `AD_AGENCY_PARTNER_HAS_SHARES`), because the shares exist on the platform. Archiving an archived partner returns it unchanged. Only owners, admins and managers can do it (403 `AD_AGENCY_FORBIDDEN`).",
38753
+ "description": "Moves the partner to `past`. A partner is never deleted, and it can be archived only when no ad account is shared with it any more (409 `AD_AGENCY_PARTNER_HAS_SHARES`), because the shares exist on the platform. Archiving an archived partner returns it unchanged. Only owners, admins and managers can do it (403 `AD_AGENCY_FORBIDDEN`). The workspace is the one of the partner when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
38754
38754
  "parameters": [
38755
38755
  {
38756
38756
  "schema": {
@@ -40663,7 +40663,7 @@
40663
40663
  ]
40664
40664
  },
40665
40665
  "needsReview": {
40666
- "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), or a credited deposit was then rejected (for example a crypto payment returned). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
40666
+ "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), a credited deposit was then rejected (for example a crypto payment returned), or the deposit is in manual review at the gateway (`review`, also when the gateway team closed it without an automatic credit). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
40667
40667
  "type": "boolean"
40668
40668
  },
40669
40669
  "createdAt": {
@@ -41052,7 +41052,7 @@
41052
41052
  "tags": [
41053
41053
  "ad-agency"
41054
41054
  ],
41055
- "description": "Opens a deposit at the gateway for the chosen method and amount. The answer carries the deposit: crypto addresses once `details_ready`, or bank details and the unique `reference_code` to write in the transfer. Fees are taken from what actually arrives, when the gateway confirms the payment. Only owners and admins of the organization and managers of the workspace can recharge (403 `AD_AGENCY_FORBIDDEN`). 400 `AD_AGENCY_RECHARGE_METHOD_NOT_FOUND` for a method or currency the gateway does not offer, 400 `AD_AGENCY_AMOUNT_TOO_SMALL` under the method minimum. The same `idempotencyKey` returns the recharge already opened (409 `AD_AGENCY_IDEMPOTENCY_CONFLICT` with different data). 503 when the gateway is not configured or not reachable: the recharge is then closed as `failed`.",
41055
+ "description": "Opens a deposit at the gateway for the chosen method and amount. The answer carries the deposit: crypto addresses once `details_ready`, or bank details and the unique `reference_code` to write in the transfer. Fees are taken from what actually arrives, when the gateway confirms the payment. Only owners and admins of the organization and managers of the workspace can recharge (403 `AD_AGENCY_FORBIDDEN`). 400 `AD_AGENCY_RECHARGE_METHOD_NOT_FOUND` for a method or currency the gateway does not offer, 400 `AD_AGENCY_AMOUNT_TOO_SMALL` under the method minimum. The same `idempotencyKey` returns the recharge already opened (409 `AD_AGENCY_IDEMPOTENCY_CONFLICT` with different data). 503 when the gateway is not configured or not reachable: the recharge is then closed as `failed`. The workspace is the one of its billing address when it names exactly one, in the organization of the selected workspace or scope: a different one in `x-team-id` or the active team scope is 409 `AD_AGENCY_WORKSPACE_MISMATCH`. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
41056
41056
  "requestBody": {
41057
41057
  "required": true,
41058
41058
  "content": {
@@ -41116,7 +41116,8 @@
41116
41116
  "type": "object",
41117
41117
  "required": [
41118
41118
  "recharge",
41119
- "deposit"
41119
+ "deposit",
41120
+ "walletCurrency"
41120
41121
  ],
41121
41122
  "properties": {
41122
41123
  "recharge": {
@@ -41362,7 +41363,7 @@
41362
41363
  ]
41363
41364
  },
41364
41365
  "needsReview": {
41365
- "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), or a credited deposit was then rejected (for example a crypto payment returned). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
41366
+ "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), a credited deposit was then rejected (for example a crypto payment returned), or the deposit is in manual review at the gateway (`review`, also when the gateway team closed it without an automatic credit). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
41366
41367
  "type": "boolean"
41367
41368
  },
41368
41369
  "createdAt": {
@@ -41758,6 +41759,10 @@
41758
41759
  "type": "null"
41759
41760
  }
41760
41761
  ]
41762
+ },
41763
+ "walletCurrency": {
41764
+ "description": "The currency of the wallet the recharge credits: `grossMinor`, `feesMinor` and `netMinor` of the recharge are in it. It can differ from the deposit currency, and from the wallet of the workspace selected in the request.",
41765
+ "type": "string"
41761
41766
  }
41762
41767
  }
41763
41768
  }
@@ -42023,7 +42028,7 @@
42023
42028
  "tags": [
42024
42029
  "ad-agency"
42025
42030
  ],
42026
- "description": "The recharge and its deposit read now from the gateway, which also brings the recharge up to date: poll it every few seconds until `details_ready`, then until the deposit is `final`. A deposit that expires or is cancelled closes the recharge as `expired` or `cancelled`; one rejected by the gateway operator (an invalid proof) as `rejected`. 404 `AD_AGENCY_RECHARGE_NOT_FOUND` for a recharge of another workspace or one recorded by the backoffice.",
42031
+ "description": "The recharge and its deposit read now from the gateway, which also brings the recharge up to date: poll it every few seconds until `details_ready`, then until the deposit is `final`. A deposit that expires or is cancelled closes the recharge as `expired` or `cancelled`; one rejected by the gateway operator (an invalid proof) as `rejected`. 404 `AD_AGENCY_RECHARGE_NOT_FOUND` for a recharge of another workspace or one recorded by the backoffice. The workspace is the one of the recharge when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, the caller's primary workspace).",
42027
42032
  "parameters": [
42028
42033
  {
42029
42034
  "schema": {
@@ -42051,7 +42056,8 @@
42051
42056
  "type": "object",
42052
42057
  "required": [
42053
42058
  "recharge",
42054
- "deposit"
42059
+ "deposit",
42060
+ "walletCurrency"
42055
42061
  ],
42056
42062
  "properties": {
42057
42063
  "recharge": {
@@ -42297,7 +42303,7 @@
42297
42303
  ]
42298
42304
  },
42299
42305
  "needsReview": {
42300
- "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), or a credited deposit was then rejected (for example a crypto payment returned). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
42306
+ "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), a credited deposit was then rejected (for example a crypto payment returned), or the deposit is in manual review at the gateway (`review`, also when the gateway team closed it without an automatic credit). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
42301
42307
  "type": "boolean"
42302
42308
  },
42303
42309
  "createdAt": {
@@ -42693,6 +42699,10 @@
42693
42699
  "type": "null"
42694
42700
  }
42695
42701
  ]
42702
+ },
42703
+ "walletCurrency": {
42704
+ "description": "The currency of the wallet the recharge credits: `grossMinor`, `feesMinor` and `netMinor` of the recharge are in it. It can differ from the deposit currency, and from the wallet of the workspace selected in the request.",
42705
+ "type": "string"
42696
42706
  }
42697
42707
  }
42698
42708
  }
@@ -42958,7 +42968,7 @@
42958
42968
  "tags": [
42959
42969
  "ad-agency"
42960
42970
  ],
42961
- "description": "The client gives up a deposit that has not been paid: the gateway closes it and the recharge becomes `cancelled`. 409 `AD_AGENCY_RECHARGE_CLOSED` when the recharge is no longer waiting for a payment. Only those who govern the workspace (403 `AD_AGENCY_FORBIDDEN`).",
42971
+ "description": "The client gives up a deposit that has not been paid: the gateway closes it and the recharge becomes `cancelled`. 409 `AD_AGENCY_RECHARGE_CLOSED` when the recharge is no longer waiting for a payment. Only those who govern the workspace (403 `AD_AGENCY_FORBIDDEN`). The workspace is the one of the recharge when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
42962
42972
  "parameters": [
42963
42973
  {
42964
42974
  "schema": {
@@ -42986,7 +42996,8 @@
42986
42996
  "type": "object",
42987
42997
  "required": [
42988
42998
  "recharge",
42989
- "deposit"
42999
+ "deposit",
43000
+ "walletCurrency"
42990
43001
  ],
42991
43002
  "properties": {
42992
43003
  "recharge": {
@@ -43232,7 +43243,7 @@
43232
43243
  ]
43233
43244
  },
43234
43245
  "needsReview": {
43235
- "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), or a credited deposit was then rejected (for example a crypto payment returned). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
43246
+ "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), a credited deposit was then rejected (for example a crypto payment returned), or the deposit is in manual review at the gateway (`review`, also when the gateway team closed it without an automatic credit). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
43236
43247
  "type": "boolean"
43237
43248
  },
43238
43249
  "createdAt": {
@@ -43628,6 +43639,10 @@
43628
43639
  "type": "null"
43629
43640
  }
43630
43641
  ]
43642
+ },
43643
+ "walletCurrency": {
43644
+ "description": "The currency of the wallet the recharge credits: `grossMinor`, `feesMinor` and `netMinor` of the recharge are in it. It can differ from the deposit currency, and from the wallet of the workspace selected in the request.",
43645
+ "type": "string"
43631
43646
  }
43632
43647
  }
43633
43648
  }
@@ -43893,7 +43908,7 @@
43893
43908
  "tags": [
43894
43909
  "ad-agency"
43895
43910
  ],
43896
- "description": "Multipart upload of the proof of a bank transfer (field `proof`, PDF or JPG, at most 20 MB: 413 `AD_AGENCY_PROOF_TOO_LARGE` above). It goes to the gateway, which checks it and keeps it; an operator confirms the payment in the gateway panel, and the wallet is credited then. 400 `AD_AGENCY_PROOF_REQUIRED` without a file, 400 `AD_AGENCY_GATEWAY_REJECTED` with the reason when the gateway refuses the file. 409 `AD_AGENCY_RECHARGE_CLOSED` for a recharge that is not a bank transfer waiting for its payment.",
43911
+ "description": "Multipart upload of the proof of a bank transfer (field `proof`, PDF or JPG, at most 20 MB: 413 `AD_AGENCY_PROOF_TOO_LARGE` above). It goes to the gateway, which checks it and keeps it; an operator confirms the payment in the gateway panel, and the wallet is credited then. 400 `AD_AGENCY_PROOF_REQUIRED` without a file, 400 `AD_AGENCY_GATEWAY_REJECTED` with the reason when the gateway refuses the file. 409 `AD_AGENCY_RECHARGE_CLOSED` for a recharge that is not a bank transfer waiting for its payment. The workspace is the one of the recharge when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
43897
43912
  "parameters": [
43898
43913
  {
43899
43914
  "schema": {
@@ -43921,7 +43936,8 @@
43921
43936
  "type": "object",
43922
43937
  "required": [
43923
43938
  "recharge",
43924
- "deposit"
43939
+ "deposit",
43940
+ "walletCurrency"
43925
43941
  ],
43926
43942
  "properties": {
43927
43943
  "recharge": {
@@ -44167,7 +44183,7 @@
44167
44183
  ]
44168
44184
  },
44169
44185
  "needsReview": {
44170
- "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), or a credited deposit was then rejected (for example a crypto payment returned). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
44186
+ "description": "The gateway and the wallet disagree: the deposit is paid but the recharge is not credited (callback lost), a credited deposit was then rejected (for example a crypto payment returned), or the deposit is in manual review at the gateway (`review`, also when the gateway team closed it without an automatic credit). In the backoffice also a credited recharge on which the gateway reports more than was credited (a second payment on the same deposit). Check it by hand.",
44171
44187
  "type": "boolean"
44172
44188
  },
44173
44189
  "createdAt": {
@@ -44563,6 +44579,10 @@
44563
44579
  "type": "null"
44564
44580
  }
44565
44581
  ]
44582
+ },
44583
+ "walletCurrency": {
44584
+ "description": "The currency of the wallet the recharge credits: `grossMinor`, `feesMinor` and `netMinor` of the recharge are in it. It can differ from the deposit currency, and from the wallet of the workspace selected in the request.",
44585
+ "type": "string"
44566
44586
  }
44567
44587
  }
44568
44588
  }
@@ -46510,7 +46530,7 @@
46510
46530
  "tags": [
46511
46531
  "ad-agency"
46512
46532
  ],
46513
- "description": "Creates one request per ad account asked for (up to 50 in one submission), on the platform and in the currency of the workspace. Every line names who receives its accounts: one or more partners, each a Business Manager, active ones of the workspace (404 `AD_AGENCY_PARTNER_NOT_FOUND`) or new ones created with the request, one per Business Manager even across lines (409 `AD_AGENCY_PARTNER_EXISTS` when the workspace already has that Business Manager; 400 `AD_AGENCY_INVALID_PARTNERS` for an item with both or neither of `partnerId` and `newPartner`, the same Business Manager twice on a line, or the same new partner with different details). The accounts are delivered to every partner and shared with each. Every account takes a place in the daily limit of the workspace (409 `AD_AGENCY_DAILY_LIMIT`). Needs the `request_accounts` permission, unless the caller governs the workspace (403 `AD_AGENCY_FORBIDDEN`). Sending the same `submissionKey` again returns the requests already created (200) instead of creating new ones; with different content it is 409 `AD_AGENCY_IDEMPOTENCY_CONFLICT`.",
46533
+ "description": "Creates one request per ad account asked for (up to 50 in one submission), on the platform and in the currency of the workspace. Every line names who receives its accounts: one or more partners, each a Business Manager, active ones of the workspace (404 `AD_AGENCY_PARTNER_NOT_FOUND`) or new ones created with the request, one per Business Manager even across lines (409 `AD_AGENCY_PARTNER_EXISTS` when the workspace already has that Business Manager; 400 `AD_AGENCY_INVALID_PARTNERS` for an item with both or neither of `partnerId` and `newPartner`, the same Business Manager twice on a line, or the same new partner with different details). The accounts are delivered to every partner and shared with each. Every account takes a place in the daily limit of the workspace (409 `AD_AGENCY_DAILY_LIMIT`). Needs the `request_accounts` permission, unless the caller governs the workspace (403 `AD_AGENCY_FORBIDDEN`). Sending the same `submissionKey` again returns the requests already created (200) instead of creating new ones; with different content it is 409 `AD_AGENCY_IDEMPOTENCY_CONFLICT`. The workspace is the one of the existing partners it names when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
46514
46534
  "requestBody": {
46515
46535
  "required": true,
46516
46536
  "content": {
@@ -47652,7 +47672,7 @@
47652
47672
  "tags": [
47653
47673
  "ad-agency"
47654
47674
  ],
47655
- "description": "Returns the request with its history. 404 when it does not exist or the caller cannot see it.",
47675
+ "description": "Returns the request with its history. 404 when it does not exist or the caller cannot see it. The workspace is the one of the request when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, the caller's primary workspace).",
47656
47676
  "parameters": [
47657
47677
  {
47658
47678
  "schema": {
@@ -48270,7 +48290,7 @@
48270
48290
  "tags": [
48271
48291
  "ad-agency"
48272
48292
  ],
48273
- "description": "Asks to share the ad account with partners of the workspace, or to stop sharing it. A new partner can be added inside the request. Whoever works on the account can ask (403 `AD_AGENCY_FORBIDDEN` otherwise). One change at a time per account (409 `AD_AGENCY_PARTNER_CHANGE_OPEN`). The same `submissionKey` sent again returns the request already created (200).",
48293
+ "description": "Asks to share the ad account with partners of the workspace, or to stop sharing it. A new partner can be added inside the request. Whoever works on the account can ask (403 `AD_AGENCY_FORBIDDEN` otherwise). One change at a time per account (409 `AD_AGENCY_PARTNER_CHANGE_OPEN`). The same `submissionKey` sent again returns the request already created (200). The workspace is the one of the workspace the ad account is delivered to when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
48274
48294
  "requestBody": {
48275
48295
  "required": true,
48276
48296
  "content": {
@@ -49291,7 +49311,7 @@
49291
49311
  "tags": [
49292
49312
  "ad-agency"
49293
49313
  ],
49294
- "description": "Returns the request with its history. 404 when it does not exist or the caller cannot see it.",
49314
+ "description": "Returns the request with its history. 404 when it does not exist or the caller cannot see it. The workspace is the one of the request when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, the caller's primary workspace).",
49295
49315
  "parameters": [
49296
49316
  {
49297
49317
  "schema": {
@@ -49873,7 +49893,7 @@
49873
49893
  "tags": [
49874
49894
  "ad-agency"
49875
49895
  ],
49876
- "description": "Adds budget to up to 50 ad accounts of the workspace in one submission: one request per account, all or none. On a `standard` wallet the amounts are taken from the wallet balance at once and come back if a request is rejected; a `spending` wallet pays for the spend as it happens, so a top-up only raises the spend cap, and is refused while the balance is below the credit line of the wallet (409 `AD_AGENCY_CREDIT_LIMIT`). There is no fee. The accounts must be active, in Wevion and on the platform at its last reading: `ACTIVE` on Meta, only `STATUS_ENABLE` on TikTok, where a limited account (`STATUS_LIMIT`) gets no topup (409 `AD_AGENCY_ACCOUNT_NOT_ACTIVE`; an account never read, or on a platform with no data source, passes) and, on a `standard` wallet, in the wallet currency (409 `AD_AGENCY_CURRENCY_MISMATCH`), with no other topup or topdown in progress (409 `AD_AGENCY_MONEY_REQUEST_OPEN`), with a spend cap Wevion knows, read from the platform when the account was delivered: the request asks the executor for the absolute cap to reach (409 `AD_AGENCY_SPEND_CAP_UNKNOWN`), and with room in their spend cap changes of the last 24 hours: Meta allows only a few a day, so each account has a pool of slots set in the backoffice, a top-up takes 1 and a top-down 2, and a rejected request gives its slots back (409 `AD_AGENCY_SPEND_CAP_LIMIT`), and on a `standard` wallet the balance must cover them all (409 `AD_AGENCY_INSUFFICIENT_BALANCE`). Needs the `topup` permission and access to every account, unless the caller governs the workspace (403 `AD_AGENCY_FORBIDDEN`). The same `submissionKey` sent again returns the requests already created (200).",
49896
+ "description": "Adds budget to up to 50 ad accounts of the workspace in one submission: one request per account, all or none. On a `standard` wallet the amounts are taken from the wallet balance at once and come back if a request is rejected; a `spending` wallet pays for the spend as it happens, so a top-up only raises the spend cap, and is refused while the balance is below the credit line of the wallet (409 `AD_AGENCY_CREDIT_LIMIT`). There is no fee. The accounts must be active, in Wevion and on the platform at its last reading: `ACTIVE` on Meta, only `STATUS_ENABLE` on TikTok, where a limited account (`STATUS_LIMIT`) gets no topup (409 `AD_AGENCY_ACCOUNT_NOT_ACTIVE`; an account never read, or on a platform with no data source, passes) and, on a `standard` wallet, in the wallet currency (409 `AD_AGENCY_CURRENCY_MISMATCH`), with no other topup or topdown in progress (409 `AD_AGENCY_MONEY_REQUEST_OPEN`), with a spend cap Wevion knows, read from the platform when the account was delivered: the request asks the executor for the absolute cap to reach (409 `AD_AGENCY_SPEND_CAP_UNKNOWN`), and with room in their spend cap changes of the last 24 hours: Meta allows only a few a day, so each account has a pool of slots set in the backoffice, a top-up takes 1 and a top-down 2, and a rejected request gives its slots back (409 `AD_AGENCY_SPEND_CAP_LIMIT`), and on a `standard` wallet the balance must cover them all (409 `AD_AGENCY_INSUFFICIENT_BALANCE`). Needs the `topup` permission and access to every account, unless the caller governs the workspace (403 `AD_AGENCY_FORBIDDEN`). The same `submissionKey` sent again returns the requests already created (200). The workspace is the one of the workspace the ad accounts are delivered to, all in the same one when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
49877
49897
  "requestBody": {
49878
49898
  "required": true,
49879
49899
  "content": {
@@ -50781,7 +50801,7 @@
50781
50801
  "tags": [
50782
50802
  "ad-agency"
50783
50803
  ],
50784
- "description": "Returns the request with its history. 404 when it does not exist or the caller cannot see it.",
50804
+ "description": "Returns the request with its history. 404 when it does not exist or the caller cannot see it. The workspace is the one of the request when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, the caller's primary workspace).",
50785
50805
  "parameters": [
50786
50806
  {
50787
50807
  "schema": {
@@ -51337,7 +51357,7 @@
51337
51357
  "tags": [
51338
51358
  "ad-agency"
51339
51359
  ],
51340
- "description": "Takes the unspent budget back from up to 50 ad accounts of the workspace in one submission: one request per account, all or none. On a `standard` wallet what goes back to the wallet is known when the request is completed, from the spend of the workspace on the account; a `spending` wallet pays for the spend as it happens, so its top-down only stops the account and gives nothing back. On a `standard` wallet the accounts must be in the wallet currency (409 `AD_AGENCY_CURRENCY_MISMATCH`), with no other topup or topdown in progress (409 `AD_AGENCY_MONEY_REQUEST_OPEN`), with a spend cap Wevion knows, read from the platform when the account was delivered: the request asks the executor for the absolute cap to reach (409 `AD_AGENCY_SPEND_CAP_UNKNOWN`), and with room in their spend cap changes of the last 24 hours: Meta allows only a few a day, so each account has a pool of slots set in the backoffice, a top-up takes 1 and a top-down 2, and a rejected request gives its slots back (409 `AD_AGENCY_SPEND_CAP_LIMIT`). Needs the `topdown` permission and access to every account, unless the caller governs the workspace (403 `AD_AGENCY_FORBIDDEN`). The same `submissionKey` sent again returns the requests already created (200).",
51360
+ "description": "Takes the unspent budget back from up to 50 ad accounts of the workspace in one submission: one request per account, all or none. On a `standard` wallet what goes back to the wallet is known when the request is completed, from the spend of the workspace on the account; a `spending` wallet pays for the spend as it happens, so its top-down only stops the account and gives nothing back. On a `standard` wallet the accounts must be in the wallet currency (409 `AD_AGENCY_CURRENCY_MISMATCH`), with no other topup or topdown in progress (409 `AD_AGENCY_MONEY_REQUEST_OPEN`), with a spend cap Wevion knows, read from the platform when the account was delivered: the request asks the executor for the absolute cap to reach (409 `AD_AGENCY_SPEND_CAP_UNKNOWN`), and with room in their spend cap changes of the last 24 hours: Meta allows only a few a day, so each account has a pool of slots set in the backoffice, a top-up takes 1 and a top-down 2, and a rejected request gives its slots back (409 `AD_AGENCY_SPEND_CAP_LIMIT`). Needs the `topdown` permission and access to every account, unless the caller governs the workspace (403 `AD_AGENCY_FORBIDDEN`). The same `submissionKey` sent again returns the requests already created (200). The workspace is the one of the workspace the ad accounts are delivered to, all in the same one when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, 400 `SCOPE_TEAM_REQUIRED`).",
51341
51361
  "requestBody": {
51342
51362
  "required": true,
51343
51363
  "content": {
@@ -52328,7 +52348,7 @@
52328
52348
  "tags": [
52329
52349
  "ad-agency"
52330
52350
  ],
52331
- "description": "Returns the request with its history. 404 when it does not exist or the caller cannot see it.",
52351
+ "description": "Returns the request with its history. 404 when it does not exist or the caller cannot see it. The workspace is the one of the request when it names exactly one, in the organization of the selected workspace or scope: it wins over `x-team-id` and the active team scope. Otherwise it is the one in `x-team-id` or the active team scope (without one, the caller's primary workspace).",
52332
52352
  "parameters": [
52333
52353
  {
52334
52354
  "schema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wevion/cli",
3
- "version": "1.0.4656",
3
+ "version": "1.0.4658",
4
4
  "description": "Wevion API command-line interface — generated from the public OpenAPI spec",
5
5
  "type": "module",
6
6
  "bin": {