@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 CHANGED
@@ -1829,3 +1829,53 @@ When exposing a new backend endpoint to partners:
1829
1829
  3. Add tests in `tests/queries.test.ts`
1830
1830
  4. Open a PR — Hive will validate the schema change isn't breaking
1831
1831
  5. After merge, the schema is auto-published to Hive and a new SDK version can be released
1832
+
1833
+ ### Browse brand media (partners and agents)
1834
+
1835
+ `getPartnerMediaAssets` returns active assets linked to the authenticated brand,
1836
+ newest first. It defaults to 50 assets per page and caps `take` at 100. Follow
1837
+ `nextCursor` while `hasNextPage` is true; `totalCount` counts the matching library,
1838
+ not just this page. `mimeTypePrefix` is case-insensitive (`image/`, `video/`,
1839
+ `application/pdf`, etc.). Existing upload paths without a brand association are
1840
+ not included; an empty result does not prove the brand never uploaded a file.
1841
+
1842
+ ```ts
1843
+ const { getPartnerMediaAssets: page } = await client.query({
1844
+ getPartnerMediaAssets: {
1845
+ __args: { input: { take: 20, mimeTypePrefix: 'image/' } },
1846
+ mediaAssets: {
1847
+ uid: true, url: true, mimeType: true,
1848
+ dimensions: { width: true, height: true },
1849
+ transforms: { original: true, small: true, hls: true },
1850
+ createdAt: true,
1851
+ },
1852
+ totalCount: true, hasNextPage: true, nextCursor: true,
1853
+ },
1854
+ });
1855
+
1856
+ if (page.mediaAssets.length > 0) {
1857
+ const { getPartnerMediaAsset: asset } = await client.query({
1858
+ getPartnerMediaAsset: {
1859
+ __args: { uid: page.mediaAssets[0].uid },
1860
+ uid: true, url: true, mimeType: true,
1861
+ },
1862
+ });
1863
+ }
1864
+ ```
1865
+
1866
+ Only look up a UID after checking that a page contains an asset. Lookup returns
1867
+ `null` for missing, archived, unlinked, or other-brand assets. Transform fields
1868
+ may be null while processing is pending. Agents need `READ_MEDIA` for both reads.
1869
+
1870
+ Agent sessions may also use `getPartnerUploadUrl` and `createPartnerMediaAsset`
1871
+ with `UPLOAD_MEDIA`. PUT the bytes to the returned presigned URL, then register
1872
+ with the exact returned `filename` and the caller-supplied `mimetype` and
1873
+ `dimensions`. Add both
1874
+ `idempotencyKey` and `toolCallId` (nonblank, at most 255 characters) to registration.
1875
+ Persist the filename and registration payload before registering; after an
1876
+ unknown result, retry that same payload and key rather than requesting a fresh
1877
+ upload key. Replays return the same asset UID. The backend checks object existence
1878
+ and brand ownership and records an audit entry. Partner-token callers must omit
1879
+ both audit identifiers and retain their existing upload flow.
1880
+
1881
+ Deploy the backend media schema and migration before releasing this SDK contract.
package/dist/index.d.mts CHANGED
@@ -674,7 +674,18 @@ interface AgentThreadSeedContext {
674
674
  truncated: Scalars['Boolean'];
675
675
  __typename: 'AgentThreadSeedContext';
676
676
  }
677
+ interface GetPartnerMediaAssetsResponse {
678
+ mediaAssets: MediaAsset[];
679
+ totalCount: Scalars['Int'];
680
+ hasNextPage: Scalars['Boolean'];
681
+ nextCursor: (Scalars['String'] | null);
682
+ __typename: 'GetPartnerMediaAssetsResponse';
683
+ }
677
684
  interface Query {
685
+ /** Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents. */
686
+ getPartnerMediaAssets: GetPartnerMediaAssetsResponse;
687
+ /** An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents. */
688
+ getPartnerMediaAsset: (MediaAsset | null);
678
689
  /** Get details for the brand associated with the partner token. */
679
690
  getPartnerBrand: PartnerBrand;
680
691
  /** Retrieve one AgentMail send batch owned by the authenticated partner brand. */
@@ -772,10 +783,19 @@ interface MediaAsset {
772
783
  size: Scalars['Int'];
773
784
  placeholderUrl: (Scalars['String'] | null);
774
785
  blurhash: (Scalars['String'] | null);
786
+ transforms: (Transforms | null);
775
787
  createdAt: Scalars['DateTime'];
776
788
  updatedAt: Scalars['DateTime'];
777
789
  __typename: 'MediaAsset';
778
790
  }
791
+ interface Transforms {
792
+ original: Scalars['String'];
793
+ small: (Scalars['String'] | null);
794
+ medium: (Scalars['String'] | null);
795
+ large: (Scalars['String'] | null);
796
+ hls: (Scalars['String'] | null);
797
+ __typename: 'Transforms';
798
+ }
779
799
  interface CreatePartnerBrandSubscriptionResponse {
780
800
  subscription: (BrandSubscription | null);
781
801
  verificationRequired: Scalars['Boolean'];
@@ -1568,7 +1588,33 @@ interface AgentThreadSeedContextGenqlSelection {
1568
1588
  __typename?: boolean | number;
1569
1589
  __scalar?: boolean | number;
1570
1590
  }
1591
+ interface GetPartnerMediaAssetsInput {
1592
+ cursor?: (Scalars['String'] | null);
1593
+ take?: (Scalars['Int'] | null);
1594
+ /** Case-insensitive MIME prefix, for example image/ or application/pdf. */
1595
+ mimeTypePrefix?: (Scalars['String'] | null);
1596
+ }
1597
+ interface GetPartnerMediaAssetsResponseGenqlSelection {
1598
+ mediaAssets?: MediaAssetGenqlSelection;
1599
+ totalCount?: boolean | number;
1600
+ hasNextPage?: boolean | number;
1601
+ nextCursor?: boolean | number;
1602
+ __typename?: boolean | number;
1603
+ __scalar?: boolean | number;
1604
+ }
1571
1605
  interface QueryGenqlSelection {
1606
+ /** Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents. */
1607
+ getPartnerMediaAssets?: (GetPartnerMediaAssetsResponseGenqlSelection & {
1608
+ __args: {
1609
+ input: GetPartnerMediaAssetsInput;
1610
+ };
1611
+ });
1612
+ /** An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents. */
1613
+ getPartnerMediaAsset?: (MediaAssetGenqlSelection & {
1614
+ __args: {
1615
+ uid: Scalars['String'];
1616
+ };
1617
+ });
1572
1618
  /** Get details for the brand associated with the partner token. */
1573
1619
  getPartnerBrand?: PartnerBrandGenqlSelection;
1574
1620
  /** Retrieve one AgentMail send batch owned by the authenticated partner brand. */
@@ -2009,11 +2055,21 @@ interface MediaAssetGenqlSelection {
2009
2055
  size?: boolean | number;
2010
2056
  placeholderUrl?: boolean | number;
2011
2057
  blurhash?: boolean | number;
2058
+ transforms?: TransformsGenqlSelection;
2012
2059
  createdAt?: boolean | number;
2013
2060
  updatedAt?: boolean | number;
2014
2061
  __typename?: boolean | number;
2015
2062
  __scalar?: boolean | number;
2016
2063
  }
2064
+ interface TransformsGenqlSelection {
2065
+ original?: boolean | number;
2066
+ small?: boolean | number;
2067
+ medium?: boolean | number;
2068
+ large?: boolean | number;
2069
+ hls?: boolean | number;
2070
+ __typename?: boolean | number;
2071
+ __scalar?: boolean | number;
2072
+ }
2017
2073
  interface CreatePartnerBrandSubscriptionResponseGenqlSelection {
2018
2074
  subscription?: BrandSubscriptionGenqlSelection;
2019
2075
  verificationRequired?: boolean | number;
@@ -2041,6 +2097,10 @@ interface MutationGenqlSelection {
2041
2097
  mimetype: Scalars['String'];
2042
2098
  filename: Scalars['String'];
2043
2099
  dimensions: DimensionsInput;
2100
+ /** Required for agent sessions; omit for partner tokens. Reuse with the same upload payload on retry. */
2101
+ idempotencyKey?: (Scalars['String'] | null);
2102
+ /** Required for agent sessions; omit for partner tokens. */
2103
+ toolCallId?: (Scalars['String'] | null);
2044
2104
  };
2045
2105
  });
2046
2106
  /**
@@ -2300,4 +2360,4 @@ type ITMPartnerClient = Client;
2300
2360
  */
2301
2361
  declare function createITMPartnerClient(config: ITMPartnerClientConfig): ITMPartnerClient;
2302
2362
 
2303
- export { type AgentThreadSeedContext, type ApplyDynamicPricingInput, type BrandAgentEmailMessageInput, type BrandAgentEmailSendBatch, type BrandAgentEmailSendBatchStatus, type BrandAgentEmailSendMessage, type BrandAgentEmailSendMessageStatus, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type ConsentStatus, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type Currency, DEFAULT_API_URL, type Dimensions, type DimensionsInput, type DynamicPricingActorType, type DynamicPricingAdmissionWindow, type DynamicPricingBatch, type DynamicPricingBatchEvent, type DynamicPricingBatchEventType, type DynamicPricingBatchItem, type DynamicPricingBatchItemStatus, type DynamicPricingBatchStatus, type DynamicPricingContext, type DynamicPricingExecutionMode, type DynamicPricingInventoryGuardInput, type DynamicPricingInventoryGuardMode, type DynamicPricingInventoryMetric, type DynamicPricingMomentInput, type DynamicPricingTierContext, type DynamicPricingTierUpdateInput, type Echo, type EchoMediaAsset, type EchoType, type EditPartnerTicketTiersForMomentInput, type EventImportPlatform, GenqlError, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerAgentAccessConfig, type ITMPartnerAgentAccessCredentials, type ITMPartnerAgentSessionConfig, type ITMPartnerAgentSessionCredentials, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type ITMPartnerTokenConfig, type MediaAsset, type MediaAssetUploadUrl, type MerchPurchase, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentOnlineProvider, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentTagAssignment, type MomentType, type MusicReleaseType, type Mutation, type PaginationInput, type PartnerAudienceCustomer, type PartnerAudienceFiltersInput, type PartnerAudienceSortField, type PartnerAudienceSortInput, type PartnerBrand, type PartnerCustomer, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type Payment, type PaymentStatus, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PublicMomentLineupInfo, type Query, type RespondToMomentLineupInput, type SendPartnerAgentEmailInput, type SortDirection, type SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type User, type UserSource, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
2363
+ export { type AgentThreadSeedContext, type ApplyDynamicPricingInput, type BrandAgentEmailMessageInput, type BrandAgentEmailSendBatch, type BrandAgentEmailSendBatchStatus, type BrandAgentEmailSendMessage, type BrandAgentEmailSendMessageStatus, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type ConsentStatus, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type Currency, DEFAULT_API_URL, type Dimensions, type DimensionsInput, type DynamicPricingActorType, type DynamicPricingAdmissionWindow, type DynamicPricingBatch, type DynamicPricingBatchEvent, type DynamicPricingBatchEventType, type DynamicPricingBatchItem, type DynamicPricingBatchItemStatus, type DynamicPricingBatchStatus, type DynamicPricingContext, type DynamicPricingExecutionMode, type DynamicPricingInventoryGuardInput, type DynamicPricingInventoryGuardMode, type DynamicPricingInventoryMetric, type DynamicPricingMomentInput, type DynamicPricingTierContext, type DynamicPricingTierUpdateInput, type Echo, type EchoMediaAsset, type EchoType, type EditPartnerTicketTiersForMomentInput, type EventImportPlatform, GenqlError, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerMediaAssetsInput, type GetPartnerMediaAssetsResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerAgentAccessConfig, type ITMPartnerAgentAccessCredentials, type ITMPartnerAgentSessionConfig, type ITMPartnerAgentSessionCredentials, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type ITMPartnerTokenConfig, type MediaAsset, type MediaAssetUploadUrl, type MerchPurchase, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentOnlineProvider, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentTagAssignment, type MomentType, type MusicReleaseType, type Mutation, type PaginationInput, type PartnerAudienceCustomer, type PartnerAudienceFiltersInput, type PartnerAudienceSortField, type PartnerAudienceSortInput, type PartnerBrand, type PartnerCustomer, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type Payment, type PaymentStatus, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PublicMomentLineupInfo, type Query, type RespondToMomentLineupInput, type SendPartnerAgentEmailInput, type SortDirection, type SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type Transforms, type User, type UserSource, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
package/dist/index.d.ts CHANGED
@@ -674,7 +674,18 @@ interface AgentThreadSeedContext {
674
674
  truncated: Scalars['Boolean'];
675
675
  __typename: 'AgentThreadSeedContext';
676
676
  }
677
+ interface GetPartnerMediaAssetsResponse {
678
+ mediaAssets: MediaAsset[];
679
+ totalCount: Scalars['Int'];
680
+ hasNextPage: Scalars['Boolean'];
681
+ nextCursor: (Scalars['String'] | null);
682
+ __typename: 'GetPartnerMediaAssetsResponse';
683
+ }
677
684
  interface Query {
685
+ /** Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents. */
686
+ getPartnerMediaAssets: GetPartnerMediaAssetsResponse;
687
+ /** An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents. */
688
+ getPartnerMediaAsset: (MediaAsset | null);
678
689
  /** Get details for the brand associated with the partner token. */
679
690
  getPartnerBrand: PartnerBrand;
680
691
  /** Retrieve one AgentMail send batch owned by the authenticated partner brand. */
@@ -772,10 +783,19 @@ interface MediaAsset {
772
783
  size: Scalars['Int'];
773
784
  placeholderUrl: (Scalars['String'] | null);
774
785
  blurhash: (Scalars['String'] | null);
786
+ transforms: (Transforms | null);
775
787
  createdAt: Scalars['DateTime'];
776
788
  updatedAt: Scalars['DateTime'];
777
789
  __typename: 'MediaAsset';
778
790
  }
791
+ interface Transforms {
792
+ original: Scalars['String'];
793
+ small: (Scalars['String'] | null);
794
+ medium: (Scalars['String'] | null);
795
+ large: (Scalars['String'] | null);
796
+ hls: (Scalars['String'] | null);
797
+ __typename: 'Transforms';
798
+ }
779
799
  interface CreatePartnerBrandSubscriptionResponse {
780
800
  subscription: (BrandSubscription | null);
781
801
  verificationRequired: Scalars['Boolean'];
@@ -1568,7 +1588,33 @@ interface AgentThreadSeedContextGenqlSelection {
1568
1588
  __typename?: boolean | number;
1569
1589
  __scalar?: boolean | number;
1570
1590
  }
1591
+ interface GetPartnerMediaAssetsInput {
1592
+ cursor?: (Scalars['String'] | null);
1593
+ take?: (Scalars['Int'] | null);
1594
+ /** Case-insensitive MIME prefix, for example image/ or application/pdf. */
1595
+ mimeTypePrefix?: (Scalars['String'] | null);
1596
+ }
1597
+ interface GetPartnerMediaAssetsResponseGenqlSelection {
1598
+ mediaAssets?: MediaAssetGenqlSelection;
1599
+ totalCount?: boolean | number;
1600
+ hasNextPage?: boolean | number;
1601
+ nextCursor?: boolean | number;
1602
+ __typename?: boolean | number;
1603
+ __scalar?: boolean | number;
1604
+ }
1571
1605
  interface QueryGenqlSelection {
1606
+ /** Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents. */
1607
+ getPartnerMediaAssets?: (GetPartnerMediaAssetsResponseGenqlSelection & {
1608
+ __args: {
1609
+ input: GetPartnerMediaAssetsInput;
1610
+ };
1611
+ });
1612
+ /** An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents. */
1613
+ getPartnerMediaAsset?: (MediaAssetGenqlSelection & {
1614
+ __args: {
1615
+ uid: Scalars['String'];
1616
+ };
1617
+ });
1572
1618
  /** Get details for the brand associated with the partner token. */
1573
1619
  getPartnerBrand?: PartnerBrandGenqlSelection;
1574
1620
  /** Retrieve one AgentMail send batch owned by the authenticated partner brand. */
@@ -2009,11 +2055,21 @@ interface MediaAssetGenqlSelection {
2009
2055
  size?: boolean | number;
2010
2056
  placeholderUrl?: boolean | number;
2011
2057
  blurhash?: boolean | number;
2058
+ transforms?: TransformsGenqlSelection;
2012
2059
  createdAt?: boolean | number;
2013
2060
  updatedAt?: boolean | number;
2014
2061
  __typename?: boolean | number;
2015
2062
  __scalar?: boolean | number;
2016
2063
  }
2064
+ interface TransformsGenqlSelection {
2065
+ original?: boolean | number;
2066
+ small?: boolean | number;
2067
+ medium?: boolean | number;
2068
+ large?: boolean | number;
2069
+ hls?: boolean | number;
2070
+ __typename?: boolean | number;
2071
+ __scalar?: boolean | number;
2072
+ }
2017
2073
  interface CreatePartnerBrandSubscriptionResponseGenqlSelection {
2018
2074
  subscription?: BrandSubscriptionGenqlSelection;
2019
2075
  verificationRequired?: boolean | number;
@@ -2041,6 +2097,10 @@ interface MutationGenqlSelection {
2041
2097
  mimetype: Scalars['String'];
2042
2098
  filename: Scalars['String'];
2043
2099
  dimensions: DimensionsInput;
2100
+ /** Required for agent sessions; omit for partner tokens. Reuse with the same upload payload on retry. */
2101
+ idempotencyKey?: (Scalars['String'] | null);
2102
+ /** Required for agent sessions; omit for partner tokens. */
2103
+ toolCallId?: (Scalars['String'] | null);
2044
2104
  };
2045
2105
  });
2046
2106
  /**
@@ -2300,4 +2360,4 @@ type ITMPartnerClient = Client;
2300
2360
  */
2301
2361
  declare function createITMPartnerClient(config: ITMPartnerClientConfig): ITMPartnerClient;
2302
2362
 
2303
- export { type AgentThreadSeedContext, type ApplyDynamicPricingInput, type BrandAgentEmailMessageInput, type BrandAgentEmailSendBatch, type BrandAgentEmailSendBatchStatus, type BrandAgentEmailSendMessage, type BrandAgentEmailSendMessageStatus, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type ConsentStatus, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type Currency, DEFAULT_API_URL, type Dimensions, type DimensionsInput, type DynamicPricingActorType, type DynamicPricingAdmissionWindow, type DynamicPricingBatch, type DynamicPricingBatchEvent, type DynamicPricingBatchEventType, type DynamicPricingBatchItem, type DynamicPricingBatchItemStatus, type DynamicPricingBatchStatus, type DynamicPricingContext, type DynamicPricingExecutionMode, type DynamicPricingInventoryGuardInput, type DynamicPricingInventoryGuardMode, type DynamicPricingInventoryMetric, type DynamicPricingMomentInput, type DynamicPricingTierContext, type DynamicPricingTierUpdateInput, type Echo, type EchoMediaAsset, type EchoType, type EditPartnerTicketTiersForMomentInput, type EventImportPlatform, GenqlError, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerAgentAccessConfig, type ITMPartnerAgentAccessCredentials, type ITMPartnerAgentSessionConfig, type ITMPartnerAgentSessionCredentials, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type ITMPartnerTokenConfig, type MediaAsset, type MediaAssetUploadUrl, type MerchPurchase, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentOnlineProvider, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentTagAssignment, type MomentType, type MusicReleaseType, type Mutation, type PaginationInput, type PartnerAudienceCustomer, type PartnerAudienceFiltersInput, type PartnerAudienceSortField, type PartnerAudienceSortInput, type PartnerBrand, type PartnerCustomer, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type Payment, type PaymentStatus, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PublicMomentLineupInfo, type Query, type RespondToMomentLineupInput, type SendPartnerAgentEmailInput, type SortDirection, type SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type User, type UserSource, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
2363
+ export { type AgentThreadSeedContext, type ApplyDynamicPricingInput, type BrandAgentEmailMessageInput, type BrandAgentEmailSendBatch, type BrandAgentEmailSendBatchStatus, type BrandAgentEmailSendMessage, type BrandAgentEmailSendMessageStatus, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type ConsentStatus, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type Currency, DEFAULT_API_URL, type Dimensions, type DimensionsInput, type DynamicPricingActorType, type DynamicPricingAdmissionWindow, type DynamicPricingBatch, type DynamicPricingBatchEvent, type DynamicPricingBatchEventType, type DynamicPricingBatchItem, type DynamicPricingBatchItemStatus, type DynamicPricingBatchStatus, type DynamicPricingContext, type DynamicPricingExecutionMode, type DynamicPricingInventoryGuardInput, type DynamicPricingInventoryGuardMode, type DynamicPricingInventoryMetric, type DynamicPricingMomentInput, type DynamicPricingTierContext, type DynamicPricingTierUpdateInput, type Echo, type EchoMediaAsset, type EchoType, type EditPartnerTicketTiersForMomentInput, type EventImportPlatform, GenqlError, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerMediaAssetsInput, type GetPartnerMediaAssetsResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerAgentAccessConfig, type ITMPartnerAgentAccessCredentials, type ITMPartnerAgentSessionConfig, type ITMPartnerAgentSessionCredentials, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type ITMPartnerTokenConfig, type MediaAsset, type MediaAssetUploadUrl, type MerchPurchase, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentOnlineProvider, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentTagAssignment, type MomentType, type MusicReleaseType, type Mutation, type PaginationInput, type PartnerAudienceCustomer, type PartnerAudienceFiltersInput, type PartnerAudienceSortField, type PartnerAudienceSortInput, type PartnerBrand, type PartnerCustomer, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type Payment, type PaymentStatus, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PublicMomentLineupInfo, type Query, type RespondToMomentLineupInput, type SendPartnerAgentEmailInput, type SortDirection, type SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type Transforms, type User, type UserSource, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
package/dist/index.js CHANGED
@@ -1547,10 +1547,10 @@ var types_default = {
1547
1547
  27
1548
1548
  ],
1549
1549
  "coverImage": [
1550
- 124
1550
+ 126
1551
1551
  ],
1552
1552
  "coverImageMobile": [
1553
- 124
1553
+ 126
1554
1554
  ],
1555
1555
  "isActive": [
1556
1556
  33
@@ -2364,7 +2364,56 @@ var types_default = {
2364
2364
  27
2365
2365
  ]
2366
2366
  },
2367
+ "GetPartnerMediaAssetsInput": {
2368
+ "cursor": [
2369
+ 27
2370
+ ],
2371
+ "take": [
2372
+ 36
2373
+ ],
2374
+ "mimeTypePrefix": [
2375
+ 27
2376
+ ],
2377
+ "__typename": [
2378
+ 27
2379
+ ]
2380
+ },
2381
+ "GetPartnerMediaAssetsResponse": {
2382
+ "mediaAssets": [
2383
+ 126
2384
+ ],
2385
+ "totalCount": [
2386
+ 36
2387
+ ],
2388
+ "hasNextPage": [
2389
+ 33
2390
+ ],
2391
+ "nextCursor": [
2392
+ 27
2393
+ ],
2394
+ "__typename": [
2395
+ 27
2396
+ ]
2397
+ },
2367
2398
  "Query": {
2399
+ "getPartnerMediaAssets": [
2400
+ 101,
2401
+ {
2402
+ "input": [
2403
+ 100,
2404
+ "GetPartnerMediaAssetsInput!"
2405
+ ]
2406
+ }
2407
+ ],
2408
+ "getPartnerMediaAsset": [
2409
+ 126,
2410
+ {
2411
+ "uid": [
2412
+ 27,
2413
+ "String!"
2414
+ ]
2415
+ }
2416
+ ],
2368
2417
  "getPartnerBrand": [
2369
2418
  28
2370
2419
  ],
@@ -2515,7 +2564,7 @@ var types_default = {
2515
2564
  73,
2516
2565
  {
2517
2566
  "input": [
2518
- 108,
2567
+ 110,
2519
2568
  "GetPartnerTicketTiersForMomentInput!"
2520
2569
  ]
2521
2570
  }
@@ -2524,7 +2573,7 @@ var types_default = {
2524
2573
  86,
2525
2574
  {
2526
2575
  "input": [
2527
- 111,
2576
+ 113,
2528
2577
  "DynamicPricingMomentInput!"
2529
2578
  ]
2530
2579
  }
@@ -2599,7 +2648,7 @@ var types_default = {
2599
2648
  27
2600
2649
  ],
2601
2650
  "messages": [
2602
- 102
2651
+ 104
2603
2652
  ],
2604
2653
  "toolCallId": [
2605
2654
  27
@@ -2709,10 +2758,10 @@ var types_default = {
2709
2758
  27
2710
2759
  ],
2711
2760
  "venue": [
2712
- 104
2761
+ 106
2713
2762
  ],
2714
2763
  "onlineConfig": [
2715
- 106
2764
+ 108
2716
2765
  ],
2717
2766
  "isPrivate": [
2718
2767
  33
@@ -2727,7 +2776,7 @@ var types_default = {
2727
2776
  16
2728
2777
  ],
2729
2778
  "ticketTiers": [
2730
- 105
2779
+ 107
2731
2780
  ],
2732
2781
  "idempotencyKey": [
2733
2782
  27
@@ -2841,7 +2890,7 @@ var types_default = {
2841
2890
  27
2842
2891
  ],
2843
2892
  "updates": [
2844
- 109
2893
+ 111
2845
2894
  ],
2846
2895
  "__typename": [
2847
2896
  27
@@ -2872,7 +2921,7 @@ var types_default = {
2872
2921
  27
2873
2922
  ],
2874
2923
  "inventoryGuard": [
2875
- 113
2924
+ 115
2876
2925
  ],
2877
2926
  "externalSignals": [
2878
2927
  1
@@ -2930,7 +2979,7 @@ var types_default = {
2930
2979
  1
2931
2980
  ],
2932
2981
  "updates": [
2933
- 112
2982
+ 114
2934
2983
  ],
2935
2984
  "__typename": [
2936
2985
  27
@@ -3050,13 +3099,13 @@ var types_default = {
3050
3099
  },
3051
3100
  "PostSubscriptionMessageInput": {
3052
3101
  "sms": [
3053
- 117
3102
+ 119
3054
3103
  ],
3055
3104
  "email": [
3056
- 118
3105
+ 120
3057
3106
  ],
3058
3107
  "push": [
3059
- 119
3108
+ 121
3060
3109
  ],
3061
3110
  "__typename": [
3062
3111
  27
@@ -3064,7 +3113,7 @@ var types_default = {
3064
3113
  },
3065
3114
  "CreatePartnerBrandSubscriptionInput": {
3066
3115
  "compliance": [
3067
- 116
3116
+ 118
3068
3117
  ],
3069
3118
  "consentText": [
3070
3119
  27
@@ -3085,7 +3134,7 @@ var types_default = {
3085
3134
  33
3086
3135
  ],
3087
3136
  "postSubscriptionMessage": [
3088
- 120
3137
+ 122
3089
3138
  ],
3090
3139
  "__typename": [
3091
3140
  27
@@ -3138,6 +3187,9 @@ var types_default = {
3138
3187
  "blurhash": [
3139
3188
  27
3140
3189
  ],
3190
+ "transforms": [
3191
+ 127
3192
+ ],
3141
3193
  "createdAt": [
3142
3194
  0
3143
3195
  ],
@@ -3148,6 +3200,26 @@ var types_default = {
3148
3200
  27
3149
3201
  ]
3150
3202
  },
3203
+ "Transforms": {
3204
+ "original": [
3205
+ 27
3206
+ ],
3207
+ "small": [
3208
+ 27
3209
+ ],
3210
+ "medium": [
3211
+ 27
3212
+ ],
3213
+ "large": [
3214
+ 27
3215
+ ],
3216
+ "hls": [
3217
+ 27
3218
+ ],
3219
+ "__typename": [
3220
+ 27
3221
+ ]
3222
+ },
3151
3223
  "CreatePartnerBrandSubscriptionResponse": {
3152
3224
  "subscription": [
3153
3225
  90
@@ -3164,7 +3236,7 @@ var types_default = {
3164
3236
  },
3165
3237
  "Mutation": {
3166
3238
  "getPartnerUploadUrl": [
3167
- 123,
3239
+ 125,
3168
3240
  {
3169
3241
  "filename": [
3170
3242
  27,
@@ -3177,7 +3249,7 @@ var types_default = {
3177
3249
  }
3178
3250
  ],
3179
3251
  "createPartnerMediaAsset": [
3180
- 124,
3252
+ 126,
3181
3253
  {
3182
3254
  "mimetype": [
3183
3255
  27,
@@ -3188,16 +3260,22 @@ var types_default = {
3188
3260
  "String!"
3189
3261
  ],
3190
3262
  "dimensions": [
3191
- 101,
3263
+ 103,
3192
3264
  "DimensionsInput!"
3265
+ ],
3266
+ "idempotencyKey": [
3267
+ 27
3268
+ ],
3269
+ "toolCallId": [
3270
+ 27
3193
3271
  ]
3194
3272
  }
3195
3273
  ],
3196
3274
  "createPartnerBrandSubscription": [
3197
- 125,
3275
+ 128,
3198
3276
  {
3199
3277
  "input": [
3200
- 121,
3278
+ 123,
3201
3279
  "CreatePartnerBrandSubscriptionInput!"
3202
3280
  ]
3203
3281
  }
@@ -3206,7 +3284,7 @@ var types_default = {
3206
3284
  38,
3207
3285
  {
3208
3286
  "input": [
3209
- 107,
3287
+ 109,
3210
3288
  "CreatePartnerMomentInput!"
3211
3289
  ]
3212
3290
  }
@@ -3215,7 +3293,7 @@ var types_default = {
3215
3293
  98,
3216
3294
  {
3217
3295
  "input": [
3218
- 103,
3296
+ 105,
3219
3297
  "SendPartnerAgentEmailInput!"
3220
3298
  ]
3221
3299
  }
@@ -3224,7 +3302,7 @@ var types_default = {
3224
3302
  72,
3225
3303
  {
3226
3304
  "input": [
3227
- 110,
3305
+ 112,
3228
3306
  "EditPartnerTicketTiersForMomentInput!"
3229
3307
  ]
3230
3308
  }
@@ -3233,7 +3311,7 @@ var types_default = {
3233
3311
  89,
3234
3312
  {
3235
3313
  "input": [
3236
- 114,
3314
+ 116,
3237
3315
  "ApplyDynamicPricingInput!"
3238
3316
  ]
3239
3317
  }
@@ -3242,7 +3320,7 @@ var types_default = {
3242
3320
  90,
3243
3321
  {
3244
3322
  "input": [
3245
- 122,
3323
+ 124,
3246
3324
  "VerifyPartnerBrandSubscriptionInput!"
3247
3325
  ]
3248
3326
  }
@@ -3251,7 +3329,7 @@ var types_default = {
3251
3329
  92,
3252
3330
  {
3253
3331
  "input": [
3254
- 115,
3332
+ 117,
3255
3333
  "RespondToMomentLineupInput!"
3256
3334
  ]
3257
3335
  }