@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,7 +1,21 @@
1
- export declare const version = "0.38.0";
1
+ export declare const version = "0.39.0";
2
2
  export declare const baseUrl = "https://api.apostra.com/api/v3";
3
3
  export declare const m2mTokenUrl = "https://identity.scope3.com/oauth2/token";
4
4
  export declare const operations: {
5
+ readonly confirm_payment_authority: {
6
+ readonly path: "/tools/confirm_payment_authority";
7
+ readonly method: "POST";
8
+ readonly body: true;
9
+ readonly binary: false;
10
+ readonly idempotencyKey: true;
11
+ readonly parameters: readonly [];
12
+ readonly security: readonly [{
13
+ readonly apiKeyAuth: readonly [];
14
+ }, {
15
+ readonly m2mOAuth: readonly ["interchange:write"];
16
+ }];
17
+ readonly summary: "Issue the hosted card-capture link for a token from request_payment_authority. Give the link to the cardholder; cards stay off MCP.";
18
+ };
5
19
  readonly downloadV3PublicDocumentRevision: {
6
20
  readonly path: "/documents/{documentId}/revisions/{revisionId}/download";
7
21
  readonly method: "GET";
@@ -164,7 +178,7 @@ export declare const operations: {
164
178
  }, {
165
179
  readonly m2mOAuth: readonly ["interchange:read"];
166
180
  }];
167
- readonly 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.";
181
+ readonly 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.";
168
182
  };
169
183
  readonly open_advertisers_page: {
170
184
  readonly path: "/tools/open_advertisers_page";
@@ -180,6 +194,20 @@ export declare const operations: {
180
194
  }];
181
195
  readonly 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\").";
182
196
  };
197
+ readonly open_agent_certification_page: {
198
+ readonly path: "/tools/open_agent_certification_page";
199
+ readonly method: "POST";
200
+ readonly body: true;
201
+ readonly binary: false;
202
+ readonly idempotencyKey: false;
203
+ readonly parameters: readonly [];
204
+ readonly security: readonly [{
205
+ readonly apiKeyAuth: readonly [];
206
+ }, {
207
+ readonly m2mOAuth: readonly ["interchange:read"];
208
+ }];
209
+ readonly 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.";
210
+ };
183
211
  readonly open_agent_page: {
184
212
  readonly path: "/tools/open_agent_page";
185
213
  readonly method: "POST";
@@ -190,10 +218,38 @@ export declare const operations: {
190
218
  readonly security: readonly [{
191
219
  readonly apiKeyAuth: readonly [];
192
220
  }, {
193
- readonly m2mOAuth: readonly ["interchange:admin"];
221
+ readonly m2mOAuth: readonly ["interchange:read"];
194
222
  }];
195
223
  readonly summary: "Open one agent owned by this Developer account.";
196
224
  };
225
+ readonly open_agent_sources_page: {
226
+ readonly path: "/tools/open_agent_sources_page";
227
+ readonly method: "POST";
228
+ readonly body: true;
229
+ readonly binary: false;
230
+ readonly idempotencyKey: false;
231
+ readonly parameters: readonly [];
232
+ readonly security: readonly [{
233
+ readonly apiKeyAuth: readonly [];
234
+ }, {
235
+ readonly m2mOAuth: readonly ["interchange:read"];
236
+ }];
237
+ readonly summary: "Open one agent’s Inventory sources Page: the inventory sources it powers and the health of each. Read-only.";
238
+ };
239
+ readonly open_agent_webhooks_page: {
240
+ readonly path: "/tools/open_agent_webhooks_page";
241
+ readonly method: "POST";
242
+ readonly body: true;
243
+ readonly binary: false;
244
+ readonly idempotencyKey: false;
245
+ readonly parameters: readonly [];
246
+ readonly security: readonly [{
247
+ readonly apiKeyAuth: readonly [];
248
+ }, {
249
+ readonly m2mOAuth: readonly ["interchange:read"];
250
+ }];
251
+ readonly summary: "Open one agent’s Webhooks Page: its recent inbound webhook outcomes, each refusal with its reason. Read-only.";
252
+ };
197
253
  readonly open_agents_page: {
198
254
  readonly path: "/tools/open_agents_page";
199
255
  readonly method: "POST";
@@ -204,7 +260,7 @@ export declare const operations: {
204
260
  readonly security: readonly [{
205
261
  readonly apiKeyAuth: readonly [];
206
262
  }, {
207
- readonly m2mOAuth: readonly ["interchange:admin"];
263
+ readonly m2mOAuth: readonly ["interchange:read"];
208
264
  }];
209
265
  readonly summary: "Open Build an agent for this Developer account.";
210
266
  };
@@ -262,7 +318,7 @@ export declare const operations: {
262
318
  }, {
263
319
  readonly m2mOAuth: readonly ["interchange:read"];
264
320
  }];
265
- readonly 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.";
321
+ readonly 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.";
266
322
  };
267
323
  readonly open_creative_engines_page: {
268
324
  readonly path: "/tools/open_creative_engines_page";
@@ -292,6 +348,20 @@ export declare const operations: {
292
348
  }];
293
349
  readonly 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.";
294
350
  };
351
+ readonly open_developer_home: {
352
+ readonly path: "/tools/open_developer_home";
353
+ readonly method: "POST";
354
+ readonly body: true;
355
+ readonly binary: false;
356
+ readonly idempotencyKey: false;
357
+ readonly parameters: readonly [];
358
+ readonly security: readonly [{
359
+ readonly apiKeyAuth: readonly [];
360
+ }, {
361
+ readonly m2mOAuth: readonly ["interchange:read"];
362
+ }];
363
+ readonly summary: "Open the Developer home for this Developer account: its agents, their stages and what to do next.";
364
+ };
295
365
  readonly open_media_buys_page: {
296
366
  readonly path: "/tools/open_media_buys_page";
297
367
  readonly method: "POST";
@@ -304,7 +374,21 @@ export declare const operations: {
304
374
  }, {
305
375
  readonly m2mOAuth: readonly ["interchange:read"];
306
376
  }];
307
- readonly summary: "Open the Seller Media Buys Page. Optionally focus one seller-owned account relationship and its buys or creatives; the Page self-fetches.";
377
+ readonly 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.";
378
+ };
379
+ readonly open_media_partners_page: {
380
+ readonly path: "/tools/open_media_partners_page";
381
+ readonly method: "POST";
382
+ readonly body: true;
383
+ readonly binary: false;
384
+ readonly idempotencyKey: false;
385
+ readonly parameters: readonly [];
386
+ readonly security: readonly [{
387
+ readonly apiKeyAuth: readonly [];
388
+ }, {
389
+ readonly m2mOAuth: readonly ["interchange:read"];
390
+ }];
391
+ readonly 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.";
308
392
  };
309
393
  readonly open_page: {
310
394
  readonly path: "/tools/open_page";
@@ -318,7 +402,7 @@ export declare const operations: {
318
402
  }, {
319
403
  readonly m2mOAuth: readonly ["interchange:read"];
320
404
  }];
321
- readonly 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.";
405
+ readonly 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.";
322
406
  };
323
407
  readonly open_proposal_pass: {
324
408
  readonly path: "/tools/open_proposal_pass";
@@ -374,7 +458,7 @@ export declare const operations: {
374
458
  }, {
375
459
  readonly m2mOAuth: readonly ["interchange:write"];
376
460
  }];
377
- readonly summary: "Rechecks one external sales-agent source with no-spend get_products. Returns evidence IDs and seller readiness; no source configuration or media buy.";
461
+ readonly 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.";
378
462
  };
379
463
  readonly request_buyer_child_account: {
380
464
  readonly path: "/tools/request_buyer_child_account";
@@ -391,6 +475,20 @@ export declare const operations: {
391
475
  }];
392
476
  readonly 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.";
393
477
  };
478
+ readonly request_payment_authority: {
479
+ readonly path: "/tools/request_payment_authority";
480
+ readonly method: "POST";
481
+ readonly body: true;
482
+ readonly binary: false;
483
+ readonly idempotencyKey: true;
484
+ readonly parameters: readonly [];
485
+ readonly security: readonly [{
486
+ readonly apiKeyAuth: readonly [];
487
+ }, {
488
+ readonly m2mOAuth: readonly ["interchange:write"];
489
+ }];
490
+ readonly summary: "Stage a card handoff for the organization and return a confirmation token. No link is issued until confirm_payment_authority.";
491
+ };
394
492
  readonly request_proposals: {
395
493
  readonly path: "/tools/request_proposals";
396
494
  readonly method: "POST";
@@ -404,7 +502,7 @@ export declare const operations: {
404
502
  }, {
405
503
  readonly m2mOAuth: readonly ["interchange:write"];
406
504
  }];
407
- readonly 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.";
505
+ readonly 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.";
408
506
  };
409
507
  readonly request_seller_reporting_update: {
410
508
  readonly path: "/tools/request_seller_reporting_update";
@@ -446,7 +544,7 @@ export declare const operations: {
446
544
  }, {
447
545
  readonly m2mOAuth: readonly ["interchange:admin"];
448
546
  }];
449
- readonly 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.";
547
+ readonly 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.";
450
548
  };
451
549
  readonly save_advertiser: {
452
550
  readonly path: "/tools/save_advertiser";
@@ -462,20 +560,6 @@ export declare const operations: {
462
560
  }];
463
561
  readonly 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.";
464
562
  };
465
- readonly save_advertiser_access: {
466
- readonly path: "/tools/save_advertiser_access";
467
- readonly method: "POST";
468
- readonly body: true;
469
- readonly binary: false;
470
- readonly idempotencyKey: true;
471
- readonly parameters: readonly [];
472
- readonly security: readonly [{
473
- readonly apiKeyAuth: readonly [];
474
- }, {
475
- readonly m2mOAuth: readonly ["interchange:admin"];
476
- }];
477
- readonly 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.";
478
- };
479
563
  readonly save_advertiser_grant: {
480
564
  readonly path: "/tools/save_advertiser_grant";
481
565
  readonly method: "POST";
@@ -516,7 +600,7 @@ export declare const operations: {
516
600
  }, {
517
601
  readonly m2mOAuth: readonly ["interchange:write"];
518
602
  }];
519
- readonly 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.";
603
+ readonly 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.";
520
604
  };
521
605
  readonly save_ask: {
522
606
  readonly path: "/tools/save_ask";
@@ -558,7 +642,7 @@ export declare const operations: {
558
642
  }, {
559
643
  readonly m2mOAuth: readonly ["interchange:read"];
560
644
  }];
561
- readonly summary: "Accept Terms, set seller terms, or manage payment authority. Cards stay off MCP.";
645
+ readonly 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.";
562
646
  };
563
647
  readonly save_business_rules: {
564
648
  readonly path: "/tools/save_business_rules";
@@ -586,7 +670,7 @@ export declare const operations: {
586
670
  }, {
587
671
  readonly m2mOAuth: readonly ["interchange:admin"];
588
672
  }];
589
- readonly summary: "Create or manage one buyer agent.";
673
+ readonly summary: "Create a buyer agent, or with id make one change: name, advertiser access, lifecycle state, or credential handoff.";
590
674
  };
591
675
  readonly save_buyer_operator: {
592
676
  readonly path: "/tools/save_buyer_operator";
@@ -615,7 +699,7 @@ export declare const operations: {
615
699
  }, {
616
700
  readonly m2mOAuth: readonly ["interchange:write"];
617
701
  }];
618
- readonly 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.";
702
+ readonly 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.";
619
703
  };
620
704
  readonly save_catalog: {
621
705
  readonly path: "/tools/save_catalog";
@@ -672,7 +756,7 @@ export declare const operations: {
672
756
  }, {
673
757
  readonly m2mOAuth: readonly ["interchange:write"];
674
758
  }];
675
- readonly 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.";
759
+ readonly 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.";
676
760
  };
677
761
  readonly save_creative_collection: {
678
762
  readonly path: "/tools/save_creative_collection";
@@ -700,7 +784,7 @@ export declare const operations: {
700
784
  }, {
701
785
  readonly m2mOAuth: readonly ["interchange:write"];
702
786
  }];
703
- readonly summary: "Create image, video, or voice/audio variants from a brief (including radio spots). Scope: campaign/campaignId or advertiser/advertiserId.";
787
+ readonly 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.";
704
788
  };
705
789
  readonly save_dimension: {
706
790
  readonly path: "/tools/save_dimension";
@@ -758,7 +842,7 @@ export declare const operations: {
758
842
  }, {
759
843
  readonly m2mOAuth: readonly ["interchange:write"];
760
844
  }];
761
- readonly 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.";
845
+ readonly 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.";
762
846
  };
763
847
  readonly save_lesson: {
764
848
  readonly path: "/tools/save_lesson";
@@ -772,7 +856,7 @@ export declare const operations: {
772
856
  }, {
773
857
  readonly m2mOAuth: readonly ["interchange:write"];
774
858
  }];
775
- readonly 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.";
859
+ readonly 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.";
776
860
  };
777
861
  readonly save_library_request: {
778
862
  readonly path: "/tools/save_library_request";
@@ -800,7 +884,7 @@ export declare const operations: {
800
884
  }, {
801
885
  readonly m2mOAuth: readonly ["interchange:write"];
802
886
  }];
803
- readonly 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).";
887
+ readonly 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";
804
888
  };
805
889
  readonly save_media_buy: {
806
890
  readonly path: "/tools/save_media_buy";
@@ -857,7 +941,7 @@ export declare const operations: {
857
941
  }, {
858
942
  readonly m2mOAuth: readonly ["interchange:write"];
859
943
  }];
860
- readonly 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.";
944
+ readonly 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.";
861
945
  };
862
946
  readonly save_property_list: {
863
947
  readonly path: "/tools/save_property_list";
@@ -879,13 +963,29 @@ export declare const operations: {
879
963
  readonly body: true;
880
964
  readonly binary: false;
881
965
  readonly idempotencyKey: true;
966
+ readonly bodyKeyField: "clientRequestId";
967
+ readonly parameters: readonly [];
968
+ readonly security: readonly [{
969
+ readonly apiKeyAuth: readonly [];
970
+ }, {
971
+ readonly m2mOAuth: readonly ["interchange:write"];
972
+ }];
973
+ readonly 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.";
974
+ };
975
+ readonly save_rfp_turn: {
976
+ readonly path: "/tools/save_rfp_turn";
977
+ readonly method: "POST";
978
+ readonly body: true;
979
+ readonly binary: false;
980
+ readonly idempotencyKey: true;
981
+ readonly bodyKeyField: "clientRequestId";
882
982
  readonly parameters: readonly [];
883
983
  readonly security: readonly [{
884
984
  readonly apiKeyAuth: readonly [];
885
985
  }, {
886
986
  readonly m2mOAuth: readonly ["interchange:write"];
887
987
  }];
888
- readonly summary: "Save RFPs and turns: imported origins, typed feedback, response pairs, endorsement, and proposal-file requests.";
988
+ readonly 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.";
889
989
  };
890
990
  readonly save_seller: {
891
991
  readonly path: "/tools/save_seller";
@@ -899,7 +999,7 @@ export declare const operations: {
899
999
  }, {
900
1000
  readonly m2mOAuth: readonly ["interchange:write"];
901
1001
  }];
902
- readonly 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\").";
1002
+ readonly 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\").";
903
1003
  };
904
1004
  readonly save_signal: {
905
1005
  readonly path: "/tools/save_signal";