@itm-studio/partner-sdk 0.3.3 → 0.3.4
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/README.md +28 -0
- package/dist/index.d.mts +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +103 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +22 -0
package/package.json
CHANGED
package/schema/partner.graphql
CHANGED
|
@@ -1245,9 +1245,27 @@ type GetPartnerMediaAssetsResponse {
|
|
|
1245
1245
|
nextCursor: String
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
|
+
input ReserveAgentMediaUploadInput {
|
|
1249
|
+
idempotencyKey: String!
|
|
1250
|
+
toolCallId: String!
|
|
1251
|
+
requestHash: String!
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
type AgentMediaUploadReservation {
|
|
1255
|
+
uid: String!
|
|
1256
|
+
mayGenerate: Boolean!
|
|
1257
|
+
filename: String!
|
|
1258
|
+
uploadUrl: String
|
|
1259
|
+
downloadUrl: String!
|
|
1260
|
+
uploaded: Boolean!
|
|
1261
|
+
finishedAt: DateTime
|
|
1262
|
+
mediaAsset: MediaAsset
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1248
1265
|
type Query {
|
|
1249
1266
|
"""Get the authenticated agent operator email for the approval preview. Requires a brand-agent session with SEND_EMAIL; unavailable to partner API keys."""
|
|
1250
1267
|
getPartnerAgentEmailContext: BrandAgentEmailContext!
|
|
1268
|
+
getAgentMediaUpload(uid: String!): AgentMediaUploadReservation!
|
|
1251
1269
|
|
|
1252
1270
|
"""Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents."""
|
|
1253
1271
|
getPartnerMediaAssets(input: GetPartnerMediaAssetsInput!): GetPartnerMediaAssetsResponse!
|
|
@@ -1740,6 +1758,9 @@ type CreatePartnerBrandSubscriptionResponse {
|
|
|
1740
1758
|
# ─── Mutations ────────────────────────────────────────────────────────────────
|
|
1741
1759
|
|
|
1742
1760
|
type Mutation {
|
|
1761
|
+
reserveAgentMediaUpload(input: ReserveAgentMediaUploadInput!): AgentMediaUploadReservation!
|
|
1762
|
+
finishAgentMediaUpload(uid: String!): Boolean!
|
|
1763
|
+
|
|
1743
1764
|
"""
|
|
1744
1765
|
Get a presigned S3 URL for direct file upload.
|
|
1745
1766
|
Rate limited to 30 requests per minute.
|
|
@@ -1758,6 +1779,7 @@ type Mutation {
|
|
|
1758
1779
|
idempotencyKey: String
|
|
1759
1780
|
"""Required for agent sessions; omit for partner tokens."""
|
|
1760
1781
|
toolCallId: String
|
|
1782
|
+
reservationUid: String
|
|
1761
1783
|
): MediaAsset!
|
|
1762
1784
|
|
|
1763
1785
|
"""
|