@apostra/sdk 0.37.0 → 0.38.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.
- package/dist/generated/client.d.ts +63 -29
- package/dist/generated/client.js +40 -22
- package/dist/generated/metadata.d.ts +41 -12
- package/dist/generated/metadata.js +51 -12
- package/dist/generated/types.gen.d.ts +8943 -3865
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.38.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: {
|
|
@@ -36,7 +36,7 @@ export declare const operations: {
|
|
|
36
36
|
}, {
|
|
37
37
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
38
38
|
}];
|
|
39
|
-
readonly summary: "Generate
|
|
39
|
+
readonly summary: "Generate variants from a saved brief; use Creative Sessions for voice/audio, radio spots, and voiceovers. Send kind, scope, and variantAction; reuse actionKey only on retries.";
|
|
40
40
|
};
|
|
41
41
|
readonly get: {
|
|
42
42
|
readonly path: "/tools/get";
|
|
@@ -50,7 +50,7 @@ export declare const operations: {
|
|
|
50
50
|
}, {
|
|
51
51
|
readonly m2mOAuth: readonly ["interchange:read"];
|
|
52
52
|
}];
|
|
53
|
-
readonly summary: "Read one object by kind
|
|
53
|
+
readonly summary: "Read one object by kind and id, or an account singleton without id. Never guess ids. Campaign reads return targetingOverlay to verify before proposals. include adds detail only for kinds that serve it.";
|
|
54
54
|
};
|
|
55
55
|
readonly getV3PublicDocumentRevisionSections: {
|
|
56
56
|
readonly path: "/documents/{documentId}/revisions/{revisionId}/sections";
|
|
@@ -460,7 +460,21 @@ export declare const operations: {
|
|
|
460
460
|
}, {
|
|
461
461
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
462
462
|
}];
|
|
463
|
-
readonly summary: "Save an advertiser or
|
|
463
|
+
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
|
+
};
|
|
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.";
|
|
464
478
|
};
|
|
465
479
|
readonly save_advertiser_grant: {
|
|
466
480
|
readonly path: "/tools/save_advertiser_grant";
|
|
@@ -488,7 +502,7 @@ export declare const operations: {
|
|
|
488
502
|
}, {
|
|
489
503
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
490
504
|
}];
|
|
491
|
-
readonly summary: "
|
|
505
|
+
readonly summary: "Seller-only CRM notes for an exact brand × operator pair. Buyers use save_advertiser.privateNotes; see /v3/manage-ads#private-advertiser-notes. Effective discounts, routing, access and trust are read-only.";
|
|
492
506
|
};
|
|
493
507
|
readonly save_agent: {
|
|
494
508
|
readonly path: "/tools/save_agent";
|
|
@@ -502,7 +516,7 @@ export declare const operations: {
|
|
|
502
516
|
}, {
|
|
503
517
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
504
518
|
}];
|
|
505
|
-
readonly summary: "
|
|
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.";
|
|
506
520
|
};
|
|
507
521
|
readonly save_ask: {
|
|
508
522
|
readonly path: "/tools/save_ask";
|
|
@@ -572,7 +586,7 @@ export declare const operations: {
|
|
|
572
586
|
}, {
|
|
573
587
|
readonly m2mOAuth: readonly ["interchange:admin"];
|
|
574
588
|
}];
|
|
575
|
-
readonly summary: "Create
|
|
589
|
+
readonly summary: "Create or manage one buyer agent.";
|
|
576
590
|
};
|
|
577
591
|
readonly save_buyer_operator: {
|
|
578
592
|
readonly path: "/tools/save_buyer_operator";
|
|
@@ -601,7 +615,7 @@ export declare const operations: {
|
|
|
601
615
|
}, {
|
|
602
616
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
603
617
|
}];
|
|
604
|
-
readonly summary: "Save a campaign.
|
|
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.";
|
|
605
619
|
};
|
|
606
620
|
readonly save_catalog: {
|
|
607
621
|
readonly path: "/tools/save_catalog";
|
|
@@ -616,7 +630,7 @@ export declare const operations: {
|
|
|
616
630
|
}, {
|
|
617
631
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
618
632
|
}];
|
|
619
|
-
readonly summary: "Create or replace one
|
|
633
|
+
readonly summary: "Create or replace a catalog: type and exactly one of url (feed URL) or non-empty items are required. If missing, ask the buyer for the feed URL or items before calling. URL saves refetch the feed. To archive, set isArchived: true with identity only; type, url and items are not needed.";
|
|
620
634
|
};
|
|
621
635
|
readonly save_connection: {
|
|
622
636
|
readonly path: "/tools/save_connection";
|
|
@@ -694,6 +708,7 @@ export declare const operations: {
|
|
|
694
708
|
readonly body: true;
|
|
695
709
|
readonly binary: false;
|
|
696
710
|
readonly idempotencyKey: true;
|
|
711
|
+
readonly bodyKeyField: "idempotencyKey";
|
|
697
712
|
readonly parameters: readonly [];
|
|
698
713
|
readonly security: readonly [{
|
|
699
714
|
readonly apiKeyAuth: readonly [];
|
|
@@ -714,7 +729,7 @@ export declare const operations: {
|
|
|
714
729
|
}, {
|
|
715
730
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
716
731
|
}];
|
|
717
|
-
readonly summary: "
|
|
732
|
+
readonly summary: "Import native campaigns from Spotify Ads Manager or other platforms, including future-start campaigns, as read-only mirrors. Confirm ongoing sync first. No provider changes. /v3/import-existing-campaigns.";
|
|
718
733
|
};
|
|
719
734
|
readonly save_event_source: {
|
|
720
735
|
readonly path: "/tools/save_event_source";
|
|
@@ -745,6 +760,20 @@ export declare const operations: {
|
|
|
745
760
|
}];
|
|
746
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.";
|
|
747
762
|
};
|
|
763
|
+
readonly save_lesson: {
|
|
764
|
+
readonly path: "/tools/save_lesson";
|
|
765
|
+
readonly method: "POST";
|
|
766
|
+
readonly body: true;
|
|
767
|
+
readonly binary: false;
|
|
768
|
+
readonly idempotencyKey: true;
|
|
769
|
+
readonly parameters: readonly [];
|
|
770
|
+
readonly security: readonly [{
|
|
771
|
+
readonly apiKeyAuth: readonly [];
|
|
772
|
+
}, {
|
|
773
|
+
readonly m2mOAuth: readonly ["interchange:write"];
|
|
774
|
+
}];
|
|
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.";
|
|
776
|
+
};
|
|
748
777
|
readonly save_library_request: {
|
|
749
778
|
readonly path: "/tools/save_library_request";
|
|
750
779
|
readonly method: "POST";
|
|
@@ -814,7 +843,7 @@ export declare const operations: {
|
|
|
814
843
|
}, {
|
|
815
844
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
816
845
|
}];
|
|
817
|
-
readonly summary: "Create or update a notification subscription
|
|
846
|
+
readonly summary: "Create or update a notification subscription. Omit subscriptionId to create; managed subscriptions permit only mutable fields. Use save_integration for credentials when needed.";
|
|
818
847
|
};
|
|
819
848
|
readonly save_playbook: {
|
|
820
849
|
readonly path: "/tools/save_playbook";
|
|
@@ -842,7 +871,7 @@ export declare const operations: {
|
|
|
842
871
|
}, {
|
|
843
872
|
readonly m2mOAuth: readonly ["interchange:write"];
|
|
844
873
|
}];
|
|
845
|
-
readonly summary: "Create, update, archive, or AAO-check an advertiser property list. Check uses identifiers without saving. Search/get read saved lists.";
|
|
874
|
+
readonly summary: "Create, update, archive, restore, or AAO-check an advertiser property list. Check uses identifiers without saving. Search/get read saved lists.";
|
|
846
875
|
};
|
|
847
876
|
readonly save_rfp: {
|
|
848
877
|
readonly path: "/tools/save_rfp";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated. Do not edit.
|
|
2
|
-
export const version = '0.
|
|
2
|
+
export const version = '0.38.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 = {
|
|
@@ -50,7 +50,7 @@ export const operations = {
|
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
|
-
"summary": "Generate
|
|
53
|
+
"summary": "Generate variants from a saved brief; use Creative Sessions for voice/audio, radio spots, and voiceovers. Send kind, scope, and variantAction; reuse actionKey only on retries."
|
|
54
54
|
},
|
|
55
55
|
"get": {
|
|
56
56
|
"path": "/tools/get",
|
|
@@ -69,7 +69,7 @@ export const operations = {
|
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
|
-
"summary": "Read one object by kind
|
|
72
|
+
"summary": "Read one object by kind and id, or an account singleton without id. Never guess ids. Campaign reads return targetingOverlay to verify before proposals. include adds detail only for kinds that serve it."
|
|
73
73
|
},
|
|
74
74
|
"getV3PublicDocumentRevisionSections": {
|
|
75
75
|
"path": "/documents/{documentId}/revisions/{revisionId}/sections",
|
|
@@ -626,7 +626,26 @@ export const operations = {
|
|
|
626
626
|
]
|
|
627
627
|
}
|
|
628
628
|
],
|
|
629
|
-
"summary": "Save an advertiser or
|
|
629
|
+
"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
|
+
},
|
|
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."
|
|
630
649
|
},
|
|
631
650
|
"save_advertiser_grant": {
|
|
632
651
|
"path": "/tools/save_advertiser_grant",
|
|
@@ -664,7 +683,7 @@ export const operations = {
|
|
|
664
683
|
]
|
|
665
684
|
}
|
|
666
685
|
],
|
|
667
|
-
"summary": "
|
|
686
|
+
"summary": "Seller-only CRM notes for an exact brand × operator pair. Buyers use save_advertiser.privateNotes; see /v3/manage-ads#private-advertiser-notes. Effective discounts, routing, access and trust are read-only."
|
|
668
687
|
},
|
|
669
688
|
"save_agent": {
|
|
670
689
|
"path": "/tools/save_agent",
|
|
@@ -683,7 +702,7 @@ export const operations = {
|
|
|
683
702
|
]
|
|
684
703
|
}
|
|
685
704
|
],
|
|
686
|
-
"summary": "
|
|
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."
|
|
687
706
|
},
|
|
688
707
|
"save_ask": {
|
|
689
708
|
"path": "/tools/save_ask",
|
|
@@ -778,7 +797,7 @@ export const operations = {
|
|
|
778
797
|
]
|
|
779
798
|
}
|
|
780
799
|
],
|
|
781
|
-
"summary": "Create
|
|
800
|
+
"summary": "Create or manage one buyer agent."
|
|
782
801
|
},
|
|
783
802
|
"save_buyer_operator": {
|
|
784
803
|
"path": "/tools/save_buyer_operator",
|
|
@@ -817,7 +836,7 @@ export const operations = {
|
|
|
817
836
|
]
|
|
818
837
|
}
|
|
819
838
|
],
|
|
820
|
-
"summary": "Save a campaign.
|
|
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."
|
|
821
840
|
},
|
|
822
841
|
"save_catalog": {
|
|
823
842
|
"path": "/tools/save_catalog",
|
|
@@ -837,7 +856,7 @@ export const operations = {
|
|
|
837
856
|
]
|
|
838
857
|
}
|
|
839
858
|
],
|
|
840
|
-
"summary": "Create or replace one
|
|
859
|
+
"summary": "Create or replace a catalog: type and exactly one of url (feed URL) or non-empty items are required. If missing, ask the buyer for the feed URL or items before calling. URL saves refetch the feed. To archive, set isArchived: true with identity only; type, url and items are not needed."
|
|
841
860
|
},
|
|
842
861
|
"save_connection": {
|
|
843
862
|
"path": "/tools/save_connection",
|
|
@@ -940,6 +959,7 @@ export const operations = {
|
|
|
940
959
|
"body": true,
|
|
941
960
|
"binary": false,
|
|
942
961
|
"idempotencyKey": true,
|
|
962
|
+
"bodyKeyField": "idempotencyKey",
|
|
943
963
|
"parameters": [],
|
|
944
964
|
"security": [
|
|
945
965
|
{
|
|
@@ -970,7 +990,7 @@ export const operations = {
|
|
|
970
990
|
]
|
|
971
991
|
}
|
|
972
992
|
],
|
|
973
|
-
"summary": "
|
|
993
|
+
"summary": "Import native campaigns from Spotify Ads Manager or other platforms, including future-start campaigns, as read-only mirrors. Confirm ongoing sync first. No provider changes. /v3/import-existing-campaigns."
|
|
974
994
|
},
|
|
975
995
|
"save_event_source": {
|
|
976
996
|
"path": "/tools/save_event_source",
|
|
@@ -1011,6 +1031,25 @@ export const operations = {
|
|
|
1011
1031
|
],
|
|
1012
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."
|
|
1013
1033
|
},
|
|
1034
|
+
"save_lesson": {
|
|
1035
|
+
"path": "/tools/save_lesson",
|
|
1036
|
+
"method": "POST",
|
|
1037
|
+
"body": true,
|
|
1038
|
+
"binary": false,
|
|
1039
|
+
"idempotencyKey": true,
|
|
1040
|
+
"parameters": [],
|
|
1041
|
+
"security": [
|
|
1042
|
+
{
|
|
1043
|
+
"apiKeyAuth": []
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"m2mOAuth": [
|
|
1047
|
+
"interchange:write"
|
|
1048
|
+
]
|
|
1049
|
+
}
|
|
1050
|
+
],
|
|
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."
|
|
1052
|
+
},
|
|
1014
1053
|
"save_library_request": {
|
|
1015
1054
|
"path": "/tools/save_library_request",
|
|
1016
1055
|
"method": "POST",
|
|
@@ -1105,7 +1144,7 @@ export const operations = {
|
|
|
1105
1144
|
]
|
|
1106
1145
|
}
|
|
1107
1146
|
],
|
|
1108
|
-
"summary": "Create or update a notification subscription
|
|
1147
|
+
"summary": "Create or update a notification subscription. Omit subscriptionId to create; managed subscriptions permit only mutable fields. Use save_integration for credentials when needed."
|
|
1109
1148
|
},
|
|
1110
1149
|
"save_playbook": {
|
|
1111
1150
|
"path": "/tools/save_playbook",
|
|
@@ -1143,7 +1182,7 @@ export const operations = {
|
|
|
1143
1182
|
]
|
|
1144
1183
|
}
|
|
1145
1184
|
],
|
|
1146
|
-
"summary": "Create, update, archive, or AAO-check an advertiser property list. Check uses identifiers without saving. Search/get read saved lists."
|
|
1185
|
+
"summary": "Create, update, archive, restore, or AAO-check an advertiser property list. Check uses identifiers without saving. Search/get read saved lists."
|
|
1147
1186
|
},
|
|
1148
1187
|
"save_rfp": {
|
|
1149
1188
|
"path": "/tools/save_rfp",
|