@itm-studio/partner-sdk 0.6.5 → 0.6.7

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/dist/index.d.ts CHANGED
@@ -212,6 +212,8 @@ interface Moment {
212
212
  description: (Scalars['String'] | null);
213
213
  blurb: Scalars['String'];
214
214
  slug: Scalars['String'];
215
+ /** Canonical public URL on ITM. Always returned, whatever the moment's visibility; check isPrivate and status before sharing it. */
216
+ publicUrl: Scalars['String'];
215
217
  startDate: Scalars['DateTime'];
216
218
  endDate: Scalars['DateTime'];
217
219
  isPrivate: Scalars['Boolean'];
@@ -411,6 +413,8 @@ interface MerchSize {
411
413
  interface Merch {
412
414
  uid: Scalars['ID'];
413
415
  name: Scalars['String'];
416
+ /** Canonical public URL on ITM. Always returned, whatever the item's visibility; check isLive before sharing it. */
417
+ publicUrl: Scalars['String'];
414
418
  description: (Scalars['String'] | null);
415
419
  /** Price in ITM cents (major units times 100). */
416
420
  price: Scalars['Float'];
@@ -570,6 +574,8 @@ interface Echo {
570
574
  type: EchoType;
571
575
  name: Scalars['String'];
572
576
  slug: (Scalars['String'] | null);
577
+ /** Canonical public URL on ITM. Always returned, whatever the echo's visibility; check isPublic and publishTime before sharing it. */
578
+ publicUrl: Scalars['String'];
573
579
  description: (Scalars['String'] | null);
574
580
  /** Rich text body for POST-type echoes. */
575
581
  postBody: (Scalars['String'] | null);
@@ -594,6 +600,8 @@ interface BrandDrop {
594
600
  uid: Scalars['ID'];
595
601
  name: Scalars['String'];
596
602
  slug: Scalars['String'];
603
+ /** Canonical public URL on ITM. Always returned, whatever the drop's visibility; check isPublic and isActive before sharing it. */
604
+ publicUrl: Scalars['String'];
597
605
  subtitle: (Scalars['String'] | null);
598
606
  disclosures: (Scalars['String'] | null);
599
607
  isPublic: Scalars['Boolean'];
@@ -1004,6 +1012,8 @@ interface PartnerMembershipTier {
1004
1012
  passType: MembershipPassType;
1005
1013
  /** Amount in hundredths of the currency's major unit (always x100, including zero-decimal currencies such as JPY) */
1006
1014
  price: Scalars['Int'];
1015
+ /** Canonical public URL on ITM. Always returned, whatever the pass's visibility; check isPublic and isActive before sharing it. */
1016
+ publicUrl: Scalars['String'];
1007
1017
  slug: Scalars['String'];
1008
1018
  sortOrder: Scalars['Int'];
1009
1019
  supplyCap: (Scalars['Int'] | null);
@@ -1092,11 +1102,11 @@ interface Query {
1092
1102
  /** Get the authenticated agent operator email for the approval preview. Requires a brand-agent session with SEND_EMAIL; unavailable to partner API keys. */
1093
1103
  getPartnerAgentEmailContext: BrandAgentEmailContext;
1094
1104
  getAgentMediaUpload: AgentMediaUploadReservation;
1095
- /** Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents. */
1105
+ /** Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents; itm:media:write for AI connections. */
1096
1106
  getPartnerMediaAssets: GetPartnerMediaAssetsResponse;
1097
1107
  /** List the brand's merch with sizes and pickup moments, to find the merchUid, merchSizeUid and pickupMomentUid for createPartnerMerchPurchase. */
1098
1108
  getPartnerMerch: GetMerchPaginatedResponse;
1099
- /** An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents. */
1109
+ /** An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents; itm:media:write for AI connections. */
1100
1110
  getPartnerMediaAsset: (MediaAsset | null);
1101
1111
  /** Get details for the brand associated with the partner token. */
1102
1112
  getPartnerBrand: PartnerBrand;
@@ -1208,9 +1218,24 @@ interface MediaAssetUploadUrl {
1208
1218
  filename: Scalars['String'];
1209
1219
  __typename: 'MediaAssetUploadUrl';
1210
1220
  }
1221
+ /**
1222
+ * A short-lived upload that stores only the declared type and exact size.
1223
+ * Returned by createPartnerMediaUpload.
1224
+ */
1225
+ interface PartnerMediaUpload {
1226
+ /** Pass back to completePartnerMediaUpload after the PUT. */
1227
+ uploadKey: Scalars['String'];
1228
+ /**
1229
+ * PUT the file here with the declared Content-Type and exact byte size (both signed).
1230
+ * Treat it as a secret until it expires.
1231
+ */
1232
+ uploadUrl: Scalars['String'];
1233
+ expiresAt: Scalars['DateTime'];
1234
+ __typename: 'PartnerMediaUpload';
1235
+ }
1211
1236
  /**
1212
1237
  * A media asset uploaded by a partner.
1213
- * Returned by createPartnerMediaAsset.
1238
+ * Returned by completePartnerMediaUpload and createPartnerMediaAsset.
1214
1239
  */
1215
1240
  interface MediaAsset {
1216
1241
  uid: Scalars['ID'];
@@ -1263,13 +1288,27 @@ interface Mutation {
1263
1288
  reserveAgentMediaUpload: AgentMediaUploadReservation;
1264
1289
  finishAgentMediaUpload: Scalars['Boolean'];
1265
1290
  /**
1266
- * Get a presigned S3 URL for direct file upload.
1291
+ * Start a brand media upload: a short-lived URL that stores only the declared
1292
+ * type and exact size. PUT the file there, then call completePartnerMediaUpload.
1293
+ * Partner tokens, and AI connections holding itm:media:write.
1294
+ * Rate limited to 30 requests per minute.
1295
+ */
1296
+ createPartnerMediaUpload: PartnerMediaUpload;
1297
+ /**
1298
+ * Verify an uploaded file and add it to the brand's media library. The stored
1299
+ * bytes must be the declared type; images are measured from the file.
1300
+ * Completing the same upload again returns the same asset.
1301
+ * Rate limited to 30 requests per minute.
1302
+ */
1303
+ completePartnerMediaUpload: MediaAsset;
1304
+ /**
1305
+ * Legacy upload URL with no type or size check. Prefer createPartnerMediaUpload.
1267
1306
  * Rate limited to 30 requests per minute.
1268
1307
  */
1269
1308
  getPartnerUploadUrl: MediaAssetUploadUrl;
1270
1309
  /**
1271
- * Record an uploaded media asset and link it to the partner's brand.
1272
- * Call after uploading to S3 via the presigned URL from getPartnerUploadUrl.
1310
+ * Record a file uploaded through getPartnerUploadUrl and link it to the partner's brand.
1311
+ * Legacy: the type and dimensions are taken as given. Prefer completePartnerMediaUpload.
1273
1312
  */
1274
1313
  createPartnerMediaAsset: MediaAsset;
1275
1314
  /** Create a SUBSCRIBE drop for the authenticated partner brand. */
@@ -1801,6 +1840,8 @@ interface Form {
1801
1840
  mode: FormResponseMode;
1802
1841
  name: Scalars['String'];
1803
1842
  preSubmitCalloutText: (Scalars['String'] | null);
1843
+ /** Canonical public URL on ITM. Always returned, whatever the form's visibility; check isPublic and isActive before sharing it. */
1844
+ publicUrl: Scalars['String'];
1804
1845
  relevancyScoringContext: (Scalars['String'] | null);
1805
1846
  relevancyScoringEnabled: Scalars['Boolean'];
1806
1847
  responsesCount: Scalars['Int'];
@@ -2095,6 +2136,8 @@ interface MomentGenqlSelection {
2095
2136
  description?: boolean | number;
2096
2137
  blurb?: boolean | number;
2097
2138
  slug?: boolean | number;
2139
+ /** Canonical public URL on ITM. Always returned, whatever the moment's visibility; check isPrivate and status before sharing it. */
2140
+ publicUrl?: boolean | number;
2098
2141
  startDate?: boolean | number;
2099
2142
  endDate?: boolean | number;
2100
2143
  isPrivate?: boolean | number;
@@ -2304,6 +2347,8 @@ interface MerchSizeGenqlSelection {
2304
2347
  interface MerchGenqlSelection {
2305
2348
  uid?: boolean | number;
2306
2349
  name?: boolean | number;
2350
+ /** Canonical public URL on ITM. Always returned, whatever the item's visibility; check isLive before sharing it. */
2351
+ publicUrl?: boolean | number;
2307
2352
  description?: boolean | number;
2308
2353
  /** Price in ITM cents (major units times 100). */
2309
2354
  price?: boolean | number;
@@ -2575,6 +2620,8 @@ interface EchoGenqlSelection {
2575
2620
  type?: boolean | number;
2576
2621
  name?: boolean | number;
2577
2622
  slug?: boolean | number;
2623
+ /** Canonical public URL on ITM. Always returned, whatever the echo's visibility; check isPublic and publishTime before sharing it. */
2624
+ publicUrl?: boolean | number;
2578
2625
  description?: boolean | number;
2579
2626
  /** Rich text body for POST-type echoes. */
2580
2627
  postBody?: boolean | number;
@@ -2600,6 +2647,8 @@ interface BrandDropGenqlSelection {
2600
2647
  uid?: boolean | number;
2601
2648
  name?: boolean | number;
2602
2649
  slug?: boolean | number;
2650
+ /** Canonical public URL on ITM. Always returned, whatever the drop's visibility; check isPublic and isActive before sharing it. */
2651
+ publicUrl?: boolean | number;
2603
2652
  subtitle?: boolean | number;
2604
2653
  disclosures?: boolean | number;
2605
2654
  isPublic?: boolean | number;
@@ -3121,6 +3170,8 @@ interface PartnerMembershipTierGenqlSelection {
3121
3170
  passType?: boolean | number;
3122
3171
  /** Amount in hundredths of the currency's major unit (always x100, including zero-decimal currencies such as JPY) */
3123
3172
  price?: boolean | number;
3173
+ /** Canonical public URL on ITM. Always returned, whatever the pass's visibility; check isPublic and isActive before sharing it. */
3174
+ publicUrl?: boolean | number;
3124
3175
  slug?: boolean | number;
3125
3176
  sortOrder?: boolean | number;
3126
3177
  supplyCap?: boolean | number;
@@ -3295,7 +3346,7 @@ interface QueryGenqlSelection {
3295
3346
  uid: Scalars['String'];
3296
3347
  };
3297
3348
  });
3298
- /** Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents. */
3349
+ /** Active brand-linked assets, newest first. Defaults to 50, capped at 100. READ_MEDIA for agents; itm:media:write for AI connections. */
3299
3350
  getPartnerMediaAssets?: (GetPartnerMediaAssetsResponseGenqlSelection & {
3300
3351
  __args: {
3301
3352
  input: GetPartnerMediaAssetsInput;
@@ -3307,7 +3358,7 @@ interface QueryGenqlSelection {
3307
3358
  input: GetMerchPaginatedInput;
3308
3359
  };
3309
3360
  });
3310
- /** An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents. */
3361
+ /** An active asset linked to the caller's brand; null when unavailable. READ_MEDIA for agents; itm:media:write for AI connections. */
3311
3362
  getPartnerMediaAsset?: (MediaAssetGenqlSelection & {
3312
3363
  __args: {
3313
3364
  uid: Scalars['String'];
@@ -3855,9 +3906,44 @@ interface MediaAssetUploadUrlGenqlSelection {
3855
3906
  __typename?: boolean | number;
3856
3907
  __scalar?: boolean | number;
3857
3908
  }
3909
+ interface CreatePartnerMediaUploadInput {
3910
+ /**
3911
+ * MIME type of the file: image/jpeg, image/png, image/gif, image/webp, image/avif,
3912
+ * video/mp4, video/quicktime, video/webm, audio/mpeg, audio/mp4, audio/wav,
3913
+ * audio/flac, audio/ogg or audio/webm.
3914
+ */
3915
+ contentType: Scalars['String'];
3916
+ /** Exact file size in bytes. Images up to 25 MB, audio up to 250 MB, video up to 1 GB. */
3917
+ byteSize: Scalars['Int'];
3918
+ }
3919
+ /**
3920
+ * A short-lived upload that stores only the declared type and exact size.
3921
+ * Returned by createPartnerMediaUpload.
3922
+ */
3923
+ interface PartnerMediaUploadGenqlSelection {
3924
+ /** Pass back to completePartnerMediaUpload after the PUT. */
3925
+ uploadKey?: boolean | number;
3926
+ /**
3927
+ * PUT the file here with the declared Content-Type and exact byte size (both signed).
3928
+ * Treat it as a secret until it expires.
3929
+ */
3930
+ uploadUrl?: boolean | number;
3931
+ expiresAt?: boolean | number;
3932
+ __typename?: boolean | number;
3933
+ __scalar?: boolean | number;
3934
+ }
3935
+ interface CompletePartnerMediaUploadInput {
3936
+ /** uploadKey from createPartnerMediaUpload. */
3937
+ uploadKey: Scalars['String'];
3938
+ /**
3939
+ * Frame size of a video, when known. Ignored for images, which are measured
3940
+ * from the file, and for audio.
3941
+ */
3942
+ dimensions?: (DimensionsInput | null);
3943
+ }
3858
3944
  /**
3859
3945
  * A media asset uploaded by a partner.
3860
- * Returned by createPartnerMediaAsset.
3946
+ * Returned by completePartnerMediaUpload and createPartnerMediaAsset.
3861
3947
  */
3862
3948
  interface MediaAssetGenqlSelection {
3863
3949
  uid?: boolean | number;
@@ -3949,7 +4035,29 @@ interface MutationGenqlSelection {
3949
4035
  };
3950
4036
  };
3951
4037
  /**
3952
- * Get a presigned S3 URL for direct file upload.
4038
+ * Start a brand media upload: a short-lived URL that stores only the declared
4039
+ * type and exact size. PUT the file there, then call completePartnerMediaUpload.
4040
+ * Partner tokens, and AI connections holding itm:media:write.
4041
+ * Rate limited to 30 requests per minute.
4042
+ */
4043
+ createPartnerMediaUpload?: (PartnerMediaUploadGenqlSelection & {
4044
+ __args: {
4045
+ input: CreatePartnerMediaUploadInput;
4046
+ };
4047
+ });
4048
+ /**
4049
+ * Verify an uploaded file and add it to the brand's media library. The stored
4050
+ * bytes must be the declared type; images are measured from the file.
4051
+ * Completing the same upload again returns the same asset.
4052
+ * Rate limited to 30 requests per minute.
4053
+ */
4054
+ completePartnerMediaUpload?: (MediaAssetGenqlSelection & {
4055
+ __args: {
4056
+ input: CompletePartnerMediaUploadInput;
4057
+ };
4058
+ });
4059
+ /**
4060
+ * Legacy upload URL with no type or size check. Prefer createPartnerMediaUpload.
3953
4061
  * Rate limited to 30 requests per minute.
3954
4062
  */
3955
4063
  getPartnerUploadUrl?: (MediaAssetUploadUrlGenqlSelection & {
@@ -3959,8 +4067,8 @@ interface MutationGenqlSelection {
3959
4067
  };
3960
4068
  });
3961
4069
  /**
3962
- * Record an uploaded media asset and link it to the partner's brand.
3963
- * Call after uploading to S3 via the presigned URL from getPartnerUploadUrl.
4070
+ * Record a file uploaded through getPartnerUploadUrl and link it to the partner's brand.
4071
+ * Legacy: the type and dimensions are taken as given. Prefer completePartnerMediaUpload.
3964
4072
  */
3965
4073
  createPartnerMediaAsset?: (MediaAssetGenqlSelection & {
3966
4074
  __args: {
@@ -4735,6 +4843,8 @@ interface FormGenqlSelection {
4735
4843
  mode?: boolean | number;
4736
4844
  name?: boolean | number;
4737
4845
  preSubmitCalloutText?: boolean | number;
4846
+ /** Canonical public URL on ITM. Always returned, whatever the form's visibility; check isPublic and isActive before sharing it. */
4847
+ publicUrl?: boolean | number;
4738
4848
  relevancyScoringContext?: boolean | number;
4739
4849
  relevancyScoringEnabled?: boolean | number;
4740
4850
  responsesCount?: boolean | number;
@@ -5095,4 +5205,73 @@ declare class ITMPartnerTransportError extends Error {
5095
5205
  constructor(status: number | undefined, requestId?: string | undefined);
5096
5206
  }
5097
5207
 
5098
- export { type AgentThreadSeedContext, type ApplyDynamicPricingInput, type BrandAgentEmailMessageInput, type BrandAgentEmailSendBatch, type BrandAgentEmailSendBatchStatus, type BrandAgentEmailSendMessage, type BrandAgentEmailSendMessageStatus, type BrandApp, type BrandAppStatus, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type ChargeCategory, type ChargeStatus, type CheckoutMarketingConsentInput, type CheckoutMarketingConsentPrompt, type CheckoutPlatform, type ConsentChannel, type ConsentPromptCategory, type ConsentStatus, type ContributionAdmin, type ContributionPageAdmin, type ContributionPageStatusFilter, type ContributionPagesResponse, type ContributionSource, type ContributionStatus, type ContributionsResponse, type CreateBrandAppInput, type CreateManualContributionInput, type CreateMomentOnlineConfigInput, type CreatePartnerBrandDropInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMerchPurchaseInput, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type CreatePlanBudgetInput, type CreatePlanInput, 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, type Form, type FormFaq, type FormField, type FormFieldOptionImage, type FormFieldSection, type FormFieldType, type FormResponseMode, type FormSource, type FulfillmentPlatform, GenqlError, type GetBrandEchoesForUserResponse, type GetFormsPaginatedResponse, type GetInPersonOrdersResponse, type GetMerchPaginatedInput, type GetMerchPaginatedResponse, type GetMomentGalleryPhotosResponse, type GetMomentGuestListFiltersInput, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerFormResponsesInput, type GetPartnerFormResponsesResponse, type GetPartnerFormsInput, type GetPartnerGuestListCheckInsResponse, type GetPartnerInPersonChargesResponse, type GetPartnerMediaAssetsInput, type GetPartnerMediaAssetsResponse, type GetPartnerMembersInput, type GetPartnerMembersResponse, type GetPartnerMembershipTiersInput, type GetPartnerMembershipTiersResponse, type GetPartnerMomentGuestListResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPlansInput, type GetPlansResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerAgentAccessConfig, type ITMPartnerAgentAccessCredentials, type ITMPartnerAgentSessionConfig, type ITMPartnerAgentSessionCredentials, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type ITMPartnerIntegrationConfig, type ITMPartnerIntegrationCredentials, type ITMPartnerTokenConfig, ITMPartnerTransportError, type InPersonCharge, type InPersonOrder, type InPersonOrderItem, type InPersonOrderItemType, type InPersonOrderMerchPurchase, type InPersonOrderRefund, type InPersonOrderRefundAllocation, type InPersonOrderRefundAllocationStatus, type InPersonOrderRefundSource, type InPersonOrderRefundStatus, type InPersonOrderStatus, type InPersonOrderTicket, type InPersonOrderUser, type LinkingMethod, type LoginCodeChannel, type ManualContributionReceiptType, type MediaAsset, type MediaAssetUploadUrl, type MembershipBillingInterval, type MembershipExpiryType, type MembershipPassType, type MembershipPurchaseType, type MembershipSource, type MembershipStatus, type Merch, type MerchFiltersInput, type MerchFulfillmentType, type MerchPurchase, type MerchPurchaseFulfillmentChoice, type MerchPurchasePaymentMethod, type MerchPurchaseSource, type MerchPurchaseState, type MerchSize, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentGuestListCheckInSource, type MomentGuestListCheckInStatus, type MomentGuestListGuestInfo, type MomentGuestListLabel, type MomentGuestListSortField, type MomentGuestListSortInput, type MomentGuestListSource, type MomentGuestListTotals, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentMedia, type MomentOccurrenceScheduleFrequency, type MomentOnlineProvider, type MomentPublicVenuePreview, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentTagAssignment, type MomentType, type MusicReleaseType, type Mutation, type PaginationInput, type PartnerAppLogin, type PartnerAppLoginChallenge, type PartnerAppLoginProfile, type PartnerAudienceCustomer, type PartnerAudienceFiltersInput, type PartnerAudienceSortField, type PartnerAudienceSortInput, type PartnerBrand, type PartnerCustomer, type PartnerFormFieldResponse, type PartnerFormResponse, type PartnerGuestListCheckIn, type PartnerGuestListInvitationResponse, type PartnerInPersonCharge, type PartnerMember, type PartnerMemberCustomer, type PartnerMemberTier, type PartnerMembershipTier, type PartnerMerchCustomerInput, type PartnerMerchPurchase, type PartnerMerchShippingAddressInput, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestList, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketStatus, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type PartnerTicketUserLookupInput, type PartnerTicketsForUserInput, type Payment, type PaymentStatus, type Plan, type PlanBudget, type PlanBudgetAllocationType, type PlanBudgetArtistDealBasis, type PlanBudgetArtistDealInput, type PlanBudgetArtistDealType, type PlanBudgetCapacityAllocationInput, type PlanBudgetCategoryInput, type PlanBudgetCategoryKind, type PlanBudgetChargeCalculation, type PlanBudgetChargeKind, type PlanBudgetChargeTreatment, type PlanBudgetExternalTicketingChannelInput, type PlanBudgetFeeAssessment, type PlanBudgetFeeComponentKind, type PlanBudgetFeePercentageBasis, type PlanBudgetGuaranteeBasis, type PlanBudgetLineBasis, type PlanBudgetLineInput, type PlanBudgetPaymentStatus, type PlanBudgetPricingMode, type PlanBudgetSummary, type PlanBudgetTicketChargeRuleInput, type PlanBudgetTicketTierInput, type PlanBudgetTicketingChannelType, type PlanBudgetTicketingFeeComponentInput, type PlanKind, type PlanLinkMetadataStatus, type PlanMoodboard, type PlanMoodboardItem, type PlanMoodboardItemType, type PlanSchedule, type PlanScheduleInput, type PlanScheduleTime, type PlanScheduleTimeInput, type PlanScheduleType, type PlanStatus, type PlanSummary, type PlanningProposal, type PlanningSource, type PlanningSourceDispositionInput, type PlanningSourceSection, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PreparePlanningProposalInput, type PublicMomentLineupInfo, type Query, type ReplacePlanBudgetDraftInput, type RespondToMomentLineupInput, type SendPartnerAgentEmailInput, type SortDirection, type StartPartnerAppLoginInput, type SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketState, type TicketTier, type Transforms, type UpdatePlanInput, type User, type UserLinkingStatus, type UserSource, type Venue, type VenueInput, type VerifyPartnerAppLoginInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
5208
+ /**
5209
+ * The file to upload: bytes already in memory, or a path on disk. Give
5210
+ * `contentType` when you know it; otherwise it is read from the file's
5211
+ * signature (and from a Blob's own `type`).
5212
+ */
5213
+ type ITMPartnerMediaSource = {
5214
+ data: Uint8Array | ArrayBuffer | Blob;
5215
+ contentType?: string;
5216
+ } | {
5217
+ path: string;
5218
+ contentType?: string;
5219
+ };
5220
+ interface ITMPartnerMediaUploadOptions {
5221
+ /** Frame size of a video, when known. Images are measured by ITM. */
5222
+ dimensions?: {
5223
+ width: number;
5224
+ height: number;
5225
+ };
5226
+ /** Cancels the storage PUT and stops between steps. Pass the same signal to the client to cancel API calls in flight. */
5227
+ signal?: AbortSignal;
5228
+ /** Used for the storage PUT only. Defaults to the global `fetch`. */
5229
+ fetch?: typeof fetch;
5230
+ }
5231
+ /** The asset `uploadPartnerMedia` returns. Use `uid` wherever ITM takes a media asset. */
5232
+ interface ITMPartnerUploadedMedia {
5233
+ uid: string;
5234
+ url: string;
5235
+ mimeType: string;
5236
+ size: number;
5237
+ dimensions: {
5238
+ width: number | null;
5239
+ height: number | null;
5240
+ };
5241
+ createdAt: string;
5242
+ }
5243
+ /**
5244
+ * A failure outside the ITM API: the file could not be read or recognized
5245
+ * (`read`), or storage refused the bytes (`upload`). API failures keep their
5246
+ * own types, `GenqlError` and `ITMPartnerTransportError`. The upload URL is a
5247
+ * credential and never appears in a message.
5248
+ */
5249
+ declare class ITMPartnerMediaUploadError extends Error {
5250
+ readonly stage: 'read' | 'upload';
5251
+ /** HTTP status from storage, for `upload` failures that got a response. */
5252
+ readonly status?: number | undefined;
5253
+ readonly name = "ITMPartnerMediaUploadError";
5254
+ constructor(stage: 'read' | 'upload', message: string,
5255
+ /** HTTP status from storage, for `upload` failures that got a response. */
5256
+ status?: number | undefined);
5257
+ }
5258
+ /**
5259
+ * The media types ITM accepts, recognized from a file's first bytes. Returns
5260
+ * every type the signature fits (a WebM container may be audio or video), most
5261
+ * likely first, or an empty list when the file is none of them.
5262
+ */
5263
+ declare function detectPartnerMediaTypes(prefix: Uint8Array): string[];
5264
+ /**
5265
+ * Upload a file to the brand's media library in one call: reserve a signed
5266
+ * upload, PUT the bytes straight to storage, then have ITM verify the file and
5267
+ * return the asset. Works with a partner token, or an integration credential
5268
+ * holding `itm:media:write`.
5269
+ *
5270
+ * ```typescript
5271
+ * const asset = await uploadPartnerMedia(itm, { path: './cover.jpg' });
5272
+ * // asset.uid is the coverImageUid for createPartnerMoment
5273
+ * ```
5274
+ */
5275
+ declare function uploadPartnerMedia(client: ITMPartnerClient, source: ITMPartnerMediaSource, options?: ITMPartnerMediaUploadOptions): Promise<ITMPartnerUploadedMedia>;
5276
+
5277
+ export { type AgentThreadSeedContext, type ApplyDynamicPricingInput, type BrandAgentEmailMessageInput, type BrandAgentEmailSendBatch, type BrandAgentEmailSendBatchStatus, type BrandAgentEmailSendMessage, type BrandAgentEmailSendMessageStatus, type BrandApp, type BrandAppStatus, type BrandDrop, type BrandDropCtaType, type BrandDropMusicLink, type BrandSubscription, type ChargeCategory, type ChargeStatus, type CheckoutMarketingConsentInput, type CheckoutMarketingConsentPrompt, type CheckoutPlatform, type CompletePartnerMediaUploadInput, type ConsentChannel, type ConsentPromptCategory, type ConsentStatus, type ContributionAdmin, type ContributionPageAdmin, type ContributionPageStatusFilter, type ContributionPagesResponse, type ContributionSource, type ContributionStatus, type ContributionsResponse, type CreateBrandAppInput, type CreateManualContributionInput, type CreateMomentOnlineConfigInput, type CreatePartnerBrandDropInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, type CreatePartnerMediaUploadInput, type CreatePartnerMerchPurchaseInput, type CreatePartnerMomentInput, type CreatePartnerTicketTierInput, type CreatePlanBudgetInput, type CreatePlanInput, 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, type Form, type FormFaq, type FormField, type FormFieldOptionImage, type FormFieldSection, type FormFieldType, type FormResponseMode, type FormSource, type FulfillmentPlatform, GenqlError, type GetBrandEchoesForUserResponse, type GetFormsPaginatedResponse, type GetInPersonOrdersResponse, type GetMerchPaginatedInput, type GetMerchPaginatedResponse, type GetMomentGalleryPhotosResponse, type GetMomentGuestListFiltersInput, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerFormResponsesInput, type GetPartnerFormResponsesResponse, type GetPartnerFormsInput, type GetPartnerGuestListCheckInsResponse, type GetPartnerInPersonChargesResponse, type GetPartnerMediaAssetsInput, type GetPartnerMediaAssetsResponse, type GetPartnerMembersInput, type GetPartnerMembersResponse, type GetPartnerMembershipTiersInput, type GetPartnerMembershipTiersResponse, type GetPartnerMomentGuestListResponse, type GetPartnerTicketTiersForMomentInput, type GetPartnerTicketTiersForMomentResponse, type GetPlansInput, type GetPlansResponse, type GetPublicMomentsResponse, type GetTicketsResponse, type ITMPartnerAgentAccessConfig, type ITMPartnerAgentAccessCredentials, type ITMPartnerAgentSessionConfig, type ITMPartnerAgentSessionCredentials, type ITMPartnerClient, type ITMPartnerClientConfig, type ITMPartnerHeaders, type ITMPartnerHeadersObject, type ITMPartnerIntegrationConfig, type ITMPartnerIntegrationCredentials, type ITMPartnerMediaSource, ITMPartnerMediaUploadError, type ITMPartnerMediaUploadOptions, type ITMPartnerTokenConfig, ITMPartnerTransportError, type ITMPartnerUploadedMedia, type InPersonCharge, type InPersonOrder, type InPersonOrderItem, type InPersonOrderItemType, type InPersonOrderMerchPurchase, type InPersonOrderRefund, type InPersonOrderRefundAllocation, type InPersonOrderRefundAllocationStatus, type InPersonOrderRefundSource, type InPersonOrderRefundStatus, type InPersonOrderStatus, type InPersonOrderTicket, type InPersonOrderUser, type LinkingMethod, type LoginCodeChannel, type ManualContributionReceiptType, type MediaAsset, type MediaAssetUploadUrl, type MembershipBillingInterval, type MembershipExpiryType, type MembershipPassType, type MembershipPurchaseType, type MembershipSource, type MembershipStatus, type Merch, type MerchFiltersInput, type MerchFulfillmentType, type MerchPurchase, type MerchPurchaseFulfillmentChoice, type MerchPurchasePaymentMethod, type MerchPurchaseSource, type MerchPurchaseState, type MerchSize, type Moment, type MomentCategory, type MomentCollection, type MomentCollectionLink, type MomentDiscountCodeUsage, type MomentDynamicPricingPolicy, type MomentDynamicPricingTierRule, type MomentGuestListCheckInSource, type MomentGuestListCheckInStatus, type MomentGuestListGuestInfo, type MomentGuestListLabel, type MomentGuestListSortField, type MomentGuestListSortInput, type MomentGuestListSource, type MomentGuestListTotals, type MomentLineup, type MomentLineupDisplayLabel, type MomentLineupResponseResult, type MomentLineupStatus, type MomentLineupType, type MomentMedia, type MomentOccurrenceScheduleFrequency, type MomentOnlineProvider, type MomentPublicVenuePreview, type MomentSortOrder, type MomentStatus, type MomentSubcategory, type MomentTagAssignment, type MomentType, type MusicReleaseType, type Mutation, type PaginationInput, type PartnerAppLogin, type PartnerAppLoginChallenge, type PartnerAppLoginProfile, type PartnerAudienceCustomer, type PartnerAudienceFiltersInput, type PartnerAudienceSortField, type PartnerAudienceSortInput, type PartnerBrand, type PartnerCustomer, type PartnerFormFieldResponse, type PartnerFormResponse, type PartnerGuestListCheckIn, type PartnerGuestListInvitationResponse, type PartnerInPersonCharge, type PartnerMediaUpload, type PartnerMember, type PartnerMemberCustomer, type PartnerMemberTier, type PartnerMembershipTier, type PartnerMerchCustomerInput, type PartnerMerchPurchase, type PartnerMerchShippingAddressInput, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestList, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketStatus, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type PartnerTicketUserLookupInput, type PartnerTicketsForUserInput, type Payment, type PaymentStatus, type Plan, type PlanBudget, type PlanBudgetAllocationType, type PlanBudgetArtistDealBasis, type PlanBudgetArtistDealInput, type PlanBudgetArtistDealType, type PlanBudgetCapacityAllocationInput, type PlanBudgetCategoryInput, type PlanBudgetCategoryKind, type PlanBudgetChargeCalculation, type PlanBudgetChargeKind, type PlanBudgetChargeTreatment, type PlanBudgetExternalTicketingChannelInput, type PlanBudgetFeeAssessment, type PlanBudgetFeeComponentKind, type PlanBudgetFeePercentageBasis, type PlanBudgetGuaranteeBasis, type PlanBudgetLineBasis, type PlanBudgetLineInput, type PlanBudgetPaymentStatus, type PlanBudgetPricingMode, type PlanBudgetSummary, type PlanBudgetTicketChargeRuleInput, type PlanBudgetTicketTierInput, type PlanBudgetTicketingChannelType, type PlanBudgetTicketingFeeComponentInput, type PlanKind, type PlanLinkMetadataStatus, type PlanMoodboard, type PlanMoodboardItem, type PlanMoodboardItemType, type PlanSchedule, type PlanScheduleInput, type PlanScheduleTime, type PlanScheduleTimeInput, type PlanScheduleType, type PlanStatus, type PlanSummary, type PlanningProposal, type PlanningSource, type PlanningSourceDispositionInput, type PlanningSourceSection, type PostSubscriptionEmailInput, type PostSubscriptionMessageInput, type PostSubscriptionPushInput, type PostSubscriptionSmsInput, type PreparePlanningProposalInput, type PublicMomentLineupInfo, type Query, type ReplacePlanBudgetDraftInput, type RespondToMomentLineupInput, type SendPartnerAgentEmailInput, type SortDirection, type StartPartnerAppLoginInput, type SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketState, type TicketTier, type Transforms, type UpdatePlanInput, type User, type UserLinkingStatus, type UserSource, type Venue, type VenueInput, type VerifyPartnerAppLoginInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, detectPartnerMediaTypes, everything, generateMutationOp, generateQueryOp, uploadPartnerMedia };