@itm-studio/partner-sdk 0.3.1 → 0.3.2
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 +50 -0
- package/dist/index.d.mts +61 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.js +105 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +105 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +33 -0
package/package.json
CHANGED
package/schema/partner.graphql
CHANGED
|
@@ -1225,7 +1225,27 @@ type AgentThreadSeedContext {
|
|
|
1225
1225
|
truncated: Boolean!
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
|
+
input GetPartnerMediaAssetsInput {
|
|
1229
|
+
cursor: String
|
|
1230
|
+
take: Int
|
|
1231
|
+
"""Case-insensitive MIME prefix, for example image/ or application/pdf."""
|
|
1232
|
+
mimeTypePrefix: String
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
type GetPartnerMediaAssetsResponse {
|
|
1236
|
+
mediaAssets: [MediaAsset!]!
|
|
1237
|
+
totalCount: Int!
|
|
1238
|
+
hasNextPage: Boolean!
|
|
1239
|
+
nextCursor: String
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1228
1242
|
type Query {
|
|
1243
|
+
"""Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents."""
|
|
1244
|
+
getPartnerMediaAssets(input: GetPartnerMediaAssetsInput!): GetPartnerMediaAssetsResponse!
|
|
1245
|
+
|
|
1246
|
+
"""An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents."""
|
|
1247
|
+
getPartnerMediaAsset(uid: String!): MediaAsset
|
|
1248
|
+
|
|
1229
1249
|
"""
|
|
1230
1250
|
Get details for the brand associated with the partner token.
|
|
1231
1251
|
"""
|
|
@@ -1686,10 +1706,19 @@ type MediaAsset {
|
|
|
1686
1706
|
size: Int!
|
|
1687
1707
|
placeholderUrl: String
|
|
1688
1708
|
blurhash: String
|
|
1709
|
+
transforms: Transforms
|
|
1689
1710
|
createdAt: DateTime!
|
|
1690
1711
|
updatedAt: DateTime!
|
|
1691
1712
|
}
|
|
1692
1713
|
|
|
1714
|
+
type Transforms {
|
|
1715
|
+
original: String!
|
|
1716
|
+
small: String
|
|
1717
|
+
medium: String
|
|
1718
|
+
large: String
|
|
1719
|
+
hls: String
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1693
1722
|
type CreatePartnerBrandSubscriptionResponse {
|
|
1694
1723
|
subscription: BrandSubscription
|
|
1695
1724
|
verificationRequired: Boolean!
|
|
@@ -1713,6 +1742,10 @@ type Mutation {
|
|
|
1713
1742
|
mimetype: String!
|
|
1714
1743
|
filename: String!
|
|
1715
1744
|
dimensions: DimensionsInput!
|
|
1745
|
+
"""Required for agent sessions; omit for partner tokens. Reuse with the same upload payload on retry."""
|
|
1746
|
+
idempotencyKey: String
|
|
1747
|
+
"""Required for agent sessions; omit for partner tokens."""
|
|
1748
|
+
toolCallId: String
|
|
1716
1749
|
): MediaAsset!
|
|
1717
1750
|
|
|
1718
1751
|
"""
|