@apostra/sdk 0.38.0 → 0.39.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.
@@ -1,8 +1,27 @@
1
1
  // Generated. Do not edit.
2
- export const version = '0.38.0';
2
+ export const version = '0.39.0';
3
3
  export const baseUrl = "https://api.apostra.com/api/v3";
4
4
  export const m2mTokenUrl = "https://identity.scope3.com/oauth2/token";
5
5
  export const operations = {
6
+ "confirm_payment_authority": {
7
+ "path": "/tools/confirm_payment_authority",
8
+ "method": "POST",
9
+ "body": true,
10
+ "binary": false,
11
+ "idempotencyKey": true,
12
+ "parameters": [],
13
+ "security": [
14
+ {
15
+ "apiKeyAuth": []
16
+ },
17
+ {
18
+ "m2mOAuth": [
19
+ "interchange:write"
20
+ ]
21
+ }
22
+ ],
23
+ "summary": "Issue the hosted card-capture link for a token from request_payment_authority. Give the link to the cardholder; cards stay off MCP."
24
+ },
6
25
  "downloadV3PublicDocumentRevision": {
7
26
  "path": "/documents/{documentId}/revisions/{revisionId}/download",
8
27
  "method": "GET",
@@ -225,7 +244,7 @@ export const operations = {
225
244
  ]
226
245
  }
227
246
  ],
228
- "summary": "Current account, state, blockers, exact fixes, and reachable accounts. For seller demand, use it to tell whether readiness stops requests before source calls; read before diagnosing source health, empty responses, or demand."
247
+ "summary": "Current account, state, blockers, exact fixes, and reachable accounts. For seller demand, use it to tell whether readiness stops requests before source calls; read before diagnosing source health, empty responses, or demand. A Developer account adds each agent's stage, blocker, and next call."
229
248
  },
230
249
  "open_advertisers_page": {
231
250
  "path": "/tools/open_advertisers_page",
@@ -246,6 +265,25 @@ export const operations = {
246
265
  ],
247
266
  "summary": "Open the Advertisers Page: every advertiser with its campaign and draft counts and one next action each. Use it for \"show my advertisers\" or \"where do I start\"; the Page self-fetches. To add or set up an advertiser, pass intent: \"add\". For a text answer use search(kind: \"advertiser\")."
248
267
  },
268
+ "open_agent_certification_page": {
269
+ "path": "/tools/open_agent_certification_page",
270
+ "method": "POST",
271
+ "body": true,
272
+ "binary": false,
273
+ "idempotencyKey": false,
274
+ "parameters": [],
275
+ "security": [
276
+ {
277
+ "apiKeyAuth": []
278
+ },
279
+ {
280
+ "m2mOAuth": [
281
+ "interchange:read"
282
+ ]
283
+ }
284
+ ],
285
+ "summary": "Open one agent’s Test & certify Page: live certification per use case, recent test runs, AdCP 4.0 readiness and capability declarations. Read-only."
286
+ },
249
287
  "open_agent_page": {
250
288
  "path": "/tools/open_agent_page",
251
289
  "method": "POST",
@@ -259,12 +297,50 @@ export const operations = {
259
297
  },
260
298
  {
261
299
  "m2mOAuth": [
262
- "interchange:admin"
300
+ "interchange:read"
263
301
  ]
264
302
  }
265
303
  ],
266
304
  "summary": "Open one agent owned by this Developer account."
267
305
  },
306
+ "open_agent_sources_page": {
307
+ "path": "/tools/open_agent_sources_page",
308
+ "method": "POST",
309
+ "body": true,
310
+ "binary": false,
311
+ "idempotencyKey": false,
312
+ "parameters": [],
313
+ "security": [
314
+ {
315
+ "apiKeyAuth": []
316
+ },
317
+ {
318
+ "m2mOAuth": [
319
+ "interchange:read"
320
+ ]
321
+ }
322
+ ],
323
+ "summary": "Open one agent’s Inventory sources Page: the inventory sources it powers and the health of each. Read-only."
324
+ },
325
+ "open_agent_webhooks_page": {
326
+ "path": "/tools/open_agent_webhooks_page",
327
+ "method": "POST",
328
+ "body": true,
329
+ "binary": false,
330
+ "idempotencyKey": false,
331
+ "parameters": [],
332
+ "security": [
333
+ {
334
+ "apiKeyAuth": []
335
+ },
336
+ {
337
+ "m2mOAuth": [
338
+ "interchange:read"
339
+ ]
340
+ }
341
+ ],
342
+ "summary": "Open one agent’s Webhooks Page: its recent inbound webhook outcomes, each refusal with its reason. Read-only."
343
+ },
268
344
  "open_agents_page": {
269
345
  "path": "/tools/open_agents_page",
270
346
  "method": "POST",
@@ -278,7 +354,7 @@ export const operations = {
278
354
  },
279
355
  {
280
356
  "m2mOAuth": [
281
- "interchange:admin"
357
+ "interchange:read"
282
358
  ]
283
359
  }
284
360
  ],
@@ -358,7 +434,7 @@ export const operations = {
358
434
  ]
359
435
  }
360
436
  ],
361
- "summary": "Open the buyer Media Partners Page. Optionally scope to an advertiser or seller; connectionAction \"connect\" opens that media partner at connection setup without mutating until the user confirms."
437
+ "summary": "Open the buyer Media Partners Page. Optionally scope to an advertiser or seller; connectionAction \"connect\" opens that media partner at connection setup without mutating until the user confirms. Replaced by open_media_partners_page, which opens the same Page."
362
438
  },
363
439
  "open_creative_engines_page": {
364
440
  "path": "/tools/open_creative_engines_page",
@@ -398,6 +474,25 @@ export const operations = {
398
474
  ],
399
475
  "summary": "Open Creative Library. Use search for a plain object answer. Composer needs campaignId; assembly needs no Creative Engine. To save a draft, use exactly one format: a canonical format such as image, hosted video, or hosted audio, or a seller format."
400
476
  },
477
+ "open_developer_home": {
478
+ "path": "/tools/open_developer_home",
479
+ "method": "POST",
480
+ "body": true,
481
+ "binary": false,
482
+ "idempotencyKey": false,
483
+ "parameters": [],
484
+ "security": [
485
+ {
486
+ "apiKeyAuth": []
487
+ },
488
+ {
489
+ "m2mOAuth": [
490
+ "interchange:read"
491
+ ]
492
+ }
493
+ ],
494
+ "summary": "Open the Developer home for this Developer account: its agents, their stages and what to do next."
495
+ },
401
496
  "open_media_buys_page": {
402
497
  "path": "/tools/open_media_buys_page",
403
498
  "method": "POST",
@@ -415,7 +510,26 @@ export const operations = {
415
510
  ]
416
511
  }
417
512
  ],
418
- "summary": "Open the Seller Media Buys Page. Optionally focus one seller-owned account relationship and its buys or creatives; the Page self-fetches."
513
+ "summary": "Open the Seller Media Buys Page. Optionally focus one account relationship or seller account mapping (not both) and its buys or creatives; the Page self-fetches."
514
+ },
515
+ "open_media_partners_page": {
516
+ "path": "/tools/open_media_partners_page",
517
+ "method": "POST",
518
+ "body": true,
519
+ "binary": false,
520
+ "idempotencyKey": false,
521
+ "parameters": [],
522
+ "security": [
523
+ {
524
+ "apiKeyAuth": []
525
+ },
526
+ {
527
+ "m2mOAuth": [
528
+ "interchange:read"
529
+ ]
530
+ }
531
+ ],
532
+ "summary": "Open the buyer Media Partners Page. Optionally scope to an advertiser or seller; connectionAction \"connect\" opens that media partner at connection setup without mutating until the user confirms."
419
533
  },
420
534
  "open_page": {
421
535
  "path": "/tools/open_page",
@@ -434,7 +548,7 @@ export const operations = {
434
548
  ]
435
549
  }
436
550
  ],
437
- "summary": "Open a compatibility Page. source_diagnostics can create or attach the Agent. External hosts may return text. Credentials and authority changes remain human ceremonies."
551
+ "summary": "Open a compatibility Page. Owners create or attach the Agent in source_diagnostics. External hosts may return text. Credentials and authority changes remain human ceremonies."
438
552
  },
439
553
  "open_proposal_pass": {
440
554
  "path": "/tools/open_proposal_pass",
@@ -510,7 +624,7 @@ export const operations = {
510
624
  ]
511
625
  }
512
626
  ],
513
- "summary": "Rechecks one external sales-agent source with no-spend get_products. Returns evidence IDs and seller readiness; no source configuration or media buy."
627
+ "summary": "Rechecks one external sales-agent source with no-spend get_products and, if it publishes one, a catalog refresh. Returns each check, findings still open, evidence IDs and readiness; no source configuration or media buy."
514
628
  },
515
629
  "request_buyer_child_account": {
516
630
  "path": "/tools/request_buyer_child_account",
@@ -532,6 +646,25 @@ export const operations = {
532
646
  ],
533
647
  "summary": "Request a Buyer child under the selected Organization. Nothing is created until an Organization administrator approves it on our site; the result is approval_required with a link to show the person. Repeat with the same idempotencyKey and name for the outcome."
534
648
  },
649
+ "request_payment_authority": {
650
+ "path": "/tools/request_payment_authority",
651
+ "method": "POST",
652
+ "body": true,
653
+ "binary": false,
654
+ "idempotencyKey": true,
655
+ "parameters": [],
656
+ "security": [
657
+ {
658
+ "apiKeyAuth": []
659
+ },
660
+ {
661
+ "m2mOAuth": [
662
+ "interchange:write"
663
+ ]
664
+ }
665
+ ],
666
+ "summary": "Stage a card handoff for the organization and return a confirmation token. No link is issued until confirm_payment_authority."
667
+ },
535
668
  "request_proposals": {
536
669
  "path": "/tools/request_proposals",
537
670
  "method": "POST",
@@ -550,7 +683,7 @@ export const operations = {
550
683
  ]
551
684
  }
552
685
  ],
553
- "summary": "Request quotes/products. With a MediaBuy cap, only quotes confirming the exact cap are usable. sellerIds fail closed; campaign-only lists use eligible subset. Broadcast needs confirmBroadcast:true."
686
+ "summary": "Request quotes/products. With a MediaBuy cap, only quotes confirming the exact cap are usable. sellerIds and sellerAccountIds fail closed; campaign-only lists use eligible subset. Broadcast needs confirmBroadcast:true."
554
687
  },
555
688
  "request_seller_reporting_update": {
556
689
  "path": "/tools/request_seller_reporting_update",
@@ -607,7 +740,7 @@ export const operations = {
607
740
  ]
608
741
  }
609
742
  ],
610
- "summary": "Rename an existing direct child Account or update settings.company. Never provisions, archives, or changes owners or members; use Account settings for access changes."
743
+ "summary": "Create a child Account (omit id), rename one, or archive or restore it (isArchived). Each is recorded for website approval by an Organization administrator; repeat with the same idempotencyKey for the outcome. dryRun previews. settings.company saves at once. Never changes owners or members."
611
744
  },
612
745
  "save_advertiser": {
613
746
  "path": "/tools/save_advertiser",
@@ -628,25 +761,6 @@ export const operations = {
628
761
  ],
629
762
  "summary": "Save an advertiser or mappings. Buyer privateNotes: owning Buyer Account only; /v3/manage-ads#private-advertiser-notes. Confirm markets/channels (footprintProposal); needs_input=ask; never recreate for currency. Brand: identityContract:confirmed-v1; preview: resolveBrand; read advertiser.brandRef."
630
763
  },
631
- "save_advertiser_access": {
632
- "path": "/tools/save_advertiser_access",
633
- "method": "POST",
634
- "body": true,
635
- "binary": false,
636
- "idempotencyKey": true,
637
- "parameters": [],
638
- "security": [
639
- {
640
- "apiKeyAuth": []
641
- },
642
- {
643
- "m2mOAuth": [
644
- "interchange:admin"
645
- ]
646
- }
647
- ],
648
- "summary": "Invite a client to one of your advertisers, approve, suspend, reactivate, or revoke a client, or change a client's role. Read get kind advertiser_access first and use only what it offers. Needs an organization administrator signed in directly."
649
- },
650
764
  "save_advertiser_grant": {
651
765
  "path": "/tools/save_advertiser_grant",
652
766
  "method": "POST",
@@ -702,7 +816,7 @@ export const operations = {
702
816
  ]
703
817
  }
704
818
  ],
705
- "summary": "Save a Sales Agent mode, register an Agent, or update an owned Agent: rename it or say it is ready for certification. Select seller_save, developer_create, or developer_update."
819
+ "summary": "Confirm a Sales Agent product mode, register a Sales or Creative Agent, or update an owned Agent: rename it or allow certification buys. To connect from a URL, send agentUrl with dryRun: true, show what was read, then send it without dryRun. A connected agent is not yet verified as theirs."
706
820
  },
707
821
  "save_ask": {
708
822
  "path": "/tools/save_ask",
@@ -759,7 +873,7 @@ export const operations = {
759
873
  ]
760
874
  }
761
875
  ],
762
- "summary": "Accept Terms, set seller terms, or manage payment authority. Cards stay off MCP."
876
+ "summary": "Accept Terms, set the payment terms sellers are asked for, or accept a plan, answer its offer and change its renewal. Cards stay off MCP."
763
877
  },
764
878
  "save_business_rules": {
765
879
  "path": "/tools/save_business_rules",
@@ -797,7 +911,7 @@ export const operations = {
797
911
  ]
798
912
  }
799
913
  ],
800
- "summary": "Create or manage one buyer agent."
914
+ "summary": "Create a buyer agent, or with id make one change: name, advertiser access, lifecycle state, or credential handoff."
801
915
  },
802
916
  "save_buyer_operator": {
803
917
  "path": "/tools/save_buyer_operator",
@@ -836,7 +950,7 @@ export const operations = {
836
950
  ]
837
951
  }
838
952
  ],
839
- "summary": "Save a campaign. To create, send advertiserId and name; flight and budget are optional. Split inventory into media buys. Set desiredPhase: active to launch; omit confirmLaunch to preview. Cancellation is irreversible: desiredPhase: canceled cancels the campaign and every live media buy."
953
+ "summary": "Create: advertiserId/name; flight/budget optional. Receipts and launch previews show local/UTC times in the applicable IANA timezone. desiredPhase: active previews; confirmLaunch: true launches. Cancellation is irreversible: desiredPhase: canceled cancels the campaign and every live media buy."
840
954
  },
841
955
  "save_catalog": {
842
956
  "path": "/tools/save_catalog",
@@ -913,7 +1027,7 @@ export const operations = {
913
1027
  ]
914
1028
  }
915
1029
  ],
916
- "summary": "Save creative in advertiserId/campaignId with name, message, assets, clickUrl, social, sourceAssetRef/sourceAssets. Use exactly one format selector: formatKind/formatParams, creativeFormatId, formatOptionRef. Supplied content/assets only; generate new media (radio spots) via save_creative_session."
1030
+ "summary": "advertiserId/campaignId:name,message;assets/landing_page_url/social/sourceAssetRef/sourceAssets;Supplied content/assets only;generate new media (radio spots):save_creative_session;exactly one format selector:formatKind/formatParams,creativeFormatId/formatOptionRef;libraryRole:Buyer Account only."
917
1031
  },
918
1032
  "save_creative_collection": {
919
1033
  "path": "/tools/save_creative_collection",
@@ -951,7 +1065,7 @@ export const operations = {
951
1065
  ]
952
1066
  }
953
1067
  ],
954
- "summary": "Create image, video, or voice/audio variants from a brief (including radio spots). Scope: campaign/campaignId or advertiser/advertiserId."
1068
+ "summary": "Save a Creative Session for image, video, or voice/audio (including radio spots) from a brief: its draft, selected output, approval, or finalisation. It never generates; generate_variants does. To save an approved output to the Library, use save_creative with fromCreativeSessionOutput."
955
1069
  },
956
1070
  "save_dimension": {
957
1071
  "path": "/tools/save_dimension",
@@ -1029,7 +1143,7 @@ export const operations = {
1029
1143
  ]
1030
1144
  }
1031
1145
  ],
1032
- "summary": "Create or update where a seller's inventory comes from. Pass `id` to change an existing source, omit it to add one. Credentials are never passed here — a source that needs a secret comes back with the state and the page that collects it."
1146
+ "summary": "Create or update where a seller's inventory comes from. Pass `id` to change a source or omit it to add one. Pass only `agentId` or `adServer` to open the form that connects an agent or an ad server. Credentials are never passed here; a source that needs one returns the page that collects it."
1033
1147
  },
1034
1148
  "save_lesson": {
1035
1149
  "path": "/tools/save_lesson",
@@ -1048,7 +1162,7 @@ export const operations = {
1048
1162
  ]
1049
1163
  }
1050
1164
  ],
1051
- "summary": "Manage seller lessons. propose requires lesson; approve and retire require lessonId; preview requires lessonId and brief. Preserve seller words from a private Session note and ask if kind or scope is unclear."
1165
+ "summary": "Manage seller lessons in a seller account context; use switch_account first. propose requires lesson; approve and retire require lessonId; preview requires lessonId and brief. Preserve seller words from a private Session note and ask if kind or scope is unclear."
1052
1166
  },
1053
1167
  "save_library_request": {
1054
1168
  "path": "/tools/save_library_request",
@@ -1086,7 +1200,7 @@ export const operations = {
1086
1200
  ]
1087
1201
  }
1088
1202
  ],
1089
- "summary": "Register, revise, archive, restore, or reprocess seller Materials; manage candidate decisions and receipts; mark a slide, page, or sheet reusable only when it has no commercial figures (UNIT_NOT_REUSABLE_KIND rejects document containers, UNIT_CONTAINS_PRICING rejects priced units)."
1203
+ "summary": "Create or update seller Materials. Seller beta: preview, delete, Undo deletion, or Include again for one imported Library document. Delete archives it, excludes its source until Include again, and purges it after 30 days. https://docs.apostra.com/v3/delete-from-apostra"
1090
1204
  },
1091
1205
  "save_media_buy": {
1092
1206
  "path": "/tools/save_media_buy",
@@ -1163,7 +1277,7 @@ export const operations = {
1163
1277
  ]
1164
1278
  }
1165
1279
  ],
1166
- "summary": "Write how the seller sells. `active` creates and activates a new version in one step — no separate activate; the response names the version created and replaced. `pricing` replaces the whole fact list. `discounts` sets or removes brand/operator rules one by one. Halves never roll back each other."
1280
+ "summary": "Write selling guidance. `active` turns Playbook prose and its optional seller note into proposed Lessons; the active Playbook is unchanged. `pricing` replaces facts. `discounts` sets or removes brand/operator rules. Halves never roll back each other."
1167
1281
  },
1168
1282
  "save_property_list": {
1169
1283
  "path": "/tools/save_property_list",
@@ -1190,6 +1304,27 @@ export const operations = {
1190
1304
  "body": true,
1191
1305
  "binary": false,
1192
1306
  "idempotencyKey": true,
1307
+ "bodyKeyField": "clientRequestId",
1308
+ "parameters": [],
1309
+ "security": [
1310
+ {
1311
+ "apiKeyAuth": []
1312
+ },
1313
+ {
1314
+ "m2mOAuth": [
1315
+ "interchange:write"
1316
+ ]
1317
+ }
1318
+ ],
1319
+ "summary": "Save an RFP: create it from an origin, revise it with a new request, endorse or unendorse its response, or attach an imported response. A turn’s feedback, release, proposal files and outcome use save_rfp_turn."
1320
+ },
1321
+ "save_rfp_turn": {
1322
+ "path": "/tools/save_rfp_turn",
1323
+ "method": "POST",
1324
+ "body": true,
1325
+ "binary": false,
1326
+ "idempotencyKey": true,
1327
+ "bodyKeyField": "clientRequestId",
1193
1328
  "parameters": [],
1194
1329
  "security": [
1195
1330
  {
@@ -1201,7 +1336,7 @@ export const operations = {
1201
1336
  ]
1202
1337
  }
1203
1338
  ],
1204
- "summary": "Save RFPs and turns: imported origins, typed feedback, response pairs, endorsement, and proposal-file requests."
1339
+ "summary": "Change one RFP turn: release it, request or cancel a proposal file, append feedback, or record its outcome. One of these per call; revise, endorse and attach a response with save_rfp."
1205
1340
  },
1206
1341
  "save_seller": {
1207
1342
  "path": "/tools/save_seller",
@@ -1220,7 +1355,7 @@ export const operations = {
1220
1355
  ]
1221
1356
  }
1222
1357
  ],
1223
- "summary": "Save Seller identity, capabilities, Apostra listing, buyer-visible listing (mediaKit is a deprecated alias), Distribution's OpenAI challenge token, or a seller-controlled admission. Scope3 eligibility and Market Maker entitlements are read-only here. Read Distribution with get(kind:\"distribution\")."
1358
+ "summary": "Save Seller identity, capabilities, Apostra listing, buyer-visible listing (mediaKit is a deprecated alias), Distribution's OpenAI challenge token, an admission, or the intake hold. Scope3 eligibility and Market Maker entitlements are read-only here. Read Distribution with get(kind:\"distribution\")."
1224
1359
  },
1225
1360
  "save_signal": {
1226
1361
  "path": "/tools/save_signal",