@itm-studio/partner-sdk 0.3.1 → 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.1",
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!
@@ -1225,7 +1231,30 @@ type AgentThreadSeedContext {
1225
1231
  truncated: Boolean!
1226
1232
  }
1227
1233
 
1234
+ input GetPartnerMediaAssetsInput {
1235
+ cursor: String
1236
+ take: Int
1237
+ """Case-insensitive MIME prefix, for example image/ or application/pdf."""
1238
+ mimeTypePrefix: String
1239
+ }
1240
+
1241
+ type GetPartnerMediaAssetsResponse {
1242
+ mediaAssets: [MediaAsset!]!
1243
+ totalCount: Int!
1244
+ hasNextPage: Boolean!
1245
+ nextCursor: String
1246
+ }
1247
+
1228
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
+
1252
+ """Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents."""
1253
+ getPartnerMediaAssets(input: GetPartnerMediaAssetsInput!): GetPartnerMediaAssetsResponse!
1254
+
1255
+ """An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents."""
1256
+ getPartnerMediaAsset(uid: String!): MediaAsset
1257
+
1229
1258
  """
1230
1259
  Get details for the brand associated with the partner token.
1231
1260
  """
@@ -1389,6 +1418,9 @@ input BrandAgentEmailMessageInput {
1389
1418
  }
1390
1419
 
1391
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
+
1392
1424
  """Stable business idempotency key for this logical batch."""
1393
1425
  idempotencyKey: String!
1394
1426
  """One to ten personalized, single-recipient plain-text emails."""
@@ -1686,10 +1718,19 @@ type MediaAsset {
1686
1718
  size: Int!
1687
1719
  placeholderUrl: String
1688
1720
  blurhash: String
1721
+ transforms: Transforms
1689
1722
  createdAt: DateTime!
1690
1723
  updatedAt: DateTime!
1691
1724
  }
1692
1725
 
1726
+ type Transforms {
1727
+ original: String!
1728
+ small: String
1729
+ medium: String
1730
+ large: String
1731
+ hls: String
1732
+ }
1733
+
1693
1734
  type CreatePartnerBrandSubscriptionResponse {
1694
1735
  subscription: BrandSubscription
1695
1736
  verificationRequired: Boolean!
@@ -1713,6 +1754,10 @@ type Mutation {
1713
1754
  mimetype: String!
1714
1755
  filename: String!
1715
1756
  dimensions: DimensionsInput!
1757
+ """Required for agent sessions; omit for partner tokens. Reuse with the same upload payload on retry."""
1758
+ idempotencyKey: String
1759
+ """Required for agent sessions; omit for partner tokens."""
1760
+ toolCallId: String
1716
1761
  ): MediaAsset!
1717
1762
 
1718
1763
  """