@itm-studio/partner-sdk 0.3.7 → 0.4.0

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
@@ -877,6 +877,37 @@ Supported filters include `ticketTierUids`, `search`, `isActive`, `isPrivate`,
877
877
  `remainingSupply`, min/max `fillRate`, admission-window bounds (`startsAt`,
878
878
  `endsAt`), and slot date bounds (`slotDateStart`, `slotDateEnd`).
879
879
 
880
+ ### `getPartnerTicketsForUser`
881
+
882
+ Look up the current holder's tickets across your brand with one call. Provide exactly one of `userUid`, `email`, or `phoneNumber`. Emails are trimmed and lowercased; phones normalize to E.164 (US national format is accepted). Verified email identities are also matched. Unknown users return an empty page.
883
+
884
+ ```typescript
885
+ const { getPartnerTicketsForUser } = await itm.query({
886
+ getPartnerTicketsForUser: {
887
+ __args: { input: { email: 'customer@example.com' } },
888
+ tickets: {
889
+ uid: true,
890
+ status: true,
891
+ encryptedQRCode: true,
892
+ redeemedAt: true,
893
+ ticketTier: { name: true },
894
+ moment: {
895
+ name: true, startDate: true, endDate: true, timezone: true,
896
+ coverImage: { url: true },
897
+ venue: { name: true, city: true },
898
+ },
899
+ },
900
+ totalCount: true,
901
+ hasNextPage: true,
902
+ nextCursor: true,
903
+ },
904
+ });
905
+ ```
906
+
907
+ Defaults to `momentStatuses: ['UPCOMING', 'LIVE']`, `ticketStatuses: ['VALID']`, and `take: 50` (maximum 100). Use `momentStatuses: ['ENDED']` for past events or `ticketStatuses: ['REFUNDED', 'CANCELLED']` for voided tickets. Explicit empty status lists match nothing. Results sort by event start time, ticket creation time, then UID. Pass the opaque `nextCursor` with the same identifiers and filters to continue.
908
+
909
+ `VALID` maps to the scanner's confirmed ticket state; check-in remains `redeemedAt`. Other statuses are `REFUNDED`, `CANCELLED`, `PENDING`, and `FAILED`. Transfers move the existing row to the new holder and rotate its QR, so there is no `TRANSFERRED` row. This endpoint requires a partner token; agent credentials are rejected. Keep partner tokens on your server and verify the requesting app user's identity before exposing their tickets or QR codes.
910
+
880
911
  ### `getPartnerTicketsForMoment`
881
912
 
882
913
  Get confirmed tickets for a moment owned by your partner token's brand. The
@@ -1581,6 +1612,75 @@ await itm.mutation({
1581
1612
  });
1582
1613
  ```
1583
1614
 
1615
+ ### Create a subscribe drop and capture signups without OTP
1616
+
1617
+ Use a **partner API token on your server**. First create a drop, then pass its UID
1618
+ with each signup. These mutations use the brand associated with the token.
1619
+
1620
+ ```ts
1621
+ const { createPartnerBrandDrop: drop } = await itm.mutation({
1622
+ createPartnerBrandDrop: {
1623
+ __args: {
1624
+ input: {
1625
+ name: 'Join our community',
1626
+ ctaType: 'SUBSCRIBE',
1627
+ coverImageUid: 'your-brand-image-uid',
1628
+ isPublic: true,
1629
+ captureName: true,
1630
+ captureEmail: true,
1631
+ consentText: 'I agree to receive updates from this brand.',
1632
+ },
1633
+ },
1634
+ uid: true,
1635
+ slug: true,
1636
+ },
1637
+ });
1638
+
1639
+ const { createPartnerBrandSubscription: signup } = await itm.mutation({
1640
+ createPartnerBrandSubscription: {
1641
+ __args: {
1642
+ input: {
1643
+ dropUid: drop.uid,
1644
+ fullName: 'Jane Subscriber',
1645
+ email: 'jane@example.com',
1646
+ phoneNumber: '+14155550123',
1647
+ requireOtpVerification: false, // Also the default when omitted.
1648
+ compliance: {
1649
+ pageUrl: 'https://example.com/join',
1650
+ submissionMethod: 'partner_sdk',
1651
+ },
1652
+ },
1653
+ },
1654
+ verificationRequired: true,
1655
+ subscription: { uid: true, isActive: true },
1656
+ },
1657
+ });
1658
+ // signup.verificationRequired === false; no OTP or user login step is required.
1659
+ ```
1660
+
1661
+ - `createPartnerBrandDrop` supports `ctaType: 'SUBSCRIBE'`. Upload/register an
1662
+ image with `getPartnerUploadUrl` and `createPartnerMediaAsset`, or select an
1663
+ existing image with `getPartnerMediaAssets`. Both cover images must be active
1664
+ assets owned by this brand. Save the returned drop UID and reuse it for signups;
1665
+ retrying drop creation creates another drop.
1666
+ - `dropUid` is optional. Supplying it creates both the brand subscription and the
1667
+ drop attribution, using the existing drop consent, list, and trigger flow.
1668
+ Retrying a signup reuses the subscription and its drop attribution.
1669
+ - The drop must belong to the token's brand, be undeleted, and use `SUBSCRIBE`.
1670
+ Required name/email capture still applies. Full names need first and last name;
1671
+ emails are normalized and phones use E.164. Existing drops with required custom
1672
+ checkbox or guest-information fields still enforce those requirements; this
1673
+ simple signup input does not collect those additional fields.
1674
+ - Contact detail synchronization runs asynchronously. Account email ownership
1675
+ remains subject to the existing profile verification/conflict rules; it does
1676
+ not block creation of the subscription. Subscription capture does not verify
1677
+ the person's identity.
1678
+ - Only submit people who opted in. The drop's configured `consentText` is stored
1679
+ with its attribution. Supply the subscriber's actual compliance metadata when
1680
+ available; otherwise request metadata describes your server.
1681
+ - Both mutations require a partner token (agent sessions are not accepted) and
1682
+ are limited to 30 requests per minute. Queue larger imports accordingly.
1683
+
1584
1684
  ### `createPartnerBrandSubscription`
1585
1685
 
1586
1686
  Subscribe a phone number to the authenticated partner brand.
package/dist/index.d.mts CHANGED
@@ -273,7 +273,9 @@ interface User {
273
273
  updatedAt: Scalars['DateTime'];
274
274
  __typename: 'User';
275
275
  }
276
+ type PartnerTicketStatus = 'VALID' | 'REFUNDED' | 'CANCELLED' | 'PENDING' | 'FAILED';
276
277
  interface Ticket {
278
+ status: PartnerTicketStatus;
277
279
  uid: Scalars['ID'];
278
280
  price: Scalars['Float'];
279
281
  redeemedAt: (Scalars['DateTime'] | null);
@@ -939,6 +941,11 @@ interface Query {
939
941
  * externalPlatform with externalId. Returns null when no owned moment matches.
940
942
  */
941
943
  getPartnerMomentAttendanceStats: (PartnerMomentAttendanceStats | null);
944
+ /**
945
+ * Get paginated tickets currently held by one user across the partner brand.
946
+ * Verify the app user's identity on your server before exposing tickets or QR codes.
947
+ */
948
+ getPartnerTicketsForUser: GetTicketsResponse;
942
949
  /**
943
950
  * Get confirmed tickets for a moment owned by the partner token's brand.
944
951
  * Use the user filter when retrieving an attendee's tickets for QR display.
@@ -1064,6 +1071,8 @@ interface Mutation {
1064
1071
  * Call after uploading to S3 via the presigned URL from getPartnerUploadUrl.
1065
1072
  */
1066
1073
  createPartnerMediaAsset: MediaAsset;
1074
+ /** Create a SUBSCRIBE drop for the authenticated partner brand. */
1075
+ createPartnerBrandDrop: BrandDrop;
1067
1076
  /**
1068
1077
  * Subscribe a user to the authenticated partner brand.
1069
1078
  * Set requireOtpVerification to true to start a two-step OTP flow.
@@ -1526,6 +1535,7 @@ interface UserGenqlSelection {
1526
1535
  __scalar?: boolean | number;
1527
1536
  }
1528
1537
  interface TicketGenqlSelection {
1538
+ status?: boolean | number;
1529
1539
  uid?: boolean | number;
1530
1540
  price?: boolean | number;
1531
1541
  redeemedAt?: boolean | number;
@@ -1672,6 +1682,16 @@ interface PartnerMomentAttendanceStatsGenqlSelection {
1672
1682
  __typename?: boolean | number;
1673
1683
  __scalar?: boolean | number;
1674
1684
  }
1685
+ /** Exactly one account identifier. Current holders only, scoped to the token brand. */
1686
+ interface PartnerTicketsForUserInput {
1687
+ userUid?: (Scalars['String'] | null);
1688
+ email?: (Scalars['String'] | null);
1689
+ phoneNumber?: (Scalars['String'] | null);
1690
+ momentStatuses?: (MomentStatus[] | null);
1691
+ ticketStatuses?: (PartnerTicketStatus[] | null);
1692
+ cursor?: (Scalars['String'] | null);
1693
+ take?: (Scalars['Int'] | null);
1694
+ }
1675
1695
  /**
1676
1696
  * Match the current ITM ticket owner by exactly one of userUid, email, or phoneNumber.
1677
1697
  * For an attendee app, derive this identifier from the authenticated user's verified
@@ -2394,6 +2414,15 @@ interface QueryGenqlSelection {
2394
2414
  input: PartnerMomentAttendanceLookupInput;
2395
2415
  };
2396
2416
  });
2417
+ /**
2418
+ * Get paginated tickets currently held by one user across the partner brand.
2419
+ * Verify the app user's identity on your server before exposing tickets or QR codes.
2420
+ */
2421
+ getPartnerTicketsForUser?: (GetTicketsResponseGenqlSelection & {
2422
+ __args: {
2423
+ input: PartnerTicketsForUserInput;
2424
+ };
2425
+ });
2397
2426
  /**
2398
2427
  * Get confirmed tickets for a moment owned by the partner token's brand.
2399
2428
  * Use the user filter when retrieving an attendee's tickets for QR display.
@@ -2790,7 +2819,24 @@ interface PostSubscriptionMessageInput {
2790
2819
  email?: (PostSubscriptionEmailInput | null);
2791
2820
  push?: (PostSubscriptionPushInput | null);
2792
2821
  }
2822
+ interface CreatePartnerBrandDropInput {
2823
+ name: Scalars['String'];
2824
+ subtitle?: (Scalars['String'] | null);
2825
+ disclosures?: (Scalars['String'] | null);
2826
+ isPublic?: (Scalars['Boolean'] | null);
2827
+ /** Only SUBSCRIBE is supported for partner-created drops. */
2828
+ ctaType: BrandDropCtaType;
2829
+ captureName?: (Scalars['Boolean'] | null);
2830
+ captureEmail?: (Scalars['Boolean'] | null);
2831
+ consentText?: (Scalars['String'] | null);
2832
+ /** Active image asset belonging to the authenticated brand. */
2833
+ coverImageUid: Scalars['String'];
2834
+ coverImageMobileUid?: (Scalars['String'] | null);
2835
+ brandListUids?: (Scalars['String'][] | null);
2836
+ }
2793
2837
  interface CreatePartnerBrandSubscriptionInput {
2838
+ /** Optional SUBSCRIBE drop UID belonging to the authenticated partner brand. */
2839
+ dropUid?: (Scalars['String'] | null);
2794
2840
  compliance?: (SubscriptionComplianceInput | null);
2795
2841
  /**
2796
2842
  * Exact opt-in disclosure the subscriber accepted, stored as consent evidence
@@ -2910,6 +2956,12 @@ interface MutationGenqlSelection {
2910
2956
  reservationUid?: (Scalars['String'] | null);
2911
2957
  };
2912
2958
  });
2959
+ /** Create a SUBSCRIBE drop for the authenticated partner brand. */
2960
+ createPartnerBrandDrop?: (BrandDropGenqlSelection & {
2961
+ __args: {
2962
+ input: CreatePartnerBrandDropInput;
2963
+ };
2964
+ });
2913
2965
  /**
2914
2966
  * Subscribe a user to the authenticated partner brand.
2915
2967
  * Set requireOtpVerification to true to start a two-step OTP flow.
@@ -3501,4 +3553,4 @@ type ITMPartnerClient = Client;
3501
3553
  */
3502
3554
  declare function createITMPartnerClient(config: ITMPartnerClientConfig): ITMPartnerClient;
3503
3555
 
3504
- 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 ContributionAdmin, type ContributionPageAdmin, type ContributionPageStatusFilter, type ContributionPagesResponse, type ContributionSource, type ContributionStatus, type ContributionsResponse, type CreateManualContributionInput, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, 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, GenqlError, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerMediaAssetsInput, type GetPartnerMediaAssetsResponse, type GetPartnerMembersInput, type GetPartnerMembersResponse, type GetPartnerMembershipTiersInput, type GetPartnerMembershipTiersResponse, 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 ITMPartnerTokenConfig, type ManualContributionReceiptType, type MediaAsset, type MediaAssetUploadUrl, type MembershipBillingInterval, type MembershipExpiryType, type MembershipPassType, type MembershipPurchaseType, type MembershipSource, type MembershipStatus, 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 MomentOccurrenceScheduleFrequency, type MomentOnlineProvider, type MomentPublicVenuePreview, 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 PartnerMember, type PartnerMemberCustomer, type PartnerMemberTier, type PartnerMembershipTier, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type PartnerTicketUserLookupInput, 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 SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type Transforms, type UpdatePlanInput, type User, type UserSource, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
3556
+ 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 ContributionAdmin, type ContributionPageAdmin, type ContributionPageStatusFilter, type ContributionPagesResponse, type ContributionSource, type ContributionStatus, type ContributionsResponse, type CreateManualContributionInput, type CreateMomentOnlineConfigInput, type CreatePartnerBrandDropInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, 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, GenqlError, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerMediaAssetsInput, type GetPartnerMediaAssetsResponse, type GetPartnerMembersInput, type GetPartnerMembersResponse, type GetPartnerMembershipTiersInput, type GetPartnerMembershipTiersResponse, 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 ITMPartnerTokenConfig, type ManualContributionReceiptType, type MediaAsset, type MediaAssetUploadUrl, type MembershipBillingInterval, type MembershipExpiryType, type MembershipPassType, type MembershipPurchaseType, type MembershipSource, type MembershipStatus, 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 MomentOccurrenceScheduleFrequency, type MomentOnlineProvider, type MomentPublicVenuePreview, 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 PartnerMember, type PartnerMemberCustomer, type PartnerMemberTier, type PartnerMembershipTier, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, 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 SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type Transforms, type UpdatePlanInput, type User, type UserSource, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
package/dist/index.d.ts CHANGED
@@ -273,7 +273,9 @@ interface User {
273
273
  updatedAt: Scalars['DateTime'];
274
274
  __typename: 'User';
275
275
  }
276
+ type PartnerTicketStatus = 'VALID' | 'REFUNDED' | 'CANCELLED' | 'PENDING' | 'FAILED';
276
277
  interface Ticket {
278
+ status: PartnerTicketStatus;
277
279
  uid: Scalars['ID'];
278
280
  price: Scalars['Float'];
279
281
  redeemedAt: (Scalars['DateTime'] | null);
@@ -939,6 +941,11 @@ interface Query {
939
941
  * externalPlatform with externalId. Returns null when no owned moment matches.
940
942
  */
941
943
  getPartnerMomentAttendanceStats: (PartnerMomentAttendanceStats | null);
944
+ /**
945
+ * Get paginated tickets currently held by one user across the partner brand.
946
+ * Verify the app user's identity on your server before exposing tickets or QR codes.
947
+ */
948
+ getPartnerTicketsForUser: GetTicketsResponse;
942
949
  /**
943
950
  * Get confirmed tickets for a moment owned by the partner token's brand.
944
951
  * Use the user filter when retrieving an attendee's tickets for QR display.
@@ -1064,6 +1071,8 @@ interface Mutation {
1064
1071
  * Call after uploading to S3 via the presigned URL from getPartnerUploadUrl.
1065
1072
  */
1066
1073
  createPartnerMediaAsset: MediaAsset;
1074
+ /** Create a SUBSCRIBE drop for the authenticated partner brand. */
1075
+ createPartnerBrandDrop: BrandDrop;
1067
1076
  /**
1068
1077
  * Subscribe a user to the authenticated partner brand.
1069
1078
  * Set requireOtpVerification to true to start a two-step OTP flow.
@@ -1526,6 +1535,7 @@ interface UserGenqlSelection {
1526
1535
  __scalar?: boolean | number;
1527
1536
  }
1528
1537
  interface TicketGenqlSelection {
1538
+ status?: boolean | number;
1529
1539
  uid?: boolean | number;
1530
1540
  price?: boolean | number;
1531
1541
  redeemedAt?: boolean | number;
@@ -1672,6 +1682,16 @@ interface PartnerMomentAttendanceStatsGenqlSelection {
1672
1682
  __typename?: boolean | number;
1673
1683
  __scalar?: boolean | number;
1674
1684
  }
1685
+ /** Exactly one account identifier. Current holders only, scoped to the token brand. */
1686
+ interface PartnerTicketsForUserInput {
1687
+ userUid?: (Scalars['String'] | null);
1688
+ email?: (Scalars['String'] | null);
1689
+ phoneNumber?: (Scalars['String'] | null);
1690
+ momentStatuses?: (MomentStatus[] | null);
1691
+ ticketStatuses?: (PartnerTicketStatus[] | null);
1692
+ cursor?: (Scalars['String'] | null);
1693
+ take?: (Scalars['Int'] | null);
1694
+ }
1675
1695
  /**
1676
1696
  * Match the current ITM ticket owner by exactly one of userUid, email, or phoneNumber.
1677
1697
  * For an attendee app, derive this identifier from the authenticated user's verified
@@ -2394,6 +2414,15 @@ interface QueryGenqlSelection {
2394
2414
  input: PartnerMomentAttendanceLookupInput;
2395
2415
  };
2396
2416
  });
2417
+ /**
2418
+ * Get paginated tickets currently held by one user across the partner brand.
2419
+ * Verify the app user's identity on your server before exposing tickets or QR codes.
2420
+ */
2421
+ getPartnerTicketsForUser?: (GetTicketsResponseGenqlSelection & {
2422
+ __args: {
2423
+ input: PartnerTicketsForUserInput;
2424
+ };
2425
+ });
2397
2426
  /**
2398
2427
  * Get confirmed tickets for a moment owned by the partner token's brand.
2399
2428
  * Use the user filter when retrieving an attendee's tickets for QR display.
@@ -2790,7 +2819,24 @@ interface PostSubscriptionMessageInput {
2790
2819
  email?: (PostSubscriptionEmailInput | null);
2791
2820
  push?: (PostSubscriptionPushInput | null);
2792
2821
  }
2822
+ interface CreatePartnerBrandDropInput {
2823
+ name: Scalars['String'];
2824
+ subtitle?: (Scalars['String'] | null);
2825
+ disclosures?: (Scalars['String'] | null);
2826
+ isPublic?: (Scalars['Boolean'] | null);
2827
+ /** Only SUBSCRIBE is supported for partner-created drops. */
2828
+ ctaType: BrandDropCtaType;
2829
+ captureName?: (Scalars['Boolean'] | null);
2830
+ captureEmail?: (Scalars['Boolean'] | null);
2831
+ consentText?: (Scalars['String'] | null);
2832
+ /** Active image asset belonging to the authenticated brand. */
2833
+ coverImageUid: Scalars['String'];
2834
+ coverImageMobileUid?: (Scalars['String'] | null);
2835
+ brandListUids?: (Scalars['String'][] | null);
2836
+ }
2793
2837
  interface CreatePartnerBrandSubscriptionInput {
2838
+ /** Optional SUBSCRIBE drop UID belonging to the authenticated partner brand. */
2839
+ dropUid?: (Scalars['String'] | null);
2794
2840
  compliance?: (SubscriptionComplianceInput | null);
2795
2841
  /**
2796
2842
  * Exact opt-in disclosure the subscriber accepted, stored as consent evidence
@@ -2910,6 +2956,12 @@ interface MutationGenqlSelection {
2910
2956
  reservationUid?: (Scalars['String'] | null);
2911
2957
  };
2912
2958
  });
2959
+ /** Create a SUBSCRIBE drop for the authenticated partner brand. */
2960
+ createPartnerBrandDrop?: (BrandDropGenqlSelection & {
2961
+ __args: {
2962
+ input: CreatePartnerBrandDropInput;
2963
+ };
2964
+ });
2913
2965
  /**
2914
2966
  * Subscribe a user to the authenticated partner brand.
2915
2967
  * Set requireOtpVerification to true to start a two-step OTP flow.
@@ -3501,4 +3553,4 @@ type ITMPartnerClient = Client;
3501
3553
  */
3502
3554
  declare function createITMPartnerClient(config: ITMPartnerClientConfig): ITMPartnerClient;
3503
3555
 
3504
- 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 ContributionAdmin, type ContributionPageAdmin, type ContributionPageStatusFilter, type ContributionPagesResponse, type ContributionSource, type ContributionStatus, type ContributionsResponse, type CreateManualContributionInput, type CreateMomentOnlineConfigInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, 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, GenqlError, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerMediaAssetsInput, type GetPartnerMediaAssetsResponse, type GetPartnerMembersInput, type GetPartnerMembersResponse, type GetPartnerMembershipTiersInput, type GetPartnerMembershipTiersResponse, 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 ITMPartnerTokenConfig, type ManualContributionReceiptType, type MediaAsset, type MediaAssetUploadUrl, type MembershipBillingInterval, type MembershipExpiryType, type MembershipPassType, type MembershipPurchaseType, type MembershipSource, type MembershipStatus, 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 MomentOccurrenceScheduleFrequency, type MomentOnlineProvider, type MomentPublicVenuePreview, 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 PartnerMember, type PartnerMemberCustomer, type PartnerMemberTier, type PartnerMembershipTier, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, type PartnerMomentGuestlistAttendance, type PartnerMomentGuestlistLabelAttendance, type PartnerMomentStats, type PartnerMomentTicketAttendance, type PartnerMomentTicketTierAttendance, type PartnerMomentsFiltersInput, type PartnerTicketTier, type PartnerTicketTierUpdateInput, type PartnerTicketUserLookupInput, 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 SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type Transforms, type UpdatePlanInput, type User, type UserSource, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };
3556
+ 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 ContributionAdmin, type ContributionPageAdmin, type ContributionPageStatusFilter, type ContributionPagesResponse, type ContributionSource, type ContributionStatus, type ContributionsResponse, type CreateManualContributionInput, type CreateMomentOnlineConfigInput, type CreatePartnerBrandDropInput, type CreatePartnerBrandSubscriptionInput, type CreatePartnerBrandSubscriptionResponse, 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, GenqlError, type GetBrandEchoesForUserResponse, type GetMomentLineupsResponse, type GetMomentTagAssignmentsResponse, type GetPartnerAudienceInput, type GetPartnerAudienceResponse, type GetPartnerCustomersResponse, type GetPartnerDropsResponse, type GetPartnerMediaAssetsInput, type GetPartnerMediaAssetsResponse, type GetPartnerMembersInput, type GetPartnerMembersResponse, type GetPartnerMembershipTiersInput, type GetPartnerMembershipTiersResponse, 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 ITMPartnerTokenConfig, type ManualContributionReceiptType, type MediaAsset, type MediaAssetUploadUrl, type MembershipBillingInterval, type MembershipExpiryType, type MembershipPassType, type MembershipPurchaseType, type MembershipSource, type MembershipStatus, 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 MomentOccurrenceScheduleFrequency, type MomentOnlineProvider, type MomentPublicVenuePreview, 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 PartnerMember, type PartnerMemberCustomer, type PartnerMemberTier, type PartnerMembershipTier, type PartnerMomentAttendanceCount, type PartnerMomentAttendanceLookupInput, type PartnerMomentAttendanceStats, 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 SubscriptionComplianceInput, type Tag, type TagSource, type ThirdPartyEchoType, type Ticket, type TicketAdmissionWindowSource, type TicketAttendanceMode, type TicketExtension, type TicketExtensionStatus, type TicketTier, type Transforms, type UpdatePlanInput, type User, type UserSource, type Venue, type VenueInput, type VerifyPartnerBrandSubscriptionInput, createITMPartnerClient, everything, generateMutationOp, generateQueryOp };