@globalscoutme/api-client 1.1.7 → 1.1.9
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 +2 -2
- package/dist/index.js +1 -1
- package/dist/sdk.gen.d.ts +9 -1
- package/dist/sdk.gen.js +24 -0
- package/dist/types.gen.d.ts +236 -0
- package/index.ts +28 -0
- package/package.json +2 -2
- package/sdk.gen.ts +65 -0
- package/tsconfig.json +2 -1
- package/types.gen.ts +267 -0
- package/README.md +0 -298
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Achievements, Auth, Billing, Body, Challenges, Clubs, Cmj, Dashboard, Documents, GlobalScoutMeClient, Index, Invitations, Kyc, Measurements, Notifications, Offers, type Options, Organizations, Players, Profile, Storage, Subscriptions, Training, VideoMetrics, Videos, } from './sdk.gen.js';
|
|
2
|
-
export type { AchievementCatalogDto, AiReportClipDto, AiReportClipTargetDto, AiReportImprovementAreaDto, AiReportMetaDto, AiReportPillarDetailDto, AiReportResultResponseDto, AiReportSubcategoryDto, AiReportViewDto, AuthMeResponseDto, BillingEntitlementResponseDto, BillingManageActionDto, BillingPlanDto, BillingPlansResponseDto, BillingProductDto, BillingProductsResponseDto, BillingProviderProductDto, BodyMeasurementProfileDto, BodyMeasurementResponseDto, CancelKycRequestDto, CareerAchievementDto, ChallengeCatalogDto, CheckoutResultDto, ClientOptions, ClubResponseDto, CmjMeasurementProfileDto, CmjMeasurementResponseDto, ConversationDetailDto, ConversationItemDto, ConversationListResultDto, ConversationOrganizationDto, ConversationParticipantDto, CountryDto, CreateBodyMeasurementDto, CreateCheckoutDto, CreateClubDto, CreateConversationDto, CreateDocumentDto, CreateMeasurementPlayerSessionDto, CreatePortalDto, CreateUploadUrlDto, CreateVideoDto, DashboardResponseDto, DashboardStatsDto, DashboardVideoCardDto, DeactivatePushDeviceDto, DeleteApiClubsMeByIdData, DeleteApiClubsMeByIdErrors, DeleteApiClubsMeByIdResponse, DeleteApiClubsMeByIdResponses, DeleteApiDocumentsByIdData, DeleteApiDocumentsByIdErrors, DeleteApiDocumentsByIdResponse, DeleteApiDocumentsByIdResponses, DeleteApiInvitationsByIdData, DeleteApiInvitationsByIdErrors, DeleteApiInvitationsByIdResponse, DeleteApiInvitationsByIdResponses, DeleteApiNotificationsDevicesCurrentData, DeleteApiNotificationsDevicesCurrentResponse, DeleteApiNotificationsDevicesCurrentResponses, DeleteApiPlayersMeData, DeleteApiPlayersMeErrors, DeleteApiPlayersMeResponse, DeleteApiPlayersMeResponses, DeleteApiVideosByIdData, DeleteApiVideosByIdErrors, DeleteApiVideosByIdResponse, DeleteApiVideosByIdResponses, DivisionDto, DocumentResponseDto, GetApiAchievementsData, GetApiAchievementsMeData, GetApiAchievementsMeErrors, GetApiAchievementsMeResponse, GetApiAchievementsMeResponses, GetApiAchievementsResponse, GetApiAchievementsResponses, GetApiAuthMeData, GetApiAuthMeErrors, GetApiAuthMeResponse, GetApiAuthMeResponses, GetApiBillingMeData, GetApiBillingMeResponse, GetApiBillingMeResponses, GetApiBillingPlansData, GetApiBillingPlansResponse, GetApiBillingPlansResponses, GetApiBillingProductsData, GetApiBillingProductsResponse, GetApiBillingProductsResponses, GetApiBillingReportPurchasesByIdReportData, GetApiBillingReportPurchasesByIdReportResponse, GetApiBillingReportPurchasesByIdReportResponses, GetApiBillingReportPurchasesCurrentData, GetApiBillingReportPurchasesCurrentResponse, GetApiBillingReportPurchasesCurrentResponses, GetApiBodyMeasurementsMeData, GetApiBodyMeasurementsMeErrors, GetApiBodyMeasurementsMeResponse, GetApiBodyMeasurementsMeResponses, GetApiChallengesData, GetApiChallengesErrors, GetApiChallengesMeData, GetApiChallengesMeErrors, GetApiChallengesMeResponse, GetApiChallengesMeResponses, GetApiChallengesResponse, GetApiChallengesResponses, GetApiClubsMeData, GetApiClubsMeErrors, GetApiClubsMeResponse, GetApiClubsMeResponses, GetApiCmjMeasurementsMeData, GetApiCmjMeasurementsMeErrors, GetApiCmjMeasurementsMeResponse, GetApiCmjMeasurementsMeResponses, GetApiDashboardMeData, GetApiDashboardMeErrors, GetApiDashboardMeResponse, GetApiDashboardMeResponses, GetApiDashboardVideosByIdPlayUrlData, GetApiDashboardVideosByIdPlayUrlErrors, GetApiDashboardVideosByIdPlayUrlResponse, GetApiDashboardVideosByIdPlayUrlResponses, GetApiDocumentsMeData, GetApiDocumentsMeErrors, GetApiDocumentsMeResponse, GetApiDocumentsMeResponses, GetApiIndexByTableNameData, GetApiIndexByTableNameErrors, GetApiIndexByTableNameResponse, GetApiIndexByTableNameResponses, GetApiIndexCountriesData, GetApiIndexCountriesErrors, GetApiIndexCountriesResponse, GetApiIndexCountriesResponses, GetApiInvitationsData, GetApiInvitationsResponse, GetApiInvitationsResponses, GetApiKycStatusByUserIdData, GetApiKycStatusByUserIdErrors, GetApiKycStatusByUserIdResponse, GetApiKycStatusByUserIdResponses, GetApiMeasurementsProfileMeData, GetApiMeasurementsProfileMeErrors, GetApiMeasurementsProfileMeResponse, GetApiMeasurementsProfileMeResponses, GetApiNotificationsPreferencesData, GetApiNotificationsPreferencesResponse, GetApiNotificationsPreferencesResponses, GetApiOffersConversationsByIdMessagesData, GetApiOffersConversationsByIdMessagesErrors, GetApiOffersConversationsByIdMessagesResponse, GetApiOffersConversationsByIdMessagesResponses, GetApiOffersConversationsData, GetApiOffersConversationsErrors, GetApiOffersConversationsResponse, GetApiOffersConversationsResponses, GetApiOrganizationsMeData, GetApiOrganizationsMeErrors, GetApiOrganizationsMeResponse, GetApiOrganizationsMeResponses, GetApiPlayersByIdData, GetApiPlayersByIdErrors, GetApiPlayersByIdMeasurementsData, GetApiPlayersByIdMeasurementsErrors, GetApiPlayersByIdMeasurementsResponse, GetApiPlayersByIdMeasurementsResponses, GetApiPlayersByIdReportData, GetApiPlayersByIdReportErrors, GetApiPlayersByIdReportResponse, GetApiPlayersByIdReportResponses, GetApiPlayersByIdResponse, GetApiPlayersByIdResponses, GetApiPlayersByIdVideoMetricsData, GetApiPlayersByIdVideoMetricsErrors, GetApiPlayersByIdVideoMetricsResponse, GetApiPlayersByIdVideoMetricsResponses, GetApiPlayersMeDashboardData, GetApiPlayersMeDashboardErrors, GetApiPlayersMeDashboardResponse, GetApiPlayersMeDashboardResponses, GetApiPlayersMeData, GetApiPlayersMeErrors, GetApiPlayersMeResponse, GetApiPlayersMeResponses, GetApiProfileMeData, GetApiProfileMeErrors, GetApiProfileMeResponse, GetApiProfileMeResponses, GetApiSubscriptionsMeData, GetApiSubscriptionsMeResponse, GetApiSubscriptionsMeResponses, GetApiSubscriptionsPlansData, GetApiSubscriptionsPlansResponse, GetApiSubscriptionsPlansResponses, GetApiTrainingByIdData, GetApiTrainingByIdErrors, GetApiTrainingByIdResponse, GetApiTrainingByIdResponses, GetApiTrainingData, GetApiTrainingErrors, GetApiTrainingGroupedData, GetApiTrainingGroupedErrors, GetApiTrainingGroupedResponse, GetApiTrainingGroupedResponses, GetApiTrainingResponse, GetApiTrainingResponses, GetApiVideoMetricsMeData, GetApiVideoMetricsMeErrors, GetApiVideoMetricsMeResponse, GetApiVideoMetricsMeResponses, GetApiVideosByIdPlayUrlData, GetApiVideosByIdPlayUrlErrors, GetApiVideosByIdPlayUrlResponse, GetApiVideosByIdPlayUrlResponses, GetApiVideosMeData, GetApiVideosMeErrors, GetApiVideosMeResponse, GetApiVideosMeResponses, HeartbeatDto, HeartbeatResponseDto, IndexItemDto, InvitationResponseDto, KycStatusDto, KycWebhookDto, MarkSubmittedKycRequestDto, MeasurementProfileResponseDto, MeasurementSessionDto, MeasurementSessionMetricsDto, MeasurementTagEvaluationDto, MessageItemDto, MessageListResultDto, MessageSenderDto, MyChallengeDto, MySubscriptionDto, NotificationPreferencesDto, OkDto, OrganizationResponseDto, PaginatedTrainingContentDto, PatchApiClubsMeByIdData, PatchApiClubsMeByIdErrors, PatchApiClubsMeByIdResponse, PatchApiClubsMeByIdResponses, PatchApiNotificationsPreferencesData, PatchApiNotificationsPreferencesResponse, PatchApiNotificationsPreferencesResponses, PatchApiOffersConversationsByIdReadData, PatchApiOffersConversationsByIdReadErrors, PatchApiOffersConversationsByIdReadResponses, PatchApiPlayersMeData, PatchApiPlayersMeErrors, PatchApiPlayersMeResponse, PatchApiPlayersMeResponses, PlansListDto, PlayerAchievementDto, PlayerByIdDto, PlayerClubDto, PlayerReportResponseDto, PlayerReportViewDto, PlayerResponseDto, PlayerSearchItemDto, PlayerSearchRequestDto, PlayerSearchResultDto, PlayerVideoDto, PlayUrlResponseDto, PortalResultDto, PostApiBillingAccessCodesRedeemData, PostApiBillingAccessCodesRedeemResponse, PostApiBillingAccessCodesRedeemResponses, PostApiBillingAppleSyncPurchaseData, PostApiBillingAppleSyncPurchaseResponses, PostApiBillingGoogleSyncPurchaseData, PostApiBillingGoogleSyncPurchaseResponses, PostApiBillingReportPurchasesByIdStartGenerationData, PostApiBillingReportPurchasesByIdStartGenerationResponse, PostApiBillingReportPurchasesByIdStartGenerationResponses, PostApiBillingReportPurchasesPlayerCandidatesData, PostApiBillingReportPurchasesPlayerCandidatesResponse, PostApiBillingReportPurchasesPlayerCandidatesResponses, PostApiBillingStripeCheckoutSessionData, PostApiBillingStripeCheckoutSessionResponses, PostApiBillingStripePortalSessionData, PostApiBillingStripePortalSessionResponses, PostApiBodyMeasurementsData, PostApiBodyMeasurementsErrors, PostApiBodyMeasurementsResponse, PostApiBodyMeasurementsResponses, PostApiClubsMeData, PostApiClubsMeErrors, PostApiClubsMeResponse, PostApiClubsMeResponses, PostApiDocumentsData, PostApiDocumentsErrors, PostApiDocumentsResponse, PostApiDocumentsResponses, PostApiInvitationsAcceptData, PostApiInvitationsAcceptResponse, PostApiInvitationsAcceptResponses, PostApiInvitationsByIdResendData, PostApiInvitationsByIdResendErrors, PostApiInvitationsByIdResendResponse, PostApiInvitationsByIdResendResponses, PostApiInvitationsData, PostApiInvitationsErrors, PostApiInvitationsResponse, PostApiInvitationsResponses, PostApiKycCancelData, PostApiKycCancelErrors, PostApiKycCancelResponse, PostApiKycCancelResponses, PostApiKycMarkSubmittedData, PostApiKycMarkSubmittedErrors, PostApiKycMarkSubmittedResponse, PostApiKycMarkSubmittedResponses, PostApiKycSmileLinkData, PostApiKycSmileLinkErrors, PostApiKycSmileLinkResponse, PostApiKycSmileLinkResponses, PostApiKycStartData, PostApiKycStartErrors, PostApiKycStartResponse, PostApiKycStartResponses, PostApiKycWebhookData, PostApiKycWebhookErrors, PostApiKycWebhookResponses, PostApiMeasurementsPlayerSessionMeData, PostApiMeasurementsPlayerSessionMeErrors, PostApiMeasurementsPlayerSessionMeResponse, PostApiMeasurementsPlayerSessionMeResponses, PostApiNotificationsDevicesData, PostApiNotificationsDevicesResponse, PostApiNotificationsDevicesResponses, PostApiOffersConversationsByIdMessagesData, PostApiOffersConversationsByIdMessagesErrors, PostApiOffersConversationsByIdMessagesResponse, PostApiOffersConversationsByIdMessagesResponses, PostApiOffersConversationsData, PostApiOffersConversationsErrors, PostApiOffersConversationsResponse, PostApiOffersConversationsResponses, PostApiOrganizationsRegisterAgentData, PostApiOrganizationsRegisterAgentErrors, PostApiOrganizationsRegisterAgentResponse, PostApiOrganizationsRegisterAgentResponses, PostApiOrganizationsRegisterClubData, PostApiOrganizationsRegisterClubErrors, PostApiOrganizationsRegisterClubResponse, PostApiOrganizationsRegisterClubResponses, PostApiPlayersMeHeartbeatData, PostApiPlayersMeHeartbeatErrors, PostApiPlayersMeHeartbeatResponse, PostApiPlayersMeHeartbeatResponses, PostApiPlayersSearchData, PostApiPlayersSearchErrors, PostApiPlayersSearchResponse, PostApiPlayersSearchResponses, PostApiStorageUploadUrlData, PostApiStorageUploadUrlErrors, PostApiStorageUploadUrlResponse, PostApiStorageUploadUrlResponses, PostApiSubscriptionsCheckoutData, PostApiSubscriptionsCheckoutErrors, PostApiSubscriptionsCheckoutResponse, PostApiSubscriptionsCheckoutResponses, PostApiSubscriptionsPortalData, PostApiSubscriptionsPortalErrors, PostApiSubscriptionsPortalResponse, PostApiSubscriptionsPortalResponses, PostApiSubscriptionsWebhookData, PostApiSubscriptionsWebhookErrors, PostApiSubscriptionsWebhookResponses, PostApiVideosData, PostApiVideosErrors, PostApiVideosResponse, PostApiVideosResponses, PreviousClubDto, ProfileResponseDto, ProviderCheckoutRequestDto, PushDeviceRegistrationResultDto, PutApiOrganizationsMeData, PutApiOrganizationsMeErrors, PutApiOrganizationsMeResponse, PutApiOrganizationsMeResponses, PutApiProfileMeData, PutApiProfileMeErrors, PutApiProfileMeResponse, PutApiProfileMeResponses, RedeemAccessCodeDto, RegisterAgentDto, RegisterAgentResponseDto, RegisterClubDto, RegisterClubResponseDto, RegisterPushDeviceDto, ReportGenerationStartResponseDto, ReportPlayerCandidateBboxDto, ReportPlayerCandidateDto, ReportPlayerCandidatesRequestDto, ReportPlayerCandidatesResponseDto, ReportPlayerCandidateTargetDto, ReportPrerequisiteDto, ReportPurchaseDto, ReportPurchaseStatusResponseDto, ReportVideoCandidatesDto, ScoutDashboardResponseDto, SendInvitationRequestDto, SendMessageDto, SmileLinkRequestDto, SmileLinkResponseDto, StartKycRequestDto, StartKycResponseDto, StartReportGenerationClipDto, StartReportGenerationRequestDto, StorePurchaseSyncRequestDto, SubscriptionPlanDto, TrainingCategoryGroupDto, TrainingContentDetailDto, TrainingContentListItemDto, UpdateClubDto, UpdateNotificationPreferencesDto, UpdateOrganizationDto, UpdatePlayerDto, UpdateProfileDto, UploadUrlResponseDto, UserAchievementResponseDto, VideoMetricsMeResponseDto, VideoMetricsPhysicalMetricsDto, VideoResponseDto, WatchingOrgDto, WebhookPartnerParamsDto, } from './types.gen.js';
|
|
1
|
+
export { Achievements, Auth, Billing, Body, Challenges, Clubs, Cmj, Dashboard, Documents, GlobalScoutMeClient, Index, Invitations, Kyc, Measurements, Notifications, Offers, type Options, Organizations, Players, Profile, Storage, Subscriptions, Training, VideoLinks, VideoMetrics, Videos, } from './sdk.gen.js';
|
|
2
|
+
export type { AchievementCatalogDto, AiReportClipDto, AiReportClipTargetDto, AiReportGsiAthleticSourceInputDto, AiReportGsiBodySourceInputDto, AiReportGsiComponentDto, AiReportGsiReasonDto, AiReportGsiSnapshotDto, AiReportGsiSourceInputsDto, AiReportGsiVideoSourceInputDto, AiReportImprovementAreaDto, AiReportMetaDto, AiReportPillarDetailDto, AiReportResultResponseDto, AiReportSubcategoryDto, AiReportVideoAttributeScoresDto, AiReportViewDto, AuthMeResponseDto, BillingEntitlementResponseDto, BillingManageActionDto, BillingPlanDto, BillingPlansResponseDto, BillingProductDto, BillingProductsResponseDto, BillingProviderProductDto, BodyMeasurementProfileDto, BodyMeasurementResponseDto, CancelKycRequestDto, CareerAchievementDto, ChallengeCatalogDto, CheckoutResultDto, ClientOptions, ClubResponseDto, CmjMeasurementProfileDto, CmjMeasurementResponseDto, ConversationDetailDto, ConversationItemDto, ConversationListResultDto, ConversationOrganizationDto, ConversationParticipantDto, CountryDto, CreateBodyMeasurementDto, CreateCheckoutDto, CreateClubDto, CreateConversationDto, CreateDocumentDto, CreateMeasurementPlayerSessionDto, CreatePortalDto, CreateUploadUrlDto, CreateVideoDto, CreateVideoLinkDto, DashboardResponseDto, DashboardStatsDto, DashboardVideoCardDto, DeactivatePushDeviceDto, DeleteApiClubsMeByIdData, DeleteApiClubsMeByIdErrors, DeleteApiClubsMeByIdResponse, DeleteApiClubsMeByIdResponses, DeleteApiDocumentsByIdData, DeleteApiDocumentsByIdErrors, DeleteApiDocumentsByIdResponse, DeleteApiDocumentsByIdResponses, DeleteApiInvitationsByIdData, DeleteApiInvitationsByIdErrors, DeleteApiInvitationsByIdResponse, DeleteApiInvitationsByIdResponses, DeleteApiNotificationsDevicesCurrentData, DeleteApiNotificationsDevicesCurrentResponse, DeleteApiNotificationsDevicesCurrentResponses, DeleteApiPlayersMeData, DeleteApiPlayersMeErrors, DeleteApiPlayersMeResponse, DeleteApiPlayersMeResponses, DeleteApiVideoLinksByIdData, DeleteApiVideoLinksByIdErrors, DeleteApiVideoLinksByIdResponse, DeleteApiVideoLinksByIdResponses, DeleteApiVideosByIdData, DeleteApiVideosByIdErrors, DeleteApiVideosByIdResponse, DeleteApiVideosByIdResponses, DivisionDto, DocumentResponseDto, GetApiAchievementsData, GetApiAchievementsMeData, GetApiAchievementsMeErrors, GetApiAchievementsMeResponse, GetApiAchievementsMeResponses, GetApiAchievementsResponse, GetApiAchievementsResponses, GetApiAuthMeData, GetApiAuthMeErrors, GetApiAuthMeResponse, GetApiAuthMeResponses, GetApiBillingMeData, GetApiBillingMeResponse, GetApiBillingMeResponses, GetApiBillingPlansData, GetApiBillingPlansResponse, GetApiBillingPlansResponses, GetApiBillingProductsData, GetApiBillingProductsResponse, GetApiBillingProductsResponses, GetApiBillingReportPurchasesByIdReportData, GetApiBillingReportPurchasesByIdReportResponse, GetApiBillingReportPurchasesByIdReportResponses, GetApiBillingReportPurchasesCurrentData, GetApiBillingReportPurchasesCurrentResponse, GetApiBillingReportPurchasesCurrentResponses, GetApiBillingReportPurchasesHistoryData, GetApiBillingReportPurchasesHistoryResponse, GetApiBillingReportPurchasesHistoryResponses, GetApiBodyMeasurementsMeData, GetApiBodyMeasurementsMeErrors, GetApiBodyMeasurementsMeResponse, GetApiBodyMeasurementsMeResponses, GetApiChallengesData, GetApiChallengesErrors, GetApiChallengesMeData, GetApiChallengesMeErrors, GetApiChallengesMeResponse, GetApiChallengesMeResponses, GetApiChallengesResponse, GetApiChallengesResponses, GetApiClubsMeData, GetApiClubsMeErrors, GetApiClubsMeResponse, GetApiClubsMeResponses, GetApiCmjMeasurementsMeData, GetApiCmjMeasurementsMeErrors, GetApiCmjMeasurementsMeResponse, GetApiCmjMeasurementsMeResponses, GetApiDashboardMeData, GetApiDashboardMeErrors, GetApiDashboardMeResponse, GetApiDashboardMeResponses, GetApiDashboardVideosByIdPlayUrlData, GetApiDashboardVideosByIdPlayUrlErrors, GetApiDashboardVideosByIdPlayUrlResponse, GetApiDashboardVideosByIdPlayUrlResponses, GetApiDocumentsMeData, GetApiDocumentsMeErrors, GetApiDocumentsMeResponse, GetApiDocumentsMeResponses, GetApiIndexByTableNameData, GetApiIndexByTableNameErrors, GetApiIndexByTableNameResponse, GetApiIndexByTableNameResponses, GetApiIndexCountriesData, GetApiIndexCountriesErrors, GetApiIndexCountriesResponse, GetApiIndexCountriesResponses, GetApiInvitationsData, GetApiInvitationsResponse, GetApiInvitationsResponses, GetApiKycStatusByUserIdData, GetApiKycStatusByUserIdErrors, GetApiKycStatusByUserIdResponse, GetApiKycStatusByUserIdResponses, GetApiMeasurementsProfileMeData, GetApiMeasurementsProfileMeErrors, GetApiMeasurementsProfileMeResponse, GetApiMeasurementsProfileMeResponses, GetApiNotificationsPreferencesData, GetApiNotificationsPreferencesResponse, GetApiNotificationsPreferencesResponses, GetApiOffersConversationsByIdMessagesData, GetApiOffersConversationsByIdMessagesErrors, GetApiOffersConversationsByIdMessagesResponse, GetApiOffersConversationsByIdMessagesResponses, GetApiOffersConversationsData, GetApiOffersConversationsErrors, GetApiOffersConversationsResponse, GetApiOffersConversationsResponses, GetApiOrganizationsMeData, GetApiOrganizationsMeErrors, GetApiOrganizationsMeResponse, GetApiOrganizationsMeResponses, GetApiPlayersByIdData, GetApiPlayersByIdErrors, GetApiPlayersByIdMeasurementsData, GetApiPlayersByIdMeasurementsErrors, GetApiPlayersByIdMeasurementsResponse, GetApiPlayersByIdMeasurementsResponses, GetApiPlayersByIdReportData, GetApiPlayersByIdReportErrors, GetApiPlayersByIdReportResponse, GetApiPlayersByIdReportResponses, GetApiPlayersByIdResponse, GetApiPlayersByIdResponses, GetApiPlayersByIdVideoMetricsData, GetApiPlayersByIdVideoMetricsErrors, GetApiPlayersByIdVideoMetricsResponse, GetApiPlayersByIdVideoMetricsResponses, GetApiPlayersMeDashboardData, GetApiPlayersMeDashboardErrors, GetApiPlayersMeDashboardResponse, GetApiPlayersMeDashboardResponses, GetApiPlayersMeData, GetApiPlayersMeErrors, GetApiPlayersMeResponse, GetApiPlayersMeResponses, GetApiProfileMeData, GetApiProfileMeErrors, GetApiProfileMeResponse, GetApiProfileMeResponses, GetApiSubscriptionsMeData, GetApiSubscriptionsMeResponse, GetApiSubscriptionsMeResponses, GetApiSubscriptionsPlansData, GetApiSubscriptionsPlansResponse, GetApiSubscriptionsPlansResponses, GetApiTrainingByIdData, GetApiTrainingByIdErrors, GetApiTrainingByIdResponse, GetApiTrainingByIdResponses, GetApiTrainingData, GetApiTrainingErrors, GetApiTrainingGroupedData, GetApiTrainingGroupedErrors, GetApiTrainingGroupedResponse, GetApiTrainingGroupedResponses, GetApiTrainingResponse, GetApiTrainingResponses, GetApiVideoLinksMeData, GetApiVideoLinksMeErrors, GetApiVideoLinksMeResponse, GetApiVideoLinksMeResponses, GetApiVideoMetricsMeData, GetApiVideoMetricsMeErrors, GetApiVideoMetricsMeResponse, GetApiVideoMetricsMeResponses, GetApiVideosByIdPlayUrlData, GetApiVideosByIdPlayUrlErrors, GetApiVideosByIdPlayUrlResponse, GetApiVideosByIdPlayUrlResponses, GetApiVideosMeData, GetApiVideosMeErrors, GetApiVideosMeResponse, GetApiVideosMeResponses, HeartbeatDto, HeartbeatResponseDto, IndexItemDto, InvitationResponseDto, KycStatusDto, KycWebhookDto, MarkSubmittedKycRequestDto, MeasurementProfileResponseDto, MeasurementSessionDto, MeasurementSessionMetricsDto, MeasurementTagEvaluationDto, MessageItemDto, MessageListResultDto, MessageSenderDto, MyChallengeDto, MySubscriptionDto, NotificationPreferencesDto, OkDto, OrganizationResponseDto, PaginatedTrainingContentDto, PatchApiClubsMeByIdData, PatchApiClubsMeByIdErrors, PatchApiClubsMeByIdResponse, PatchApiClubsMeByIdResponses, PatchApiNotificationsPreferencesData, PatchApiNotificationsPreferencesResponse, PatchApiNotificationsPreferencesResponses, PatchApiOffersConversationsByIdReadData, PatchApiOffersConversationsByIdReadErrors, PatchApiOffersConversationsByIdReadResponses, PatchApiPlayersMeData, PatchApiPlayersMeErrors, PatchApiPlayersMeResponse, PatchApiPlayersMeResponses, PlansListDto, PlayerAchievementDto, PlayerByIdDto, PlayerClubDto, PlayerReportResponseDto, PlayerReportViewDto, PlayerResponseDto, PlayerSearchItemDto, PlayerSearchRequestDto, PlayerSearchResultDto, PlayerVideoDto, PlayUrlResponseDto, PortalResultDto, PostApiBillingAccessCodesRedeemData, PostApiBillingAccessCodesRedeemResponse, PostApiBillingAccessCodesRedeemResponses, PostApiBillingAppleSyncPurchaseData, PostApiBillingAppleSyncPurchaseResponses, PostApiBillingGoogleSyncPurchaseData, PostApiBillingGoogleSyncPurchaseResponses, PostApiBillingReportPurchasesByIdStartGenerationData, PostApiBillingReportPurchasesByIdStartGenerationResponse, PostApiBillingReportPurchasesByIdStartGenerationResponses, PostApiBillingReportPurchasesPlayerCandidatesData, PostApiBillingReportPurchasesPlayerCandidatesResponse, PostApiBillingReportPurchasesPlayerCandidatesResponses, PostApiBillingStripeCheckoutSessionData, PostApiBillingStripeCheckoutSessionResponses, PostApiBillingStripePortalSessionData, PostApiBillingStripePortalSessionResponses, PostApiBodyMeasurementsData, PostApiBodyMeasurementsErrors, PostApiBodyMeasurementsResponse, PostApiBodyMeasurementsResponses, PostApiClubsMeData, PostApiClubsMeErrors, PostApiClubsMeResponse, PostApiClubsMeResponses, PostApiDocumentsData, PostApiDocumentsErrors, PostApiDocumentsResponse, PostApiDocumentsResponses, PostApiInvitationsAcceptData, PostApiInvitationsAcceptResponse, PostApiInvitationsAcceptResponses, PostApiInvitationsByIdResendData, PostApiInvitationsByIdResendErrors, PostApiInvitationsByIdResendResponse, PostApiInvitationsByIdResendResponses, PostApiInvitationsData, PostApiInvitationsErrors, PostApiInvitationsResponse, PostApiInvitationsResponses, PostApiKycCancelData, PostApiKycCancelErrors, PostApiKycCancelResponse, PostApiKycCancelResponses, PostApiKycMarkSubmittedData, PostApiKycMarkSubmittedErrors, PostApiKycMarkSubmittedResponse, PostApiKycMarkSubmittedResponses, PostApiKycSmileLinkData, PostApiKycSmileLinkErrors, PostApiKycSmileLinkResponse, PostApiKycSmileLinkResponses, PostApiKycStartData, PostApiKycStartErrors, PostApiKycStartResponse, PostApiKycStartResponses, PostApiKycWebhookData, PostApiKycWebhookErrors, PostApiKycWebhookResponses, PostApiMeasurementsPlayerSessionMeData, PostApiMeasurementsPlayerSessionMeErrors, PostApiMeasurementsPlayerSessionMeResponse, PostApiMeasurementsPlayerSessionMeResponses, PostApiNotificationsDevicesData, PostApiNotificationsDevicesResponse, PostApiNotificationsDevicesResponses, PostApiOffersConversationsByIdMessagesData, PostApiOffersConversationsByIdMessagesErrors, PostApiOffersConversationsByIdMessagesResponse, PostApiOffersConversationsByIdMessagesResponses, PostApiOffersConversationsData, PostApiOffersConversationsErrors, PostApiOffersConversationsResponse, PostApiOffersConversationsResponses, PostApiOrganizationsRegisterAgentData, PostApiOrganizationsRegisterAgentErrors, PostApiOrganizationsRegisterAgentResponse, PostApiOrganizationsRegisterAgentResponses, PostApiOrganizationsRegisterClubData, PostApiOrganizationsRegisterClubErrors, PostApiOrganizationsRegisterClubResponse, PostApiOrganizationsRegisterClubResponses, PostApiPlayersMeHeartbeatData, PostApiPlayersMeHeartbeatErrors, PostApiPlayersMeHeartbeatResponse, PostApiPlayersMeHeartbeatResponses, PostApiPlayersSearchData, PostApiPlayersSearchErrors, PostApiPlayersSearchResponse, PostApiPlayersSearchResponses, PostApiStorageUploadUrlData, PostApiStorageUploadUrlErrors, PostApiStorageUploadUrlResponse, PostApiStorageUploadUrlResponses, PostApiSubscriptionsCheckoutData, PostApiSubscriptionsCheckoutErrors, PostApiSubscriptionsCheckoutResponse, PostApiSubscriptionsCheckoutResponses, PostApiSubscriptionsPortalData, PostApiSubscriptionsPortalErrors, PostApiSubscriptionsPortalResponse, PostApiSubscriptionsPortalResponses, PostApiSubscriptionsWebhookData, PostApiSubscriptionsWebhookErrors, PostApiSubscriptionsWebhookResponses, PostApiVideoLinksData, PostApiVideoLinksErrors, PostApiVideoLinksResponse, PostApiVideoLinksResponses, PostApiVideosData, PostApiVideosErrors, PostApiVideosResponse, PostApiVideosResponses, PreviousClubDto, ProfileResponseDto, ProviderCheckoutRequestDto, PushDeviceRegistrationResultDto, PutApiOrganizationsMeData, PutApiOrganizationsMeErrors, PutApiOrganizationsMeResponse, PutApiOrganizationsMeResponses, PutApiProfileMeData, PutApiProfileMeErrors, PutApiProfileMeResponse, PutApiProfileMeResponses, RedeemAccessCodeDto, RegisterAgentDto, RegisterAgentResponseDto, RegisterClubDto, RegisterClubResponseDto, RegisterPushDeviceDto, ReportGenerationStartResponseDto, ReportPlayerCandidateBboxDto, ReportPlayerCandidateDto, ReportPlayerCandidatesRequestDto, ReportPlayerCandidatesResponseDto, ReportPlayerCandidateTargetDto, ReportPrerequisiteDto, ReportPurchaseDto, ReportPurchaseHistoryItemDto, ReportPurchaseHistoryResponseDto, ReportPurchaseStatusResponseDto, ReportVideoCandidatesDto, ScoutDashboardResponseDto, SendInvitationRequestDto, SendMessageDto, SmileLinkRequestDto, SmileLinkResponseDto, StartKycRequestDto, StartKycResponseDto, StartReportGenerationClipDto, StartReportGenerationRequestDto, StorePurchaseSyncRequestDto, SubscriptionPlanDto, TrainingCategoryGroupDto, TrainingContentDetailDto, TrainingContentListItemDto, UpdateClubDto, UpdateNotificationPreferencesDto, UpdateOrganizationDto, UpdatePlayerDto, UpdateProfileDto, UploadUrlResponseDto, UserAchievementResponseDto, VideoLinkResponseDto, VideoMetricsMeResponseDto, VideoMetricsPhysicalMetricsDto, VideoResponseDto, WatchingOrgDto, WebhookPartnerParamsDto, } from './types.gen.js';
|
|
3
3
|
export { client, type CreateClientConfig } from './client.gen.js';
|
|
4
4
|
export type { GetApiOffersConversationsData as GetOffersConversationsData } from './types.gen.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export { Achievements, Auth, Billing, Body, Challenges, Clubs, Cmj, Dashboard, Documents, GlobalScoutMeClient, Index, Invitations, Kyc, Measurements, Notifications, Offers, Organizations, Players, Profile, Storage, Subscriptions, Training, VideoMetrics, Videos, } from './sdk.gen.js';
|
|
2
|
+
export { Achievements, Auth, Billing, Body, Challenges, Clubs, Cmj, Dashboard, Documents, GlobalScoutMeClient, Index, Invitations, Kyc, Measurements, Notifications, Offers, Organizations, Players, Profile, Storage, Subscriptions, Training, VideoLinks, VideoMetrics, Videos, } from './sdk.gen.js';
|
|
3
3
|
export { client } from './client.gen.js';
|
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, Options as Options2, TDataShape } from './client/index.js';
|
|
2
|
-
import type { DeleteApiClubsMeByIdData, DeleteApiClubsMeByIdErrors, DeleteApiClubsMeByIdResponses, DeleteApiDocumentsByIdData, DeleteApiDocumentsByIdErrors, DeleteApiDocumentsByIdResponses, DeleteApiInvitationsByIdData, DeleteApiInvitationsByIdErrors, DeleteApiInvitationsByIdResponses, DeleteApiNotificationsDevicesCurrentData, DeleteApiNotificationsDevicesCurrentResponses, DeleteApiPlayersMeData, DeleteApiPlayersMeErrors, DeleteApiPlayersMeResponses, DeleteApiVideosByIdData, DeleteApiVideosByIdErrors, DeleteApiVideosByIdResponses, GetApiAchievementsData, GetApiAchievementsMeData, GetApiAchievementsMeErrors, GetApiAchievementsMeResponses, GetApiAchievementsResponses, GetApiAuthMeData, GetApiAuthMeErrors, GetApiAuthMeResponses, GetApiBillingMeData, GetApiBillingMeResponses, GetApiBillingPlansData, GetApiBillingPlansResponses, GetApiBillingProductsData, GetApiBillingProductsResponses, GetApiBillingReportPurchasesByIdReportData, GetApiBillingReportPurchasesByIdReportResponses, GetApiBillingReportPurchasesCurrentData, GetApiBillingReportPurchasesCurrentResponses, GetApiBodyMeasurementsMeData, GetApiBodyMeasurementsMeErrors, GetApiBodyMeasurementsMeResponses, GetApiChallengesData, GetApiChallengesErrors, GetApiChallengesMeData, GetApiChallengesMeErrors, GetApiChallengesMeResponses, GetApiChallengesResponses, GetApiClubsMeData, GetApiClubsMeErrors, GetApiClubsMeResponses, GetApiCmjMeasurementsMeData, GetApiCmjMeasurementsMeErrors, GetApiCmjMeasurementsMeResponses, GetApiDashboardMeData, GetApiDashboardMeErrors, GetApiDashboardMeResponses, GetApiDashboardVideosByIdPlayUrlData, GetApiDashboardVideosByIdPlayUrlErrors, GetApiDashboardVideosByIdPlayUrlResponses, GetApiDocumentsMeData, GetApiDocumentsMeErrors, GetApiDocumentsMeResponses, GetApiIndexByTableNameData, GetApiIndexByTableNameErrors, GetApiIndexByTableNameResponses, GetApiIndexCountriesData, GetApiIndexCountriesErrors, GetApiIndexCountriesResponses, GetApiInvitationsData, GetApiInvitationsResponses, GetApiKycStatusByUserIdData, GetApiKycStatusByUserIdErrors, GetApiKycStatusByUserIdResponses, GetApiMeasurementsProfileMeData, GetApiMeasurementsProfileMeErrors, GetApiMeasurementsProfileMeResponses, GetApiNotificationsPreferencesData, GetApiNotificationsPreferencesResponses, GetApiOffersConversationsByIdMessagesData, GetApiOffersConversationsByIdMessagesErrors, GetApiOffersConversationsByIdMessagesResponses, GetApiOffersConversationsData, GetApiOffersConversationsErrors, GetApiOffersConversationsResponses, GetApiOrganizationsMeData, GetApiOrganizationsMeErrors, GetApiOrganizationsMeResponses, GetApiPlayersByIdData, GetApiPlayersByIdErrors, GetApiPlayersByIdMeasurementsData, GetApiPlayersByIdMeasurementsErrors, GetApiPlayersByIdMeasurementsResponses, GetApiPlayersByIdReportData, GetApiPlayersByIdReportErrors, GetApiPlayersByIdReportResponses, GetApiPlayersByIdResponses, GetApiPlayersByIdVideoMetricsData, GetApiPlayersByIdVideoMetricsErrors, GetApiPlayersByIdVideoMetricsResponses, GetApiPlayersMeDashboardData, GetApiPlayersMeDashboardErrors, GetApiPlayersMeDashboardResponses, GetApiPlayersMeData, GetApiPlayersMeErrors, GetApiPlayersMeResponses, GetApiProfileMeData, GetApiProfileMeErrors, GetApiProfileMeResponses, GetApiSubscriptionsMeData, GetApiSubscriptionsMeResponses, GetApiSubscriptionsPlansData, GetApiSubscriptionsPlansResponses, GetApiTrainingByIdData, GetApiTrainingByIdErrors, GetApiTrainingByIdResponses, GetApiTrainingData, GetApiTrainingErrors, GetApiTrainingGroupedData, GetApiTrainingGroupedErrors, GetApiTrainingGroupedResponses, GetApiTrainingResponses, GetApiVideoMetricsMeData, GetApiVideoMetricsMeErrors, GetApiVideoMetricsMeResponses, GetApiVideosByIdPlayUrlData, GetApiVideosByIdPlayUrlErrors, GetApiVideosByIdPlayUrlResponses, GetApiVideosMeData, GetApiVideosMeErrors, GetApiVideosMeResponses, PatchApiClubsMeByIdData, PatchApiClubsMeByIdErrors, PatchApiClubsMeByIdResponses, PatchApiNotificationsPreferencesData, PatchApiNotificationsPreferencesResponses, PatchApiOffersConversationsByIdReadData, PatchApiOffersConversationsByIdReadErrors, PatchApiOffersConversationsByIdReadResponses, PatchApiPlayersMeData, PatchApiPlayersMeErrors, PatchApiPlayersMeResponses, PostApiBillingAccessCodesRedeemData, PostApiBillingAccessCodesRedeemResponses, PostApiBillingAppleSyncPurchaseData, PostApiBillingAppleSyncPurchaseResponses, PostApiBillingGoogleSyncPurchaseData, PostApiBillingGoogleSyncPurchaseResponses, PostApiBillingReportPurchasesByIdStartGenerationData, PostApiBillingReportPurchasesByIdStartGenerationResponses, PostApiBillingReportPurchasesPlayerCandidatesData, PostApiBillingReportPurchasesPlayerCandidatesResponses, PostApiBillingStripeCheckoutSessionData, PostApiBillingStripeCheckoutSessionResponses, PostApiBillingStripePortalSessionData, PostApiBillingStripePortalSessionResponses, PostApiBodyMeasurementsData, PostApiBodyMeasurementsErrors, PostApiBodyMeasurementsResponses, PostApiClubsMeData, PostApiClubsMeErrors, PostApiClubsMeResponses, PostApiDocumentsData, PostApiDocumentsErrors, PostApiDocumentsResponses, PostApiInvitationsAcceptData, PostApiInvitationsAcceptResponses, PostApiInvitationsByIdResendData, PostApiInvitationsByIdResendErrors, PostApiInvitationsByIdResendResponses, PostApiInvitationsData, PostApiInvitationsErrors, PostApiInvitationsResponses, PostApiKycCancelData, PostApiKycCancelErrors, PostApiKycCancelResponses, PostApiKycMarkSubmittedData, PostApiKycMarkSubmittedErrors, PostApiKycMarkSubmittedResponses, PostApiKycSmileLinkData, PostApiKycSmileLinkErrors, PostApiKycSmileLinkResponses, PostApiKycStartData, PostApiKycStartErrors, PostApiKycStartResponses, PostApiKycWebhookData, PostApiKycWebhookErrors, PostApiKycWebhookResponses, PostApiMeasurementsPlayerSessionMeData, PostApiMeasurementsPlayerSessionMeErrors, PostApiMeasurementsPlayerSessionMeResponses, PostApiNotificationsDevicesData, PostApiNotificationsDevicesResponses, PostApiOffersConversationsByIdMessagesData, PostApiOffersConversationsByIdMessagesErrors, PostApiOffersConversationsByIdMessagesResponses, PostApiOffersConversationsData, PostApiOffersConversationsErrors, PostApiOffersConversationsResponses, PostApiOrganizationsRegisterAgentData, PostApiOrganizationsRegisterAgentErrors, PostApiOrganizationsRegisterAgentResponses, PostApiOrganizationsRegisterClubData, PostApiOrganizationsRegisterClubErrors, PostApiOrganizationsRegisterClubResponses, PostApiPlayersMeHeartbeatData, PostApiPlayersMeHeartbeatErrors, PostApiPlayersMeHeartbeatResponses, PostApiPlayersSearchData, PostApiPlayersSearchErrors, PostApiPlayersSearchResponses, PostApiStorageUploadUrlData, PostApiStorageUploadUrlErrors, PostApiStorageUploadUrlResponses, PostApiSubscriptionsCheckoutData, PostApiSubscriptionsCheckoutErrors, PostApiSubscriptionsCheckoutResponses, PostApiSubscriptionsPortalData, PostApiSubscriptionsPortalErrors, PostApiSubscriptionsPortalResponses, PostApiSubscriptionsWebhookData, PostApiSubscriptionsWebhookErrors, PostApiSubscriptionsWebhookResponses, PostApiVideosData, PostApiVideosErrors, PostApiVideosResponses, PutApiOrganizationsMeData, PutApiOrganizationsMeErrors, PutApiOrganizationsMeResponses, PutApiProfileMeData, PutApiProfileMeErrors, PutApiProfileMeResponses } from './types.gen.js';
|
|
2
|
+
import type { DeleteApiClubsMeByIdData, DeleteApiClubsMeByIdErrors, DeleteApiClubsMeByIdResponses, DeleteApiDocumentsByIdData, DeleteApiDocumentsByIdErrors, DeleteApiDocumentsByIdResponses, DeleteApiInvitationsByIdData, DeleteApiInvitationsByIdErrors, DeleteApiInvitationsByIdResponses, DeleteApiNotificationsDevicesCurrentData, DeleteApiNotificationsDevicesCurrentResponses, DeleteApiPlayersMeData, DeleteApiPlayersMeErrors, DeleteApiPlayersMeResponses, DeleteApiVideoLinksByIdData, DeleteApiVideoLinksByIdErrors, DeleteApiVideoLinksByIdResponses, DeleteApiVideosByIdData, DeleteApiVideosByIdErrors, DeleteApiVideosByIdResponses, GetApiAchievementsData, GetApiAchievementsMeData, GetApiAchievementsMeErrors, GetApiAchievementsMeResponses, GetApiAchievementsResponses, GetApiAuthMeData, GetApiAuthMeErrors, GetApiAuthMeResponses, GetApiBillingMeData, GetApiBillingMeResponses, GetApiBillingPlansData, GetApiBillingPlansResponses, GetApiBillingProductsData, GetApiBillingProductsResponses, GetApiBillingReportPurchasesByIdReportData, GetApiBillingReportPurchasesByIdReportResponses, GetApiBillingReportPurchasesCurrentData, GetApiBillingReportPurchasesCurrentResponses, GetApiBillingReportPurchasesHistoryData, GetApiBillingReportPurchasesHistoryResponses, GetApiBodyMeasurementsMeData, GetApiBodyMeasurementsMeErrors, GetApiBodyMeasurementsMeResponses, GetApiChallengesData, GetApiChallengesErrors, GetApiChallengesMeData, GetApiChallengesMeErrors, GetApiChallengesMeResponses, GetApiChallengesResponses, GetApiClubsMeData, GetApiClubsMeErrors, GetApiClubsMeResponses, GetApiCmjMeasurementsMeData, GetApiCmjMeasurementsMeErrors, GetApiCmjMeasurementsMeResponses, GetApiDashboardMeData, GetApiDashboardMeErrors, GetApiDashboardMeResponses, GetApiDashboardVideosByIdPlayUrlData, GetApiDashboardVideosByIdPlayUrlErrors, GetApiDashboardVideosByIdPlayUrlResponses, GetApiDocumentsMeData, GetApiDocumentsMeErrors, GetApiDocumentsMeResponses, GetApiIndexByTableNameData, GetApiIndexByTableNameErrors, GetApiIndexByTableNameResponses, GetApiIndexCountriesData, GetApiIndexCountriesErrors, GetApiIndexCountriesResponses, GetApiInvitationsData, GetApiInvitationsResponses, GetApiKycStatusByUserIdData, GetApiKycStatusByUserIdErrors, GetApiKycStatusByUserIdResponses, GetApiMeasurementsProfileMeData, GetApiMeasurementsProfileMeErrors, GetApiMeasurementsProfileMeResponses, GetApiNotificationsPreferencesData, GetApiNotificationsPreferencesResponses, GetApiOffersConversationsByIdMessagesData, GetApiOffersConversationsByIdMessagesErrors, GetApiOffersConversationsByIdMessagesResponses, GetApiOffersConversationsData, GetApiOffersConversationsErrors, GetApiOffersConversationsResponses, GetApiOrganizationsMeData, GetApiOrganizationsMeErrors, GetApiOrganizationsMeResponses, GetApiPlayersByIdData, GetApiPlayersByIdErrors, GetApiPlayersByIdMeasurementsData, GetApiPlayersByIdMeasurementsErrors, GetApiPlayersByIdMeasurementsResponses, GetApiPlayersByIdReportData, GetApiPlayersByIdReportErrors, GetApiPlayersByIdReportResponses, GetApiPlayersByIdResponses, GetApiPlayersByIdVideoMetricsData, GetApiPlayersByIdVideoMetricsErrors, GetApiPlayersByIdVideoMetricsResponses, GetApiPlayersMeDashboardData, GetApiPlayersMeDashboardErrors, GetApiPlayersMeDashboardResponses, GetApiPlayersMeData, GetApiPlayersMeErrors, GetApiPlayersMeResponses, GetApiProfileMeData, GetApiProfileMeErrors, GetApiProfileMeResponses, GetApiSubscriptionsMeData, GetApiSubscriptionsMeResponses, GetApiSubscriptionsPlansData, GetApiSubscriptionsPlansResponses, GetApiTrainingByIdData, GetApiTrainingByIdErrors, GetApiTrainingByIdResponses, GetApiTrainingData, GetApiTrainingErrors, GetApiTrainingGroupedData, GetApiTrainingGroupedErrors, GetApiTrainingGroupedResponses, GetApiTrainingResponses, GetApiVideoLinksMeData, GetApiVideoLinksMeErrors, GetApiVideoLinksMeResponses, GetApiVideoMetricsMeData, GetApiVideoMetricsMeErrors, GetApiVideoMetricsMeResponses, GetApiVideosByIdPlayUrlData, GetApiVideosByIdPlayUrlErrors, GetApiVideosByIdPlayUrlResponses, GetApiVideosMeData, GetApiVideosMeErrors, GetApiVideosMeResponses, PatchApiClubsMeByIdData, PatchApiClubsMeByIdErrors, PatchApiClubsMeByIdResponses, PatchApiNotificationsPreferencesData, PatchApiNotificationsPreferencesResponses, PatchApiOffersConversationsByIdReadData, PatchApiOffersConversationsByIdReadErrors, PatchApiOffersConversationsByIdReadResponses, PatchApiPlayersMeData, PatchApiPlayersMeErrors, PatchApiPlayersMeResponses, PostApiBillingAccessCodesRedeemData, PostApiBillingAccessCodesRedeemResponses, PostApiBillingAppleSyncPurchaseData, PostApiBillingAppleSyncPurchaseResponses, PostApiBillingGoogleSyncPurchaseData, PostApiBillingGoogleSyncPurchaseResponses, PostApiBillingReportPurchasesByIdStartGenerationData, PostApiBillingReportPurchasesByIdStartGenerationResponses, PostApiBillingReportPurchasesPlayerCandidatesData, PostApiBillingReportPurchasesPlayerCandidatesResponses, PostApiBillingStripeCheckoutSessionData, PostApiBillingStripeCheckoutSessionResponses, PostApiBillingStripePortalSessionData, PostApiBillingStripePortalSessionResponses, PostApiBodyMeasurementsData, PostApiBodyMeasurementsErrors, PostApiBodyMeasurementsResponses, PostApiClubsMeData, PostApiClubsMeErrors, PostApiClubsMeResponses, PostApiDocumentsData, PostApiDocumentsErrors, PostApiDocumentsResponses, PostApiInvitationsAcceptData, PostApiInvitationsAcceptResponses, PostApiInvitationsByIdResendData, PostApiInvitationsByIdResendErrors, PostApiInvitationsByIdResendResponses, PostApiInvitationsData, PostApiInvitationsErrors, PostApiInvitationsResponses, PostApiKycCancelData, PostApiKycCancelErrors, PostApiKycCancelResponses, PostApiKycMarkSubmittedData, PostApiKycMarkSubmittedErrors, PostApiKycMarkSubmittedResponses, PostApiKycSmileLinkData, PostApiKycSmileLinkErrors, PostApiKycSmileLinkResponses, PostApiKycStartData, PostApiKycStartErrors, PostApiKycStartResponses, PostApiKycWebhookData, PostApiKycWebhookErrors, PostApiKycWebhookResponses, PostApiMeasurementsPlayerSessionMeData, PostApiMeasurementsPlayerSessionMeErrors, PostApiMeasurementsPlayerSessionMeResponses, PostApiNotificationsDevicesData, PostApiNotificationsDevicesResponses, PostApiOffersConversationsByIdMessagesData, PostApiOffersConversationsByIdMessagesErrors, PostApiOffersConversationsByIdMessagesResponses, PostApiOffersConversationsData, PostApiOffersConversationsErrors, PostApiOffersConversationsResponses, PostApiOrganizationsRegisterAgentData, PostApiOrganizationsRegisterAgentErrors, PostApiOrganizationsRegisterAgentResponses, PostApiOrganizationsRegisterClubData, PostApiOrganizationsRegisterClubErrors, PostApiOrganizationsRegisterClubResponses, PostApiPlayersMeHeartbeatData, PostApiPlayersMeHeartbeatErrors, PostApiPlayersMeHeartbeatResponses, PostApiPlayersSearchData, PostApiPlayersSearchErrors, PostApiPlayersSearchResponses, PostApiStorageUploadUrlData, PostApiStorageUploadUrlErrors, PostApiStorageUploadUrlResponses, PostApiSubscriptionsCheckoutData, PostApiSubscriptionsCheckoutErrors, PostApiSubscriptionsCheckoutResponses, PostApiSubscriptionsPortalData, PostApiSubscriptionsPortalErrors, PostApiSubscriptionsPortalResponses, PostApiSubscriptionsWebhookData, PostApiSubscriptionsWebhookErrors, PostApiSubscriptionsWebhookResponses, PostApiVideoLinksData, PostApiVideoLinksErrors, PostApiVideoLinksResponses, PostApiVideosData, PostApiVideosErrors, PostApiVideosResponses, PutApiOrganizationsMeData, PutApiOrganizationsMeErrors, PutApiOrganizationsMeResponses, PutApiProfileMeData, PutApiProfileMeErrors, PutApiProfileMeResponses } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -49,6 +49,7 @@ export declare class Billing extends HeyApiClient {
|
|
|
49
49
|
getMyBillingEntitlement<ThrowOnError extends boolean = false>(options?: Options<GetApiBillingMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiBillingMeResponses, unknown, ThrowOnError, "fields">;
|
|
50
50
|
redeemBillingAccessCode<ThrowOnError extends boolean = false>(options: Options<PostApiBillingAccessCodesRedeemData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiBillingAccessCodesRedeemResponses, unknown, ThrowOnError, "fields">;
|
|
51
51
|
getCurrentBillingReportPurchase<ThrowOnError extends boolean = false>(options?: Options<GetApiBillingReportPurchasesCurrentData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiBillingReportPurchasesCurrentResponses, unknown, ThrowOnError, "fields">;
|
|
52
|
+
listBillingReportPurchaseHistory<ThrowOnError extends boolean = false>(options?: Options<GetApiBillingReportPurchasesHistoryData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiBillingReportPurchasesHistoryResponses, unknown, ThrowOnError, "fields">;
|
|
52
53
|
getBillingReportResult<ThrowOnError extends boolean = false>(options: Options<GetApiBillingReportPurchasesByIdReportData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiBillingReportPurchasesByIdReportResponses, unknown, ThrowOnError, "fields">;
|
|
53
54
|
startBillingReportGeneration<ThrowOnError extends boolean = false>(options: Options<PostApiBillingReportPurchasesByIdStartGenerationData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiBillingReportPurchasesByIdStartGenerationResponses, unknown, ThrowOnError, "fields">;
|
|
54
55
|
findBillingReportPlayerCandidates<ThrowOnError extends boolean = false>(options: Options<PostApiBillingReportPurchasesPlayerCandidatesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiBillingReportPurchasesPlayerCandidatesResponses, unknown, ThrowOnError, "fields">;
|
|
@@ -182,6 +183,11 @@ export declare class Videos extends HeyApiClient {
|
|
|
182
183
|
getVideoPlayUrl<ThrowOnError extends boolean = false>(options: Options<GetApiVideosByIdPlayUrlData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiVideosByIdPlayUrlResponses, GetApiVideosByIdPlayUrlErrors, ThrowOnError, "fields">;
|
|
183
184
|
deleteVideo<ThrowOnError extends boolean = false>(options: Options<DeleteApiVideosByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteApiVideosByIdResponses, DeleteApiVideosByIdErrors, ThrowOnError, "fields">;
|
|
184
185
|
}
|
|
186
|
+
export declare class VideoLinks extends HeyApiClient {
|
|
187
|
+
getMyVideoLinks<ThrowOnError extends boolean = false>(options?: Options<GetApiVideoLinksMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiVideoLinksMeResponses, GetApiVideoLinksMeErrors, ThrowOnError, "fields">;
|
|
188
|
+
createVideoLink<ThrowOnError extends boolean = false>(options: Options<PostApiVideoLinksData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostApiVideoLinksResponses, PostApiVideoLinksErrors, ThrowOnError, "fields">;
|
|
189
|
+
deleteVideoLink<ThrowOnError extends boolean = false>(options: Options<DeleteApiVideoLinksByIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<DeleteApiVideoLinksByIdResponses, DeleteApiVideoLinksByIdErrors, ThrowOnError, "fields">;
|
|
190
|
+
}
|
|
185
191
|
export declare class Dashboard extends HeyApiClient {
|
|
186
192
|
getScoutDashboard<ThrowOnError extends boolean = false>(options?: Options<GetApiDashboardMeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiDashboardMeResponses, GetApiDashboardMeErrors, ThrowOnError, "fields">;
|
|
187
193
|
/**
|
|
@@ -259,6 +265,8 @@ export declare class GlobalScoutMeClient extends HeyApiClient {
|
|
|
259
265
|
get training(): Training;
|
|
260
266
|
private _videos?;
|
|
261
267
|
get videos(): Videos;
|
|
268
|
+
private _videoLinks?;
|
|
269
|
+
get videoLinks(): VideoLinks;
|
|
262
270
|
private _dashboard?;
|
|
263
271
|
get dashboard(): Dashboard;
|
|
264
272
|
private _subscriptions?;
|
package/dist/sdk.gen.js
CHANGED
|
@@ -105,6 +105,9 @@ export class Billing extends HeyApiClient {
|
|
|
105
105
|
getCurrentBillingReportPurchase(options) {
|
|
106
106
|
return (options?.client ?? this.client).get({ url: '/api/billing/report-purchases/current', ...options });
|
|
107
107
|
}
|
|
108
|
+
listBillingReportPurchaseHistory(options) {
|
|
109
|
+
return (options?.client ?? this.client).get({ url: '/api/billing/report-purchases/history', ...options });
|
|
110
|
+
}
|
|
108
111
|
getBillingReportResult(options) {
|
|
109
112
|
return (options.client ?? this.client).get({ url: '/api/billing/report-purchases/{id}/report', ...options });
|
|
110
113
|
}
|
|
@@ -547,6 +550,24 @@ export class Videos extends HeyApiClient {
|
|
|
547
550
|
return (options.client ?? this.client).delete({ url: '/api/videos/{id}', ...options });
|
|
548
551
|
}
|
|
549
552
|
}
|
|
553
|
+
export class VideoLinks extends HeyApiClient {
|
|
554
|
+
getMyVideoLinks(options) {
|
|
555
|
+
return (options?.client ?? this.client).get({ url: '/api/video-links/me', ...options });
|
|
556
|
+
}
|
|
557
|
+
createVideoLink(options) {
|
|
558
|
+
return (options.client ?? this.client).post({
|
|
559
|
+
url: '/api/video-links',
|
|
560
|
+
...options,
|
|
561
|
+
headers: {
|
|
562
|
+
'Content-Type': 'application/json',
|
|
563
|
+
...options.headers,
|
|
564
|
+
},
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
deleteVideoLink(options) {
|
|
568
|
+
return (options.client ?? this.client).delete({ url: '/api/video-links/{id}', ...options });
|
|
569
|
+
}
|
|
570
|
+
}
|
|
550
571
|
export class Dashboard extends HeyApiClient {
|
|
551
572
|
getScoutDashboard(options) {
|
|
552
573
|
return (options?.client ?? this.client).get({ url: '/api/dashboard/me', ...options });
|
|
@@ -672,6 +693,9 @@ export class GlobalScoutMeClient extends HeyApiClient {
|
|
|
672
693
|
get videos() {
|
|
673
694
|
return (this._videos ?? (this._videos = new Videos({ client: this.client })));
|
|
674
695
|
}
|
|
696
|
+
get videoLinks() {
|
|
697
|
+
return (this._videoLinks ?? (this._videoLinks = new VideoLinks({ client: this.client })));
|
|
698
|
+
}
|
|
675
699
|
get dashboard() {
|
|
676
700
|
return (this._dashboard ?? (this._dashboard = new Dashboard({ client: this.client })));
|
|
677
701
|
}
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -104,10 +104,50 @@ export type DashboardResponseDto = {
|
|
|
104
104
|
* Total times this profile was viewed
|
|
105
105
|
*/
|
|
106
106
|
profileViewCount: number;
|
|
107
|
+
/**
|
|
108
|
+
* Distinct scout-side viewers for this profile since the current ISO week started
|
|
109
|
+
*/
|
|
110
|
+
weeklyUniqueScoutProfileViewCount: number;
|
|
107
111
|
/**
|
|
108
112
|
* Total offer conversations for the player
|
|
109
113
|
*/
|
|
110
114
|
offersCount: number;
|
|
115
|
+
/**
|
|
116
|
+
* Whether the player has a fulfilled AI report
|
|
117
|
+
*/
|
|
118
|
+
hasReport: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Current GSI profile score, 0-10
|
|
121
|
+
*/
|
|
122
|
+
gsiScore?: number | null;
|
|
123
|
+
/**
|
|
124
|
+
* Previous GSI profile score, 0-10
|
|
125
|
+
*/
|
|
126
|
+
gsiPreviousScore?: number | null;
|
|
127
|
+
/**
|
|
128
|
+
* Current minus previous GSI score
|
|
129
|
+
*/
|
|
130
|
+
gsiDelta?: number | null;
|
|
131
|
+
/**
|
|
132
|
+
* GSI video subscore, 0-10
|
|
133
|
+
*/
|
|
134
|
+
gsiVideoScore?: number | null;
|
|
135
|
+
/**
|
|
136
|
+
* GSI athletic subscore, 0-10
|
|
137
|
+
*/
|
|
138
|
+
gsiAthleticScore?: number | null;
|
|
139
|
+
/**
|
|
140
|
+
* GSI body-fit subscore, 0-10
|
|
141
|
+
*/
|
|
142
|
+
gsiBodyScore?: number | null;
|
|
143
|
+
/**
|
|
144
|
+
* Number of score components included in the current GSI
|
|
145
|
+
*/
|
|
146
|
+
gsiDataCompleteness?: number | null;
|
|
147
|
+
/**
|
|
148
|
+
* When the GSI profile score was last computed
|
|
149
|
+
*/
|
|
150
|
+
gsiComputedAt?: string | null;
|
|
111
151
|
/**
|
|
112
152
|
* Has at least one body measurement
|
|
113
153
|
*/
|
|
@@ -460,6 +500,25 @@ export type PlayerVideoDto = {
|
|
|
460
500
|
*/
|
|
461
501
|
videoType?: string | null;
|
|
462
502
|
};
|
|
503
|
+
export type VideoLinkResponseDto = {
|
|
504
|
+
id: string;
|
|
505
|
+
userId: string;
|
|
506
|
+
provider: string;
|
|
507
|
+
providerVideoId: string;
|
|
508
|
+
url: string;
|
|
509
|
+
originalUrl: string;
|
|
510
|
+
canonicalUrl: string;
|
|
511
|
+
title: string;
|
|
512
|
+
thumbnailUrl?: string | null;
|
|
513
|
+
/**
|
|
514
|
+
* Duration in seconds
|
|
515
|
+
*/
|
|
516
|
+
durationSeconds?: number | null;
|
|
517
|
+
channelTitle?: string | null;
|
|
518
|
+
embeddable?: boolean | null;
|
|
519
|
+
createdAt: string;
|
|
520
|
+
updatedAt: string;
|
|
521
|
+
};
|
|
463
522
|
export type WatchingOrgDto = {
|
|
464
523
|
/**
|
|
465
524
|
* Stable organization id (UUID) for list keys and caching
|
|
@@ -510,6 +569,23 @@ export type PlayerByIdDto = {
|
|
|
510
569
|
previousClubs: Array<PlayerClubDto>;
|
|
511
570
|
achievements: Array<PlayerAchievementDto>;
|
|
512
571
|
videos: Array<PlayerVideoDto>;
|
|
572
|
+
videoLinks: Array<VideoLinkResponseDto>;
|
|
573
|
+
/**
|
|
574
|
+
* Whether the player has a fulfilled AI report
|
|
575
|
+
*/
|
|
576
|
+
hasReport: boolean;
|
|
577
|
+
/**
|
|
578
|
+
* Current GSI profile score, 0-10
|
|
579
|
+
*/
|
|
580
|
+
gsiScore?: number | null;
|
|
581
|
+
/**
|
|
582
|
+
* Number of score components included in the current GSI
|
|
583
|
+
*/
|
|
584
|
+
gsiDataCompleteness?: number | null;
|
|
585
|
+
/**
|
|
586
|
+
* When the GSI profile score was last computed
|
|
587
|
+
*/
|
|
588
|
+
gsiComputedAt?: string | null;
|
|
513
589
|
/**
|
|
514
590
|
* Clubs watching this player
|
|
515
591
|
*/
|
|
@@ -605,8 +681,80 @@ export type ReportPrerequisiteDto = {
|
|
|
605
681
|
};
|
|
606
682
|
export type ReportPurchaseStatusResponseDto = {
|
|
607
683
|
purchase?: ReportPurchaseDto | null;
|
|
684
|
+
latestFulfilledPurchase?: ReportPurchaseDto | null;
|
|
608
685
|
prerequisites: Array<ReportPrerequisiteDto>;
|
|
609
686
|
};
|
|
687
|
+
export type AiReportGsiComponentDto = {
|
|
688
|
+
key: 'video' | 'athletic' | 'body';
|
|
689
|
+
label: string;
|
|
690
|
+
score: number | null;
|
|
691
|
+
weight: number;
|
|
692
|
+
included: boolean;
|
|
693
|
+
summary: string;
|
|
694
|
+
};
|
|
695
|
+
export type AiReportVideoAttributeScoresDto = {
|
|
696
|
+
technical: number;
|
|
697
|
+
tactical: number;
|
|
698
|
+
physical: number;
|
|
699
|
+
mental: number;
|
|
700
|
+
creative: number;
|
|
701
|
+
};
|
|
702
|
+
export type AiReportGsiVideoSourceInputDto = {
|
|
703
|
+
analysisId: string;
|
|
704
|
+
createdAt: string;
|
|
705
|
+
};
|
|
706
|
+
export type AiReportGsiAthleticSourceInputDto = {
|
|
707
|
+
cmjSessionId: string | null;
|
|
708
|
+
cmjCreatedAt: string | null;
|
|
709
|
+
sprintResultId: string | null;
|
|
710
|
+
sprintCreatedAt: string | null;
|
|
711
|
+
verticalJumpCm: number | null;
|
|
712
|
+
maxSpeedKmh: number | null;
|
|
713
|
+
};
|
|
714
|
+
export type AiReportGsiBodySourceInputDto = {
|
|
715
|
+
sessionId: string;
|
|
716
|
+
createdAt: string;
|
|
717
|
+
fitScore: number;
|
|
718
|
+
};
|
|
719
|
+
export type AiReportGsiSourceInputsDto = {
|
|
720
|
+
video: AiReportGsiVideoSourceInputDto;
|
|
721
|
+
athletic: AiReportGsiAthleticSourceInputDto | null;
|
|
722
|
+
body: AiReportGsiBodySourceInputDto | null;
|
|
723
|
+
};
|
|
724
|
+
export type AiReportGsiReasonDto = {
|
|
725
|
+
title: string;
|
|
726
|
+
detail: string;
|
|
727
|
+
source: 'video' | 'athletic' | 'body' | 'report';
|
|
728
|
+
};
|
|
729
|
+
export type AiReportGsiSnapshotDto = {
|
|
730
|
+
version: 'gsi-v1';
|
|
731
|
+
score: number;
|
|
732
|
+
computedAt: string;
|
|
733
|
+
reportReferenceId: string;
|
|
734
|
+
dataCompleteness: number;
|
|
735
|
+
components: Array<AiReportGsiComponentDto>;
|
|
736
|
+
videoAttributes: AiReportVideoAttributeScoresDto | null;
|
|
737
|
+
sourceInputs: AiReportGsiSourceInputsDto;
|
|
738
|
+
improvementReasons: Array<AiReportGsiReasonDto>;
|
|
739
|
+
};
|
|
740
|
+
export type ReportPurchaseHistoryItemDto = {
|
|
741
|
+
id: string;
|
|
742
|
+
paymentStatus: string;
|
|
743
|
+
fulfillmentStatus: string;
|
|
744
|
+
failureReason?: string | null;
|
|
745
|
+
reportReferenceId?: string | null;
|
|
746
|
+
generationStartedAt?: string | null;
|
|
747
|
+
generationFailedAt?: string | null;
|
|
748
|
+
fulfilledAt?: string | null;
|
|
749
|
+
createdAt?: string | null;
|
|
750
|
+
updatedAt?: string | null;
|
|
751
|
+
selectedClipCount: number | null;
|
|
752
|
+
gsi: AiReportGsiSnapshotDto | null;
|
|
753
|
+
};
|
|
754
|
+
export type ReportPurchaseHistoryResponseDto = {
|
|
755
|
+
items: Array<ReportPurchaseHistoryItemDto>;
|
|
756
|
+
nextCursor: string | null;
|
|
757
|
+
};
|
|
610
758
|
export type AiReportSubcategoryDto = {
|
|
611
759
|
label: string;
|
|
612
760
|
observation: string;
|
|
@@ -658,6 +806,7 @@ export type AiReportResultResponseDto = {
|
|
|
658
806
|
playerView: AiReportViewDto;
|
|
659
807
|
scouterView: AiReportViewDto;
|
|
660
808
|
meta: AiReportMetaDto;
|
|
809
|
+
gsi?: AiReportGsiSnapshotDto | null;
|
|
661
810
|
};
|
|
662
811
|
export type ReportPlayerCandidateTargetDto = {
|
|
663
812
|
timestampS: number;
|
|
@@ -1912,6 +2061,12 @@ export type PlayUrlResponseDto = {
|
|
|
1912
2061
|
*/
|
|
1913
2062
|
expiresIn: number;
|
|
1914
2063
|
};
|
|
2064
|
+
export type CreateVideoLinkDto = {
|
|
2065
|
+
/**
|
|
2066
|
+
* YouTube URL to add to the player showcase
|
|
2067
|
+
*/
|
|
2068
|
+
url: string;
|
|
2069
|
+
};
|
|
1915
2070
|
export type DashboardStatsDto = {
|
|
1916
2071
|
/**
|
|
1917
2072
|
* Number of players on the watchlist
|
|
@@ -2305,6 +2460,22 @@ export type GetApiBillingReportPurchasesCurrentResponses = {
|
|
|
2305
2460
|
200: ReportPurchaseStatusResponseDto;
|
|
2306
2461
|
};
|
|
2307
2462
|
export type GetApiBillingReportPurchasesCurrentResponse = GetApiBillingReportPurchasesCurrentResponses[keyof GetApiBillingReportPurchasesCurrentResponses];
|
|
2463
|
+
export type GetApiBillingReportPurchasesHistoryData = {
|
|
2464
|
+
body?: never;
|
|
2465
|
+
path?: never;
|
|
2466
|
+
query?: {
|
|
2467
|
+
limit?: number;
|
|
2468
|
+
cursor?: string;
|
|
2469
|
+
};
|
|
2470
|
+
url: '/api/billing/report-purchases/history';
|
|
2471
|
+
};
|
|
2472
|
+
export type GetApiBillingReportPurchasesHistoryResponses = {
|
|
2473
|
+
/**
|
|
2474
|
+
* Paid AI report purchase history
|
|
2475
|
+
*/
|
|
2476
|
+
200: ReportPurchaseHistoryResponseDto;
|
|
2477
|
+
};
|
|
2478
|
+
export type GetApiBillingReportPurchasesHistoryResponse = GetApiBillingReportPurchasesHistoryResponses[keyof GetApiBillingReportPurchasesHistoryResponses];
|
|
2308
2479
|
export type GetApiBillingReportPurchasesByIdReportData = {
|
|
2309
2480
|
body?: never;
|
|
2310
2481
|
path: {
|
|
@@ -3452,6 +3623,71 @@ export type DeleteApiVideosByIdResponses = {
|
|
|
3452
3623
|
204: void;
|
|
3453
3624
|
};
|
|
3454
3625
|
export type DeleteApiVideosByIdResponse = DeleteApiVideosByIdResponses[keyof DeleteApiVideosByIdResponses];
|
|
3626
|
+
export type GetApiVideoLinksMeData = {
|
|
3627
|
+
body?: never;
|
|
3628
|
+
path?: never;
|
|
3629
|
+
query?: never;
|
|
3630
|
+
url: '/api/video-links/me';
|
|
3631
|
+
};
|
|
3632
|
+
export type GetApiVideoLinksMeErrors = {
|
|
3633
|
+
/**
|
|
3634
|
+
* Unauthorized
|
|
3635
|
+
*/
|
|
3636
|
+
401: unknown;
|
|
3637
|
+
};
|
|
3638
|
+
export type GetApiVideoLinksMeResponses = {
|
|
3639
|
+
200: Array<VideoLinkResponseDto>;
|
|
3640
|
+
};
|
|
3641
|
+
export type GetApiVideoLinksMeResponse = GetApiVideoLinksMeResponses[keyof GetApiVideoLinksMeResponses];
|
|
3642
|
+
export type PostApiVideoLinksData = {
|
|
3643
|
+
body: CreateVideoLinkDto;
|
|
3644
|
+
path?: never;
|
|
3645
|
+
query?: never;
|
|
3646
|
+
url: '/api/video-links';
|
|
3647
|
+
};
|
|
3648
|
+
export type PostApiVideoLinksErrors = {
|
|
3649
|
+
/**
|
|
3650
|
+
* Invalid YouTube URL or link limit reached
|
|
3651
|
+
*/
|
|
3652
|
+
400: unknown;
|
|
3653
|
+
/**
|
|
3654
|
+
* Unauthorized
|
|
3655
|
+
*/
|
|
3656
|
+
401: unknown;
|
|
3657
|
+
/**
|
|
3658
|
+
* Duplicate video link
|
|
3659
|
+
*/
|
|
3660
|
+
409: unknown;
|
|
3661
|
+
};
|
|
3662
|
+
export type PostApiVideoLinksResponses = {
|
|
3663
|
+
201: VideoLinkResponseDto;
|
|
3664
|
+
};
|
|
3665
|
+
export type PostApiVideoLinksResponse = PostApiVideoLinksResponses[keyof PostApiVideoLinksResponses];
|
|
3666
|
+
export type DeleteApiVideoLinksByIdData = {
|
|
3667
|
+
body?: never;
|
|
3668
|
+
path: {
|
|
3669
|
+
id: string;
|
|
3670
|
+
};
|
|
3671
|
+
query?: never;
|
|
3672
|
+
url: '/api/video-links/{id}';
|
|
3673
|
+
};
|
|
3674
|
+
export type DeleteApiVideoLinksByIdErrors = {
|
|
3675
|
+
/**
|
|
3676
|
+
* Unauthorized
|
|
3677
|
+
*/
|
|
3678
|
+
401: unknown;
|
|
3679
|
+
/**
|
|
3680
|
+
* Video link not found
|
|
3681
|
+
*/
|
|
3682
|
+
404: unknown;
|
|
3683
|
+
};
|
|
3684
|
+
export type DeleteApiVideoLinksByIdResponses = {
|
|
3685
|
+
/**
|
|
3686
|
+
* Video link deleted
|
|
3687
|
+
*/
|
|
3688
|
+
204: void;
|
|
3689
|
+
};
|
|
3690
|
+
export type DeleteApiVideoLinksByIdResponse = DeleteApiVideoLinksByIdResponses[keyof DeleteApiVideoLinksByIdResponses];
|
|
3455
3691
|
export type GetApiDashboardMeData = {
|
|
3456
3692
|
body?: never;
|
|
3457
3693
|
path?: never;
|
package/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export {
|
|
|
24
24
|
Storage,
|
|
25
25
|
Subscriptions,
|
|
26
26
|
Training,
|
|
27
|
+
VideoLinks,
|
|
27
28
|
VideoMetrics,
|
|
28
29
|
Videos,
|
|
29
30
|
} from './sdk.gen.js';
|
|
@@ -31,11 +32,19 @@ export type {
|
|
|
31
32
|
AchievementCatalogDto,
|
|
32
33
|
AiReportClipDto,
|
|
33
34
|
AiReportClipTargetDto,
|
|
35
|
+
AiReportGsiAthleticSourceInputDto,
|
|
36
|
+
AiReportGsiBodySourceInputDto,
|
|
37
|
+
AiReportGsiComponentDto,
|
|
38
|
+
AiReportGsiReasonDto,
|
|
39
|
+
AiReportGsiSnapshotDto,
|
|
40
|
+
AiReportGsiSourceInputsDto,
|
|
41
|
+
AiReportGsiVideoSourceInputDto,
|
|
34
42
|
AiReportImprovementAreaDto,
|
|
35
43
|
AiReportMetaDto,
|
|
36
44
|
AiReportPillarDetailDto,
|
|
37
45
|
AiReportResultResponseDto,
|
|
38
46
|
AiReportSubcategoryDto,
|
|
47
|
+
AiReportVideoAttributeScoresDto,
|
|
39
48
|
AiReportViewDto,
|
|
40
49
|
AuthMeResponseDto,
|
|
41
50
|
BillingEntitlementResponseDto,
|
|
@@ -70,6 +79,7 @@ export type {
|
|
|
70
79
|
CreatePortalDto,
|
|
71
80
|
CreateUploadUrlDto,
|
|
72
81
|
CreateVideoDto,
|
|
82
|
+
CreateVideoLinkDto,
|
|
73
83
|
DashboardResponseDto,
|
|
74
84
|
DashboardStatsDto,
|
|
75
85
|
DashboardVideoCardDto,
|
|
@@ -93,6 +103,10 @@ export type {
|
|
|
93
103
|
DeleteApiPlayersMeErrors,
|
|
94
104
|
DeleteApiPlayersMeResponse,
|
|
95
105
|
DeleteApiPlayersMeResponses,
|
|
106
|
+
DeleteApiVideoLinksByIdData,
|
|
107
|
+
DeleteApiVideoLinksByIdErrors,
|
|
108
|
+
DeleteApiVideoLinksByIdResponse,
|
|
109
|
+
DeleteApiVideoLinksByIdResponses,
|
|
96
110
|
DeleteApiVideosByIdData,
|
|
97
111
|
DeleteApiVideosByIdErrors,
|
|
98
112
|
DeleteApiVideosByIdResponse,
|
|
@@ -125,6 +139,9 @@ export type {
|
|
|
125
139
|
GetApiBillingReportPurchasesCurrentData,
|
|
126
140
|
GetApiBillingReportPurchasesCurrentResponse,
|
|
127
141
|
GetApiBillingReportPurchasesCurrentResponses,
|
|
142
|
+
GetApiBillingReportPurchasesHistoryData,
|
|
143
|
+
GetApiBillingReportPurchasesHistoryResponse,
|
|
144
|
+
GetApiBillingReportPurchasesHistoryResponses,
|
|
128
145
|
GetApiBodyMeasurementsMeData,
|
|
129
146
|
GetApiBodyMeasurementsMeErrors,
|
|
130
147
|
GetApiBodyMeasurementsMeResponse,
|
|
@@ -237,6 +254,10 @@ export type {
|
|
|
237
254
|
GetApiTrainingGroupedResponses,
|
|
238
255
|
GetApiTrainingResponse,
|
|
239
256
|
GetApiTrainingResponses,
|
|
257
|
+
GetApiVideoLinksMeData,
|
|
258
|
+
GetApiVideoLinksMeErrors,
|
|
259
|
+
GetApiVideoLinksMeResponse,
|
|
260
|
+
GetApiVideoLinksMeResponses,
|
|
240
261
|
GetApiVideoMetricsMeData,
|
|
241
262
|
GetApiVideoMetricsMeErrors,
|
|
242
263
|
GetApiVideoMetricsMeResponse,
|
|
@@ -401,6 +422,10 @@ export type {
|
|
|
401
422
|
PostApiSubscriptionsWebhookData,
|
|
402
423
|
PostApiSubscriptionsWebhookErrors,
|
|
403
424
|
PostApiSubscriptionsWebhookResponses,
|
|
425
|
+
PostApiVideoLinksData,
|
|
426
|
+
PostApiVideoLinksErrors,
|
|
427
|
+
PostApiVideoLinksResponse,
|
|
428
|
+
PostApiVideoLinksResponses,
|
|
404
429
|
PostApiVideosData,
|
|
405
430
|
PostApiVideosErrors,
|
|
406
431
|
PostApiVideosResponse,
|
|
@@ -431,6 +456,8 @@ export type {
|
|
|
431
456
|
ReportPlayerCandidateTargetDto,
|
|
432
457
|
ReportPrerequisiteDto,
|
|
433
458
|
ReportPurchaseDto,
|
|
459
|
+
ReportPurchaseHistoryItemDto,
|
|
460
|
+
ReportPurchaseHistoryResponseDto,
|
|
434
461
|
ReportPurchaseStatusResponseDto,
|
|
435
462
|
ReportVideoCandidatesDto,
|
|
436
463
|
ScoutDashboardResponseDto,
|
|
@@ -454,6 +481,7 @@ export type {
|
|
|
454
481
|
UpdateProfileDto,
|
|
455
482
|
UploadUrlResponseDto,
|
|
456
483
|
UserAchievementResponseDto,
|
|
484
|
+
VideoLinkResponseDto,
|
|
457
485
|
VideoMetricsMeResponseDto,
|
|
458
486
|
VideoMetricsPhysicalMetricsDto,
|
|
459
487
|
VideoResponseDto,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globalscoutme/api-client",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "GlobalScoutMe API client (generated)",
|
|
5
5
|
"author": "GlobalScoutMe",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"keywords": ["api-client","typescript"],
|
|
18
|
+
"keywords": ["api-client", "typescript"],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@hey-api/client-axios": "^0.2.5",
|
|
21
21
|
"axios": "^1.6.1"
|
package/sdk.gen.ts
CHANGED
|
@@ -21,6 +21,9 @@ import type {
|
|
|
21
21
|
DeleteApiPlayersMeData,
|
|
22
22
|
DeleteApiPlayersMeErrors,
|
|
23
23
|
DeleteApiPlayersMeResponses,
|
|
24
|
+
DeleteApiVideoLinksByIdData,
|
|
25
|
+
DeleteApiVideoLinksByIdErrors,
|
|
26
|
+
DeleteApiVideoLinksByIdResponses,
|
|
24
27
|
DeleteApiVideosByIdData,
|
|
25
28
|
DeleteApiVideosByIdErrors,
|
|
26
29
|
DeleteApiVideosByIdResponses,
|
|
@@ -42,6 +45,8 @@ import type {
|
|
|
42
45
|
GetApiBillingReportPurchasesByIdReportResponses,
|
|
43
46
|
GetApiBillingReportPurchasesCurrentData,
|
|
44
47
|
GetApiBillingReportPurchasesCurrentResponses,
|
|
48
|
+
GetApiBillingReportPurchasesHistoryData,
|
|
49
|
+
GetApiBillingReportPurchasesHistoryResponses,
|
|
45
50
|
GetApiBodyMeasurementsMeData,
|
|
46
51
|
GetApiBodyMeasurementsMeErrors,
|
|
47
52
|
GetApiBodyMeasurementsMeResponses,
|
|
@@ -125,6 +130,9 @@ import type {
|
|
|
125
130
|
GetApiTrainingGroupedErrors,
|
|
126
131
|
GetApiTrainingGroupedResponses,
|
|
127
132
|
GetApiTrainingResponses,
|
|
133
|
+
GetApiVideoLinksMeData,
|
|
134
|
+
GetApiVideoLinksMeErrors,
|
|
135
|
+
GetApiVideoLinksMeResponses,
|
|
128
136
|
GetApiVideoMetricsMeData,
|
|
129
137
|
GetApiVideoMetricsMeErrors,
|
|
130
138
|
GetApiVideoMetricsMeResponses,
|
|
@@ -226,6 +234,9 @@ import type {
|
|
|
226
234
|
PostApiSubscriptionsWebhookData,
|
|
227
235
|
PostApiSubscriptionsWebhookErrors,
|
|
228
236
|
PostApiSubscriptionsWebhookResponses,
|
|
237
|
+
PostApiVideoLinksData,
|
|
238
|
+
PostApiVideoLinksErrors,
|
|
239
|
+
PostApiVideoLinksResponses,
|
|
229
240
|
PostApiVideosData,
|
|
230
241
|
PostApiVideosErrors,
|
|
231
242
|
PostApiVideosResponses,
|
|
@@ -478,6 +489,16 @@ export class Billing extends HeyApiClient {
|
|
|
478
489
|
>({ url: '/api/billing/report-purchases/current', ...options });
|
|
479
490
|
}
|
|
480
491
|
|
|
492
|
+
public listBillingReportPurchaseHistory<ThrowOnError extends boolean = false>(
|
|
493
|
+
options?: Options<GetApiBillingReportPurchasesHistoryData, ThrowOnError>,
|
|
494
|
+
) {
|
|
495
|
+
return (options?.client ?? this.client).get<
|
|
496
|
+
GetApiBillingReportPurchasesHistoryResponses,
|
|
497
|
+
unknown,
|
|
498
|
+
ThrowOnError
|
|
499
|
+
>({ url: '/api/billing/report-purchases/history', ...options });
|
|
500
|
+
}
|
|
501
|
+
|
|
481
502
|
public getBillingReportResult<ThrowOnError extends boolean = false>(
|
|
482
503
|
options: Options<GetApiBillingReportPurchasesByIdReportData, ThrowOnError>,
|
|
483
504
|
) {
|
|
@@ -1348,6 +1369,45 @@ export class Videos extends HeyApiClient {
|
|
|
1348
1369
|
}
|
|
1349
1370
|
}
|
|
1350
1371
|
|
|
1372
|
+
export class VideoLinks extends HeyApiClient {
|
|
1373
|
+
public getMyVideoLinks<ThrowOnError extends boolean = false>(
|
|
1374
|
+
options?: Options<GetApiVideoLinksMeData, ThrowOnError>,
|
|
1375
|
+
) {
|
|
1376
|
+
return (options?.client ?? this.client).get<
|
|
1377
|
+
GetApiVideoLinksMeResponses,
|
|
1378
|
+
GetApiVideoLinksMeErrors,
|
|
1379
|
+
ThrowOnError
|
|
1380
|
+
>({ url: '/api/video-links/me', ...options });
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
public createVideoLink<ThrowOnError extends boolean = false>(
|
|
1384
|
+
options: Options<PostApiVideoLinksData, ThrowOnError>,
|
|
1385
|
+
) {
|
|
1386
|
+
return (options.client ?? this.client).post<
|
|
1387
|
+
PostApiVideoLinksResponses,
|
|
1388
|
+
PostApiVideoLinksErrors,
|
|
1389
|
+
ThrowOnError
|
|
1390
|
+
>({
|
|
1391
|
+
url: '/api/video-links',
|
|
1392
|
+
...options,
|
|
1393
|
+
headers: {
|
|
1394
|
+
'Content-Type': 'application/json',
|
|
1395
|
+
...options.headers,
|
|
1396
|
+
},
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
public deleteVideoLink<ThrowOnError extends boolean = false>(
|
|
1401
|
+
options: Options<DeleteApiVideoLinksByIdData, ThrowOnError>,
|
|
1402
|
+
) {
|
|
1403
|
+
return (options.client ?? this.client).delete<
|
|
1404
|
+
DeleteApiVideoLinksByIdResponses,
|
|
1405
|
+
DeleteApiVideoLinksByIdErrors,
|
|
1406
|
+
ThrowOnError
|
|
1407
|
+
>({ url: '/api/video-links/{id}', ...options });
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1351
1411
|
export class Dashboard extends HeyApiClient {
|
|
1352
1412
|
public getScoutDashboard<ThrowOnError extends boolean = false>(
|
|
1353
1413
|
options?: Options<GetApiDashboardMeData, ThrowOnError>,
|
|
@@ -1567,6 +1627,11 @@ export class GlobalScoutMeClient extends HeyApiClient {
|
|
|
1567
1627
|
return (this._videos ??= new Videos({ client: this.client }));
|
|
1568
1628
|
}
|
|
1569
1629
|
|
|
1630
|
+
private _videoLinks?: VideoLinks;
|
|
1631
|
+
get videoLinks(): VideoLinks {
|
|
1632
|
+
return (this._videoLinks ??= new VideoLinks({ client: this.client }));
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1570
1635
|
private _dashboard?: Dashboard;
|
|
1571
1636
|
get dashboard(): Dashboard {
|
|
1572
1637
|
return (this._dashboard ??= new Dashboard({ client: this.client }));
|
package/tsconfig.json
CHANGED
package/types.gen.ts
CHANGED
|
@@ -110,10 +110,50 @@ export type DashboardResponseDto = {
|
|
|
110
110
|
* Total times this profile was viewed
|
|
111
111
|
*/
|
|
112
112
|
profileViewCount: number;
|
|
113
|
+
/**
|
|
114
|
+
* Distinct scout-side viewers for this profile since the current ISO week started
|
|
115
|
+
*/
|
|
116
|
+
weeklyUniqueScoutProfileViewCount: number;
|
|
113
117
|
/**
|
|
114
118
|
* Total offer conversations for the player
|
|
115
119
|
*/
|
|
116
120
|
offersCount: number;
|
|
121
|
+
/**
|
|
122
|
+
* Whether the player has a fulfilled AI report
|
|
123
|
+
*/
|
|
124
|
+
hasReport: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Current GSI profile score, 0-10
|
|
127
|
+
*/
|
|
128
|
+
gsiScore?: number | null;
|
|
129
|
+
/**
|
|
130
|
+
* Previous GSI profile score, 0-10
|
|
131
|
+
*/
|
|
132
|
+
gsiPreviousScore?: number | null;
|
|
133
|
+
/**
|
|
134
|
+
* Current minus previous GSI score
|
|
135
|
+
*/
|
|
136
|
+
gsiDelta?: number | null;
|
|
137
|
+
/**
|
|
138
|
+
* GSI video subscore, 0-10
|
|
139
|
+
*/
|
|
140
|
+
gsiVideoScore?: number | null;
|
|
141
|
+
/**
|
|
142
|
+
* GSI athletic subscore, 0-10
|
|
143
|
+
*/
|
|
144
|
+
gsiAthleticScore?: number | null;
|
|
145
|
+
/**
|
|
146
|
+
* GSI body-fit subscore, 0-10
|
|
147
|
+
*/
|
|
148
|
+
gsiBodyScore?: number | null;
|
|
149
|
+
/**
|
|
150
|
+
* Number of score components included in the current GSI
|
|
151
|
+
*/
|
|
152
|
+
gsiDataCompleteness?: number | null;
|
|
153
|
+
/**
|
|
154
|
+
* When the GSI profile score was last computed
|
|
155
|
+
*/
|
|
156
|
+
gsiComputedAt?: string | null;
|
|
117
157
|
/**
|
|
118
158
|
* Has at least one body measurement
|
|
119
159
|
*/
|
|
@@ -499,6 +539,26 @@ export type PlayerVideoDto = {
|
|
|
499
539
|
videoType?: string | null;
|
|
500
540
|
};
|
|
501
541
|
|
|
542
|
+
export type VideoLinkResponseDto = {
|
|
543
|
+
id: string;
|
|
544
|
+
userId: string;
|
|
545
|
+
provider: string;
|
|
546
|
+
providerVideoId: string;
|
|
547
|
+
url: string;
|
|
548
|
+
originalUrl: string;
|
|
549
|
+
canonicalUrl: string;
|
|
550
|
+
title: string;
|
|
551
|
+
thumbnailUrl?: string | null;
|
|
552
|
+
/**
|
|
553
|
+
* Duration in seconds
|
|
554
|
+
*/
|
|
555
|
+
durationSeconds?: number | null;
|
|
556
|
+
channelTitle?: string | null;
|
|
557
|
+
embeddable?: boolean | null;
|
|
558
|
+
createdAt: string;
|
|
559
|
+
updatedAt: string;
|
|
560
|
+
};
|
|
561
|
+
|
|
502
562
|
export type WatchingOrgDto = {
|
|
503
563
|
/**
|
|
504
564
|
* Stable organization id (UUID) for list keys and caching
|
|
@@ -550,6 +610,23 @@ export type PlayerByIdDto = {
|
|
|
550
610
|
previousClubs: Array<PlayerClubDto>;
|
|
551
611
|
achievements: Array<PlayerAchievementDto>;
|
|
552
612
|
videos: Array<PlayerVideoDto>;
|
|
613
|
+
videoLinks: Array<VideoLinkResponseDto>;
|
|
614
|
+
/**
|
|
615
|
+
* Whether the player has a fulfilled AI report
|
|
616
|
+
*/
|
|
617
|
+
hasReport: boolean;
|
|
618
|
+
/**
|
|
619
|
+
* Current GSI profile score, 0-10
|
|
620
|
+
*/
|
|
621
|
+
gsiScore?: number | null;
|
|
622
|
+
/**
|
|
623
|
+
* Number of score components included in the current GSI
|
|
624
|
+
*/
|
|
625
|
+
gsiDataCompleteness?: number | null;
|
|
626
|
+
/**
|
|
627
|
+
* When the GSI profile score was last computed
|
|
628
|
+
*/
|
|
629
|
+
gsiComputedAt?: string | null;
|
|
553
630
|
/**
|
|
554
631
|
* Clubs watching this player
|
|
555
632
|
*/
|
|
@@ -656,9 +733,91 @@ export type ReportPrerequisiteDto = {
|
|
|
656
733
|
|
|
657
734
|
export type ReportPurchaseStatusResponseDto = {
|
|
658
735
|
purchase?: ReportPurchaseDto | null;
|
|
736
|
+
latestFulfilledPurchase?: ReportPurchaseDto | null;
|
|
659
737
|
prerequisites: Array<ReportPrerequisiteDto>;
|
|
660
738
|
};
|
|
661
739
|
|
|
740
|
+
export type AiReportGsiComponentDto = {
|
|
741
|
+
key: 'video' | 'athletic' | 'body';
|
|
742
|
+
label: string;
|
|
743
|
+
score: number | null;
|
|
744
|
+
weight: number;
|
|
745
|
+
included: boolean;
|
|
746
|
+
summary: string;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
export type AiReportVideoAttributeScoresDto = {
|
|
750
|
+
technical: number;
|
|
751
|
+
tactical: number;
|
|
752
|
+
physical: number;
|
|
753
|
+
mental: number;
|
|
754
|
+
creative: number;
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
export type AiReportGsiVideoSourceInputDto = {
|
|
758
|
+
analysisId: string;
|
|
759
|
+
createdAt: string;
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
export type AiReportGsiAthleticSourceInputDto = {
|
|
763
|
+
cmjSessionId: string | null;
|
|
764
|
+
cmjCreatedAt: string | null;
|
|
765
|
+
sprintResultId: string | null;
|
|
766
|
+
sprintCreatedAt: string | null;
|
|
767
|
+
verticalJumpCm: number | null;
|
|
768
|
+
maxSpeedKmh: number | null;
|
|
769
|
+
};
|
|
770
|
+
|
|
771
|
+
export type AiReportGsiBodySourceInputDto = {
|
|
772
|
+
sessionId: string;
|
|
773
|
+
createdAt: string;
|
|
774
|
+
fitScore: number;
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
export type AiReportGsiSourceInputsDto = {
|
|
778
|
+
video: AiReportGsiVideoSourceInputDto;
|
|
779
|
+
athletic: AiReportGsiAthleticSourceInputDto | null;
|
|
780
|
+
body: AiReportGsiBodySourceInputDto | null;
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
export type AiReportGsiReasonDto = {
|
|
784
|
+
title: string;
|
|
785
|
+
detail: string;
|
|
786
|
+
source: 'video' | 'athletic' | 'body' | 'report';
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
export type AiReportGsiSnapshotDto = {
|
|
790
|
+
version: 'gsi-v1';
|
|
791
|
+
score: number;
|
|
792
|
+
computedAt: string;
|
|
793
|
+
reportReferenceId: string;
|
|
794
|
+
dataCompleteness: number;
|
|
795
|
+
components: Array<AiReportGsiComponentDto>;
|
|
796
|
+
videoAttributes: AiReportVideoAttributeScoresDto | null;
|
|
797
|
+
sourceInputs: AiReportGsiSourceInputsDto;
|
|
798
|
+
improvementReasons: Array<AiReportGsiReasonDto>;
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
export type ReportPurchaseHistoryItemDto = {
|
|
802
|
+
id: string;
|
|
803
|
+
paymentStatus: string;
|
|
804
|
+
fulfillmentStatus: string;
|
|
805
|
+
failureReason?: string | null;
|
|
806
|
+
reportReferenceId?: string | null;
|
|
807
|
+
generationStartedAt?: string | null;
|
|
808
|
+
generationFailedAt?: string | null;
|
|
809
|
+
fulfilledAt?: string | null;
|
|
810
|
+
createdAt?: string | null;
|
|
811
|
+
updatedAt?: string | null;
|
|
812
|
+
selectedClipCount: number | null;
|
|
813
|
+
gsi: AiReportGsiSnapshotDto | null;
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
export type ReportPurchaseHistoryResponseDto = {
|
|
817
|
+
items: Array<ReportPurchaseHistoryItemDto>;
|
|
818
|
+
nextCursor: string | null;
|
|
819
|
+
};
|
|
820
|
+
|
|
662
821
|
export type AiReportSubcategoryDto = {
|
|
663
822
|
label: string;
|
|
664
823
|
observation: string;
|
|
@@ -717,6 +876,7 @@ export type AiReportResultResponseDto = {
|
|
|
717
876
|
playerView: AiReportViewDto;
|
|
718
877
|
scouterView: AiReportViewDto;
|
|
719
878
|
meta: AiReportMetaDto;
|
|
879
|
+
gsi?: AiReportGsiSnapshotDto | null;
|
|
720
880
|
};
|
|
721
881
|
|
|
722
882
|
export type ReportPlayerCandidateTargetDto = {
|
|
@@ -2062,6 +2222,13 @@ export type PlayUrlResponseDto = {
|
|
|
2062
2222
|
expiresIn: number;
|
|
2063
2223
|
};
|
|
2064
2224
|
|
|
2225
|
+
export type CreateVideoLinkDto = {
|
|
2226
|
+
/**
|
|
2227
|
+
* YouTube URL to add to the player showcase
|
|
2228
|
+
*/
|
|
2229
|
+
url: string;
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2065
2232
|
export type DashboardStatsDto = {
|
|
2066
2233
|
/**
|
|
2067
2234
|
* Number of players on the watchlist
|
|
@@ -2540,6 +2707,26 @@ export type GetApiBillingReportPurchasesCurrentResponses = {
|
|
|
2540
2707
|
export type GetApiBillingReportPurchasesCurrentResponse =
|
|
2541
2708
|
GetApiBillingReportPurchasesCurrentResponses[keyof GetApiBillingReportPurchasesCurrentResponses];
|
|
2542
2709
|
|
|
2710
|
+
export type GetApiBillingReportPurchasesHistoryData = {
|
|
2711
|
+
body?: never;
|
|
2712
|
+
path?: never;
|
|
2713
|
+
query?: {
|
|
2714
|
+
limit?: number;
|
|
2715
|
+
cursor?: string;
|
|
2716
|
+
};
|
|
2717
|
+
url: '/api/billing/report-purchases/history';
|
|
2718
|
+
};
|
|
2719
|
+
|
|
2720
|
+
export type GetApiBillingReportPurchasesHistoryResponses = {
|
|
2721
|
+
/**
|
|
2722
|
+
* Paid AI report purchase history
|
|
2723
|
+
*/
|
|
2724
|
+
200: ReportPurchaseHistoryResponseDto;
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
export type GetApiBillingReportPurchasesHistoryResponse =
|
|
2728
|
+
GetApiBillingReportPurchasesHistoryResponses[keyof GetApiBillingReportPurchasesHistoryResponses];
|
|
2729
|
+
|
|
2543
2730
|
export type GetApiBillingReportPurchasesByIdReportData = {
|
|
2544
2731
|
body?: never;
|
|
2545
2732
|
path: {
|
|
@@ -3961,6 +4148,86 @@ export type DeleteApiVideosByIdResponses = {
|
|
|
3961
4148
|
export type DeleteApiVideosByIdResponse =
|
|
3962
4149
|
DeleteApiVideosByIdResponses[keyof DeleteApiVideosByIdResponses];
|
|
3963
4150
|
|
|
4151
|
+
export type GetApiVideoLinksMeData = {
|
|
4152
|
+
body?: never;
|
|
4153
|
+
path?: never;
|
|
4154
|
+
query?: never;
|
|
4155
|
+
url: '/api/video-links/me';
|
|
4156
|
+
};
|
|
4157
|
+
|
|
4158
|
+
export type GetApiVideoLinksMeErrors = {
|
|
4159
|
+
/**
|
|
4160
|
+
* Unauthorized
|
|
4161
|
+
*/
|
|
4162
|
+
401: unknown;
|
|
4163
|
+
};
|
|
4164
|
+
|
|
4165
|
+
export type GetApiVideoLinksMeResponses = {
|
|
4166
|
+
200: Array<VideoLinkResponseDto>;
|
|
4167
|
+
};
|
|
4168
|
+
|
|
4169
|
+
export type GetApiVideoLinksMeResponse =
|
|
4170
|
+
GetApiVideoLinksMeResponses[keyof GetApiVideoLinksMeResponses];
|
|
4171
|
+
|
|
4172
|
+
export type PostApiVideoLinksData = {
|
|
4173
|
+
body: CreateVideoLinkDto;
|
|
4174
|
+
path?: never;
|
|
4175
|
+
query?: never;
|
|
4176
|
+
url: '/api/video-links';
|
|
4177
|
+
};
|
|
4178
|
+
|
|
4179
|
+
export type PostApiVideoLinksErrors = {
|
|
4180
|
+
/**
|
|
4181
|
+
* Invalid YouTube URL or link limit reached
|
|
4182
|
+
*/
|
|
4183
|
+
400: unknown;
|
|
4184
|
+
/**
|
|
4185
|
+
* Unauthorized
|
|
4186
|
+
*/
|
|
4187
|
+
401: unknown;
|
|
4188
|
+
/**
|
|
4189
|
+
* Duplicate video link
|
|
4190
|
+
*/
|
|
4191
|
+
409: unknown;
|
|
4192
|
+
};
|
|
4193
|
+
|
|
4194
|
+
export type PostApiVideoLinksResponses = {
|
|
4195
|
+
201: VideoLinkResponseDto;
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4198
|
+
export type PostApiVideoLinksResponse =
|
|
4199
|
+
PostApiVideoLinksResponses[keyof PostApiVideoLinksResponses];
|
|
4200
|
+
|
|
4201
|
+
export type DeleteApiVideoLinksByIdData = {
|
|
4202
|
+
body?: never;
|
|
4203
|
+
path: {
|
|
4204
|
+
id: string;
|
|
4205
|
+
};
|
|
4206
|
+
query?: never;
|
|
4207
|
+
url: '/api/video-links/{id}';
|
|
4208
|
+
};
|
|
4209
|
+
|
|
4210
|
+
export type DeleteApiVideoLinksByIdErrors = {
|
|
4211
|
+
/**
|
|
4212
|
+
* Unauthorized
|
|
4213
|
+
*/
|
|
4214
|
+
401: unknown;
|
|
4215
|
+
/**
|
|
4216
|
+
* Video link not found
|
|
4217
|
+
*/
|
|
4218
|
+
404: unknown;
|
|
4219
|
+
};
|
|
4220
|
+
|
|
4221
|
+
export type DeleteApiVideoLinksByIdResponses = {
|
|
4222
|
+
/**
|
|
4223
|
+
* Video link deleted
|
|
4224
|
+
*/
|
|
4225
|
+
204: void;
|
|
4226
|
+
};
|
|
4227
|
+
|
|
4228
|
+
export type DeleteApiVideoLinksByIdResponse =
|
|
4229
|
+
DeleteApiVideoLinksByIdResponses[keyof DeleteApiVideoLinksByIdResponses];
|
|
4230
|
+
|
|
3964
4231
|
export type GetApiDashboardMeData = {
|
|
3965
4232
|
body?: never;
|
|
3966
4233
|
path?: never;
|
package/README.md
DELETED
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
# @globalscoutme/api-client
|
|
2
|
-
|
|
3
|
-
Auto-generated TypeScript HTTP client for the GlobalScoutMe API, built with [`@hey-api/openapi-ts`](https://heyapi.dev/) and axios.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @globalscoutme/api-client
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Setup
|
|
12
|
-
|
|
13
|
-
Configure the client once at app startup with your API base URL and auth token:
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
import { client } from '@globalscoutme/api-client';
|
|
17
|
-
|
|
18
|
-
client.setConfig({
|
|
19
|
-
baseURL: 'https://your-api-url.com',
|
|
20
|
-
headers: {
|
|
21
|
-
Authorization: `Bearer ${yourSupabaseAccessToken}`,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Usage
|
|
27
|
-
|
|
28
|
-
All endpoints are grouped by controller and fully typed:
|
|
29
|
-
|
|
30
|
-
```ts
|
|
31
|
-
import {
|
|
32
|
-
Auth,
|
|
33
|
-
Dashboard,
|
|
34
|
-
Players,
|
|
35
|
-
Profile,
|
|
36
|
-
Documents,
|
|
37
|
-
Videos,
|
|
38
|
-
Achievements,
|
|
39
|
-
Body,
|
|
40
|
-
Index,
|
|
41
|
-
Kyc,
|
|
42
|
-
Offers,
|
|
43
|
-
Organizations,
|
|
44
|
-
Clubs,
|
|
45
|
-
Challenges,
|
|
46
|
-
Training,
|
|
47
|
-
Invitations,
|
|
48
|
-
Storage,
|
|
49
|
-
Subscriptions,
|
|
50
|
-
} from '@globalscoutme/api-client';
|
|
51
|
-
|
|
52
|
-
// Auth
|
|
53
|
-
const authMe = await Auth.getAuthMe();
|
|
54
|
-
// Returns { id: string, userType: string | null }
|
|
55
|
-
|
|
56
|
-
// Players
|
|
57
|
-
const player = await Players.getMe();
|
|
58
|
-
await Players.patchMe({ body: { fullName: 'John Doe' } });
|
|
59
|
-
await Players.deleteMe();
|
|
60
|
-
const dashboard = await Players.getMyDashboard();
|
|
61
|
-
await Players.heartbeat({ body: { timezone: 'Europe/Bucharest' } });
|
|
62
|
-
const results = await Players.searchPlayers({
|
|
63
|
-
body: {
|
|
64
|
-
search: 'John',
|
|
65
|
-
page: 1,
|
|
66
|
-
pageSize: 20,
|
|
67
|
-
sortBy: 'age_asc',
|
|
68
|
-
nationalities: ['EG', 'MA'],
|
|
69
|
-
positions: ['CM', 'CB'],
|
|
70
|
-
baseFoot: 'right',
|
|
71
|
-
isFreeAgent: true,
|
|
72
|
-
hasVideo: true,
|
|
73
|
-
heightOperator: 'gte',
|
|
74
|
-
heightCm: 180,
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
const playerProfile = await Players.getPlayerById({
|
|
78
|
-
path: { id: 'player-uuid' },
|
|
79
|
-
});
|
|
80
|
-
const playerMeasurements = await Players.getPlayerMeasurementProfile({
|
|
81
|
-
path: { id: 'player-uuid' },
|
|
82
|
-
});
|
|
83
|
-
// Returns { status, body, cmj, session, updatedAt } — accessible to all roles (no player-only restriction)
|
|
84
|
-
// status: 'missing' | 'partial' | 'ready' | 'needs_update'
|
|
85
|
-
const playerVideoMetrics = await Players.getPlayerVideoMetrics({
|
|
86
|
-
path: { id: 'player-uuid' },
|
|
87
|
-
});
|
|
88
|
-
// Returns { id, createdAt, videoDurationS, physicalMetrics, trackingQuality, trackedFrames, totalFrames }
|
|
89
|
-
// physicalMetrics: { totalDistance, sprintDistance, maxSpeed, averageSpeed, highIntensityRuns, sprints }
|
|
90
|
-
// Speed/distance values are strings with units already included (e.g. "31.0 km/h", "21.4 m")
|
|
91
|
-
// trackingQuality: confidence label from the analysis service (e.g. "High Confidence") — null if unavailable
|
|
92
|
-
// Returns 404 if the player has no completed video analysis yet
|
|
93
|
-
const playerReport = await Players.getPlayerReport({
|
|
94
|
-
path: { id: 'player-uuid' },
|
|
95
|
-
});
|
|
96
|
-
// Returns { reportReferenceId, generatedAt, scouterView: { technicalPillar, physicalPillar, tacticalPillar, mentalPillar } }
|
|
97
|
-
// Returns 404 if the player has no completed AI report yet
|
|
98
|
-
|
|
99
|
-
// Profile
|
|
100
|
-
const profile = await Profile.getProfileMe();
|
|
101
|
-
await Profile.updateProfileMe({ body: { dominantFoot: 'Right' } });
|
|
102
|
-
|
|
103
|
-
// Documents
|
|
104
|
-
const docs = await Documents.getMyDocuments();
|
|
105
|
-
await Documents.createDocument({ body: { type: 'license' } });
|
|
106
|
-
|
|
107
|
-
// Videos
|
|
108
|
-
const videos = await Videos.getMyVideos();
|
|
109
|
-
await Videos.createVideo({
|
|
110
|
-
body: { type: 'cmj', storagePath: 'path/to/video' },
|
|
111
|
-
});
|
|
112
|
-
const playUrl = await Videos.getVideoPlayUrl({ path: { id: 'video-uuid' } });
|
|
113
|
-
await Videos.deleteVideo({ path: { id: 'video-uuid' } });
|
|
114
|
-
|
|
115
|
-
// Achievements
|
|
116
|
-
const catalog = await Achievements.getAchievementsCatalog();
|
|
117
|
-
const myAchievements = await Achievements.getMyAchievements();
|
|
118
|
-
|
|
119
|
-
// Body measurements
|
|
120
|
-
const measurement = await Body.getMyMeasurements();
|
|
121
|
-
await Body.createMeasurement({ body: { heightCm: 180 } });
|
|
122
|
-
|
|
123
|
-
// Index (lookup tables)
|
|
124
|
-
const positions = await Index.getIndexItems({
|
|
125
|
-
path: { tableName: 'positions' },
|
|
126
|
-
});
|
|
127
|
-
const countries = await Index.getCountries();
|
|
128
|
-
// Returns [{ code: 'BR', name: 'Brazil', nationalityName: 'Brazilian', flagEmoji: '🇧🇷' }, ...]
|
|
129
|
-
|
|
130
|
-
// Dashboard (scout/club portal — single aggregated call)
|
|
131
|
-
const dashboard = await Dashboard.getScoutDashboard();
|
|
132
|
-
// Returns: stats (watchlisted, offersSent, playersViewed, videosWatched),
|
|
133
|
-
// lastPlayersViewed (last 6 distinct players),
|
|
134
|
-
// lastVideosWatched (last 6 distinct videos with player info)
|
|
135
|
-
|
|
136
|
-
const videoUrl = await Dashboard.getScoutVideoPlayUrl({
|
|
137
|
-
path: { id: 'video-uuid' },
|
|
138
|
-
});
|
|
139
|
-
// Returns signed play URL + records the view in video_views
|
|
140
|
-
|
|
141
|
-
// Offers (conversations between scouts and players)
|
|
142
|
-
const conversations = await Offers.listConversations({
|
|
143
|
-
query: { filter: 'all', page: 1, pageSize: 20 },
|
|
144
|
-
});
|
|
145
|
-
const conversation = await Offers.createConversation({
|
|
146
|
-
body: { playerId: 'player-uuid', initialMessage: 'Hi!' },
|
|
147
|
-
});
|
|
148
|
-
const messages = await Offers.listMessages({
|
|
149
|
-
path: { id: 'conversation-uuid' },
|
|
150
|
-
query: { page: 1, pageSize: 20 },
|
|
151
|
-
});
|
|
152
|
-
await Offers.sendMessage({
|
|
153
|
-
path: { id: 'conversation-uuid' },
|
|
154
|
-
body: { body: 'Looking forward to it!' },
|
|
155
|
-
});
|
|
156
|
-
await Offers.markConversationRead({ path: { id: 'conversation-uuid' } });
|
|
157
|
-
|
|
158
|
-
// Organizations
|
|
159
|
-
const org = await Organizations.getMyOrganization();
|
|
160
|
-
await Organizations.updateMyOrganization({ body: { name: 'FC Example' } });
|
|
161
|
-
await Organizations.registerClub({
|
|
162
|
-
body: { name: 'FC Example', email: 'admin@example.com' },
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
// Clubs (coach/admin club entries within an organization)
|
|
166
|
-
const clubs = await Clubs.getMyClubs();
|
|
167
|
-
const club = await Clubs.createMyClub({ body: { name: 'U19 Team' } });
|
|
168
|
-
await Clubs.updateMyClub({
|
|
169
|
-
path: { id: 'club-uuid' },
|
|
170
|
-
body: { name: 'U21 Team' },
|
|
171
|
-
});
|
|
172
|
-
await Clubs.deleteMyClub({ path: { id: 'club-uuid' } });
|
|
173
|
-
|
|
174
|
-
// Challenges
|
|
175
|
-
const challengeCatalog = await Challenges.getChallengesCatalog();
|
|
176
|
-
const myChallenges = await Challenges.getMyChallenges();
|
|
177
|
-
|
|
178
|
-
// Training
|
|
179
|
-
const grouped = await Training.getTrainingGrouped();
|
|
180
|
-
const trainingList = await Training.getTrainingList({
|
|
181
|
-
query: { categoryCode: 'fitness', page: 1, pageSize: 20 },
|
|
182
|
-
});
|
|
183
|
-
const trainingItem = await Training.getTrainingById({
|
|
184
|
-
path: { id: 'training-uuid' },
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
// Invitations (org admin invites members)
|
|
188
|
-
await Invitations.sendInvitation({
|
|
189
|
-
body: { email: 'coach@example.com', role: 'coach' },
|
|
190
|
-
});
|
|
191
|
-
const invitations = await Invitations.listInvitations();
|
|
192
|
-
await Invitations.resendInvitation({ path: { id: 'invitation-uuid' } });
|
|
193
|
-
await Invitations.deleteInvitation({ path: { id: 'invitation-uuid' } });
|
|
194
|
-
await Invitations.acceptInvitation(); // called after Supabase auth callback
|
|
195
|
-
|
|
196
|
-
// KYC — SmileID Enhanced Document Verification
|
|
197
|
-
//
|
|
198
|
-
// Two integration options:
|
|
199
|
-
|
|
200
|
-
// Option A — Smile Links (recommended for web)
|
|
201
|
-
// Backend returns a hosted SmileID URL; redirect the user to it.
|
|
202
|
-
// SmileID handles the full capture UI and fires the webhook when done.
|
|
203
|
-
const linkResult = await Kyc.startSmileLink({
|
|
204
|
-
body: {
|
|
205
|
-
country: 'gh', // stored on the verification record; does NOT filter the SmileID dropdown
|
|
206
|
-
channel: 'web',
|
|
207
|
-
returnUrl: 'https://yourapp.com/onboarding/kyc/callback',
|
|
208
|
-
},
|
|
209
|
-
});
|
|
210
|
-
// linkResult: { url, jobId, status, retriesRemaining }
|
|
211
|
-
// url is null when no redirect is needed (approved / blocked / processing).
|
|
212
|
-
if (linkResult.data.url) {
|
|
213
|
-
window.location.href = linkResult.data.url; // redirect user to SmileID
|
|
214
|
-
}
|
|
215
|
-
// The SmileID hosted page shows all countries configured in index.kyc_supported_id_types.
|
|
216
|
-
// The user selects their country and document type on that page.
|
|
217
|
-
// After the user returns to returnUrl, poll getKycStatus to confirm the result.
|
|
218
|
-
// markSubmittedKyc is NOT needed for Smile Links — SmileID fires the webhook directly.
|
|
219
|
-
|
|
220
|
-
// Option B — SDK widget (embedded, for mobile / advanced web)
|
|
221
|
-
const kycResult = await Kyc.startKyc({
|
|
222
|
-
body: { country: 'gh', channel: 'web' },
|
|
223
|
-
});
|
|
224
|
-
// kycResult: { token, partnerId, jobId, status, retriesRemaining }
|
|
225
|
-
// Pass token + partnerId to the SmileID web SDK widget to start document capture.
|
|
226
|
-
// After the SDK reports successful submission, call markSubmittedKyc with jobId.
|
|
227
|
-
await Kyc.markSubmittedKyc({ body: { jobId: kycResult.data.jobId! } });
|
|
228
|
-
// SmileID also calls POST /kyc/webhook under the configured API base/prefix
|
|
229
|
-
// (for staging: https://staging.globalscoutme.com/api/kyc/webhook).
|
|
230
|
-
|
|
231
|
-
const kycStatus = await Kyc.getKycStatus({
|
|
232
|
-
path: { userId: supabaseAuthUuid },
|
|
233
|
-
});
|
|
234
|
-
// kycStatus: { status, retryCount, retriesRemaining }
|
|
235
|
-
// status: 'pending' | 'capture_started' | 'processing' | 'approved' | 'rejected' | 'blocked'
|
|
236
|
-
// Older API clients may still see legacy 'in_progress', which maps to 'capture_started'.
|
|
237
|
-
|
|
238
|
-
// Subscriptions (Stripe recurring billing)
|
|
239
|
-
const plans = await Subscriptions.getSubscriptionPlans();
|
|
240
|
-
// Returns: { plans: [{ id, code, name, price, currency, billingInterval, trialDays, features, displayOrder }] }
|
|
241
|
-
|
|
242
|
-
const mySubscription = await Subscriptions.getMySubscription();
|
|
243
|
-
// Returns: { status, isActive, planId, planName, billingInterval,
|
|
244
|
-
// currentPeriodStart, currentPeriodEnd, cancelAtPeriodEnd, canceledAt, gracePeriodUntil }
|
|
245
|
-
// status: 'inactive' when the user has never subscribed
|
|
246
|
-
|
|
247
|
-
// Start a subscription — redirect the user to the returned URL
|
|
248
|
-
const checkout = await Subscriptions.createCheckout({
|
|
249
|
-
body: {
|
|
250
|
-
providerProductId: 'billing-provider-products-uuid', // pick from billing_provider_products table
|
|
251
|
-
successUrl: 'https://yourapp.com/subscription/success', // or a mobile deep-link
|
|
252
|
-
cancelUrl: 'https://yourapp.com/subscription/cancel',
|
|
253
|
-
},
|
|
254
|
-
});
|
|
255
|
-
// redirect user to checkout.url
|
|
256
|
-
|
|
257
|
-
// Open the Stripe Billing Portal (manage / cancel subscription)
|
|
258
|
-
const portal = await Subscriptions.createPortal({
|
|
259
|
-
body: { returnUrl: 'https://yourapp.com/account' },
|
|
260
|
-
});
|
|
261
|
-
// redirect user to portal.url
|
|
262
|
-
|
|
263
|
-
// Storage — get a signed upload URL, then PUT the file directly to Supabase Storage
|
|
264
|
-
const { uploadUrl, token, path, bucket, expiresIn } =
|
|
265
|
-
await Storage.createUploadUrl({
|
|
266
|
-
body: { bucket: 'avatars', contentType: 'image/jpeg', sizeBytes: 204800 },
|
|
267
|
-
});
|
|
268
|
-
await fetch(uploadUrl, {
|
|
269
|
-
method: 'PUT',
|
|
270
|
-
body: fileBlob,
|
|
271
|
-
headers: { 'Content-Type': 'image/jpeg' },
|
|
272
|
-
});
|
|
273
|
-
// persist `path` on the player record (e.g. patchMe with avatarPath: path)
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
## Updating auth token
|
|
277
|
-
|
|
278
|
-
Update the Bearer token after sign-in or token refresh:
|
|
279
|
-
|
|
280
|
-
```ts
|
|
281
|
-
client.setConfig({
|
|
282
|
-
headers: {
|
|
283
|
-
Authorization: `Bearer ${newAccessToken}`,
|
|
284
|
-
},
|
|
285
|
-
});
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
## Versioning
|
|
289
|
-
|
|
290
|
-
This package is auto-generated from the backend OpenAPI spec. Version increments follow semver:
|
|
291
|
-
|
|
292
|
-
- **patch** — no API shape changes
|
|
293
|
-
- **minor** — new endpoints added
|
|
294
|
-
- **major** — breaking changes (renamed/removed endpoints or fields)
|
|
295
|
-
|
|
296
|
-
## Package format
|
|
297
|
-
|
|
298
|
-
The published package ships compiled JavaScript (`dist/`) alongside the raw TypeScript source. `main` points to `dist/index.js` so all bundlers work without extra configuration.
|