@itm-studio/partner-sdk 0.3.2 → 0.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itm-studio/partner-sdk",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "TypeScript SDK for the ITM Partner API — typed GraphQL client with zero introspection required",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1205,7 +1205,13 @@ type BrandAgentEmailSendMessage {
1205
1205
  lastErrorMessage: String
1206
1206
  }
1207
1207
 
1208
+ type BrandAgentEmailContext {
1209
+ operatorCcEmail: String!
1210
+ }
1211
+
1208
1212
  type BrandAgentEmailSendBatch {
1213
+ operatorCcEmail: String
1214
+
1209
1215
  uid: String!
1210
1216
  createdAt: DateTime!
1211
1217
  status: BrandAgentEmailSendBatchStatus!
@@ -1240,6 +1246,9 @@ type GetPartnerMediaAssetsResponse {
1240
1246
  }
1241
1247
 
1242
1248
  type Query {
1249
+ """Get the authenticated agent operator email for the approval preview. Requires a brand-agent session with SEND_EMAIL; unavailable to partner API keys."""
1250
+ getPartnerAgentEmailContext: BrandAgentEmailContext!
1251
+
1243
1252
  """Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents."""
1244
1253
  getPartnerMediaAssets(input: GetPartnerMediaAssetsInput!): GetPartnerMediaAssetsResponse!
1245
1254
 
@@ -1409,6 +1418,9 @@ input BrandAgentEmailMessageInput {
1409
1418
  }
1410
1419
 
1411
1420
  input SendPartnerAgentEmailInput {
1421
+ """Required for agent callers: operator CC from getPartnerAgentEmailContext, shown in the approved draft. Partner callers cannot set this."""
1422
+ operatorCcEmail: String
1423
+
1412
1424
  """Stable business idempotency key for this logical batch."""
1413
1425
  idempotencyKey: String!
1414
1426
  """One to ten personalized, single-recipient plain-text emails."""