@putdotio/sdk 9.4.0 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2616,15 +2616,11 @@ const PaymentOptionPlanTypeSchema = Schema.Literals([
2616
2616
  ]);
2617
2617
  const PaymentProviderNameSchema = Schema.Literals([
2618
2618
  "Paddle",
2619
+ "Paddle Billing",
2619
2620
  "Fastspring",
2620
- "OpenNode",
2621
- "AcceptNano"
2622
- ]);
2623
- const PaymentTypeSchema = Schema.Literals([
2624
- "credit-card",
2625
- "cryptocurrency",
2626
- "nano"
2621
+ "OpenNode"
2627
2622
  ]);
2623
+ const PaymentTypeSchema = Schema.Literals(["credit-card", "cryptocurrency"]);
2628
2624
  const UserSubscriptionStatusSchema = Schema.Literals([
2629
2625
  "ACTIVE",
2630
2626
  "CANCELED",
@@ -2752,6 +2748,7 @@ const PaymentChangePlanProviderPaddlePreviewSchema = Schema.Struct({
2752
2748
  currency: Schema.String,
2753
2749
  next_billing_date: Schema.NullOr(Schema.String)
2754
2750
  });
2751
+ const PaymentChangePlanProviderPaddleBillingPreviewSchema = Schema.Struct({ next_billing_date: Schema.NullOr(Schema.String) });
2755
2752
  const PaymentChangePlanProviderFastspringPreviewSchema = Schema.Struct({
2756
2753
  charge_amount: Schema.NullOr(Schema.String),
2757
2754
  currency: Schema.String,
@@ -2765,6 +2762,7 @@ const PaymentChangePlanDiscountSchema = Schema.Struct({
2765
2762
  const PaymentChangePlanPreviewSchema = Schema.Struct({
2766
2763
  Fastspring: PaymentChangePlanProviderFastspringPreviewSchema,
2767
2764
  Paddle: PaymentChangePlanProviderPaddlePreviewSchema,
2765
+ "Paddle Billing": PaymentChangePlanProviderPaddleBillingPreviewSchema,
2768
2766
  amount: Schema.NullOr(Schema.String),
2769
2767
  charge_amount: Schema.Boolean,
2770
2768
  credit: Schema.NullOr(Schema.String),
@@ -2783,6 +2781,11 @@ const PaddlePaymentProviderSchema = Schema.Struct({
2783
2781
  type: Schema.Literal("credit-card"),
2784
2782
  vendor_id: Schema.Int.check(Schema.isGreaterThan(0))
2785
2783
  });
2784
+ const PaddleBillingPaymentProviderSchema = Schema.Struct({
2785
+ price_id: Schema.NullOr(Schema.String),
2786
+ provider: Schema.Literal("Paddle Billing"),
2787
+ type: Schema.Literal("credit-card")
2788
+ });
2786
2789
  const FastspringPaymentProviderSchema = Schema.Struct({
2787
2790
  provider: Schema.Literal("Fastspring"),
2788
2791
  type: Schema.Literal("credit-card"),
@@ -2793,19 +2796,10 @@ const OpenNodePaymentProviderSchema = Schema.Struct({
2793
2796
  provider: Schema.Literal("OpenNode"),
2794
2797
  type: Schema.Literal("cryptocurrency")
2795
2798
  });
2796
- const AcceptNanoPaymentProviderSchema = Schema.Struct({
2797
- amount: Schema.String,
2798
- api_host: Schema.String,
2799
- currency: Schema.Literal("USD"),
2800
- discount_percent: Schema.Number.check(Schema.isGreaterThanOrEqualTo(0)),
2801
- provider: Schema.Literal("AcceptNano"),
2802
- state: Schema.String,
2803
- type: Schema.Literal("nano")
2804
- });
2805
2799
  const PaymentProviderSchema = Schema.Union([
2806
- AcceptNanoPaymentProviderSchema,
2807
2800
  FastspringPaymentProviderSchema,
2808
2801
  OpenNodePaymentProviderSchema,
2802
+ PaddleBillingPaymentProviderSchema,
2809
2803
  PaddlePaymentProviderSchema
2810
2804
  ]);
2811
2805
  const PaymentChangePlanCheckoutSchema = Schema.Struct({
@@ -2838,6 +2832,14 @@ const PaymentFastspringConfirmEnvelopeSchema = Schema.Struct({
2838
2832
  confirmed: Schema.Boolean,
2839
2833
  status: Schema.Literal("OK")
2840
2834
  });
2835
+ const PaymentPaddleBillingInvoiceEnvelopeSchema = Schema.Struct({
2836
+ status: Schema.optional(Schema.Literal("OK")),
2837
+ url: Schema.String
2838
+ });
2839
+ const PaymentPaddleBillingUpdatePaymentMethodEnvelopeSchema = Schema.Struct({
2840
+ status: Schema.optional(Schema.Literal("OK")),
2841
+ transaction_id: Schema.String
2842
+ });
2841
2843
  const PaymentVoucherPlanSchema = Schema.Struct({
2842
2844
  expiration_date: Schema.NullOr(Schema.String),
2843
2845
  type: Schema.NullOr(PaymentPlanTypeSchema)
@@ -2856,10 +2858,6 @@ const PaymentVoucherInfoSchema = Schema.Struct({
2856
2858
  status: Schema.Literal("OK"),
2857
2859
  target_plan: PaymentVoucherTargetPlanSchema
2858
2860
  });
2859
- const PaymentNanoRequestEnvelopeSchema = Schema.Struct({
2860
- nano: Schema.Struct({ token: Schema.String }),
2861
- status: Schema.Literal("OK")
2862
- });
2863
2861
  const PaymentOpenNodeChargeEnvelopeSchema = Schema.Struct({
2864
2862
  opennode: Schema.Struct({ checkout_url: Schema.String }),
2865
2863
  status: Schema.Literal("OK")
@@ -2947,6 +2945,14 @@ const SubmitPaymentChangePlanErrorSpec = definePutioOperationErrorSpec({
2947
2945
  errorType: "PADDLE_ERROR",
2948
2946
  statusCode: 400
2949
2947
  },
2948
+ {
2949
+ errorType: "PADDLE_BILLING_INVALID_COUPON",
2950
+ statusCode: 400
2951
+ },
2952
+ {
2953
+ errorType: "PADDLE_BILLING_SUBSCRIPTION_CANNOT_CHANGE_PLAN",
2954
+ statusCode: 400
2955
+ },
2950
2956
  {
2951
2957
  errorType: "CONFIRMATION_NOT_FOUND",
2952
2958
  statusCode: 404
@@ -3097,21 +3103,41 @@ const CreatePaddleWaitingPaymentErrorSpec = definePutioOperationErrorSpec({
3097
3103
  { statusCode: 404 }
3098
3104
  ]
3099
3105
  });
3100
- const CreateCoinbaseChargeErrorSpec = definePutioOperationErrorSpec({
3106
+ const GetPaddleBillingInvoiceUrlErrorSpec = definePutioOperationErrorSpec({
3101
3107
  domain: "payment",
3102
- operation: "createCoinbaseCharge",
3108
+ operation: "getPaddleBillingInvoiceUrl",
3103
3109
  knownErrors: [
3104
3110
  {
3105
- errorType: "PAYMENT_UNKNOWN_PLAN",
3106
- statusCode: 400
3111
+ errorType: "PADDLE_BILLING_PAYMENT_NOT_FOUND",
3112
+ statusCode: 404
3113
+ },
3114
+ {
3115
+ errorType: "PADDLE_BILLING_INVOICE_NOT_AVAILABLE",
3116
+ statusCode: 404
3107
3117
  },
3108
3118
  ...CommonPaymentActionErrors,
3109
- { statusCode: 400 }
3119
+ { statusCode: 404 }
3110
3120
  ]
3111
3121
  });
3112
- const CreateOpenNodeChargeErrorSpec = definePutioOperationErrorSpec({
3122
+ const CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec = definePutioOperationErrorSpec({
3113
3123
  domain: "payment",
3114
- operation: "createOpenNodeCharge",
3124
+ operation: "createPaddleBillingUpdatePaymentMethodTransaction",
3125
+ knownErrors: [
3126
+ {
3127
+ errorType: "PADDLE_BILLING_SUBSCRIPTION_NOT_FOUND",
3128
+ statusCode: 404
3129
+ },
3130
+ {
3131
+ errorType: "PADDLE_BILLING_SUBSCRIPTION_CANCELED",
3132
+ statusCode: 404
3133
+ },
3134
+ ...CommonPaymentActionErrors,
3135
+ { statusCode: 404 }
3136
+ ]
3137
+ });
3138
+ const CreateCoinbaseChargeErrorSpec = definePutioOperationErrorSpec({
3139
+ domain: "payment",
3140
+ operation: "createCoinbaseCharge",
3115
3141
  knownErrors: [
3116
3142
  {
3117
3143
  errorType: "PAYMENT_UNKNOWN_PLAN",
@@ -3121,9 +3147,9 @@ const CreateOpenNodeChargeErrorSpec = definePutioOperationErrorSpec({
3121
3147
  { statusCode: 400 }
3122
3148
  ]
3123
3149
  });
3124
- const CreateNanoPaymentRequestErrorSpec = definePutioOperationErrorSpec({
3150
+ const CreateOpenNodeChargeErrorSpec = definePutioOperationErrorSpec({
3125
3151
  domain: "payment",
3126
- operation: "createNanoPaymentRequest",
3152
+ operation: "createOpenNodeCharge",
3127
3153
  knownErrors: [
3128
3154
  {
3129
3155
  errorType: "PAYMENT_UNKNOWN_PLAN",
@@ -3225,6 +3251,14 @@ const createPaddleWaitingPayment = (input) => requestJson(OkResponseSchema, {
3225
3251
  method: "POST",
3226
3252
  path: "/v2/payment/paddle_waiting_payment"
3227
3253
  }).pipe(Effect.asVoid, withOperationErrors(CreatePaddleWaitingPaymentErrorSpec));
3254
+ const getPaddleBillingInvoiceUrl = (paymentId) => requestJson(PaymentPaddleBillingInvoiceEnvelopeSchema, {
3255
+ method: "GET",
3256
+ path: `/v2/payment/methods/paddle_billing/invoice/${encodeURIComponent(paymentId)}`
3257
+ }).pipe(selectJsonField("url"), withOperationErrors(GetPaddleBillingInvoiceUrlErrorSpec));
3258
+ const createPaddleBillingUpdatePaymentMethodTransaction = (userSubscriptionId) => requestJson(PaymentPaddleBillingUpdatePaymentMethodEnvelopeSchema, {
3259
+ method: "GET",
3260
+ path: `/v2/payment/methods/paddle_billing/update_payment_method/${encodeURIComponent(userSubscriptionId)}`
3261
+ }).pipe(selectJsonField("transaction_id"), withOperationErrors(CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec));
3228
3262
  const createCoinbaseCharge = (planPath) => requestJson(PaymentCoinbaseChargeEnvelopeSchema, {
3229
3263
  body: {
3230
3264
  type: "form",
@@ -3241,14 +3275,6 @@ const createOpenNodeCharge = (planPath) => requestJson(PaymentOpenNodeChargeEnve
3241
3275
  method: "POST",
3242
3276
  path: "/v2/payment/methods/opennode/charge"
3243
3277
  }).pipe(selectJsonField("opennode"), Effect.map(({ checkout_url }) => checkout_url), withOperationErrors(CreateOpenNodeChargeErrorSpec));
3244
- const createNanoPaymentRequest = (planCode) => requestJson(PaymentNanoRequestEnvelopeSchema, {
3245
- body: {
3246
- type: "form",
3247
- value: { plan_code: planCode }
3248
- },
3249
- method: "POST",
3250
- path: "/v2/payment/methods/nano/request"
3251
- }).pipe(selectJsonField("nano"), Effect.map(({ token }) => token), withOperationErrors(CreateNanoPaymentRequestErrorSpec));
3252
3278
  //#endregion
3253
3279
  //#region src/domains/rss.ts
3254
3280
  const RssFeedSchema = Schema.Struct({
@@ -4777,8 +4803,9 @@ const createPutioSdkEffectClient = () => ({
4777
4803
  methods: {
4778
4804
  addPaddleWaitingPayment: createPaddleWaitingPayment,
4779
4805
  createCoinbaseCharge,
4780
- createNanoPaymentRequest,
4781
- createOpenNodeCharge
4806
+ createOpenNodeCharge,
4807
+ createPaddleBillingUpdatePaymentMethodTransaction,
4808
+ getPaddleBillingInvoiceUrl
4782
4809
  },
4783
4810
  report: reportPayments,
4784
4811
  stopSubscription: stopPaymentSubscription,
@@ -5008,8 +5035,9 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5008
5035
  methods: {
5009
5036
  addPaddleWaitingPayment: (input) => provideSdk(config, createPaddleWaitingPayment(input)),
5010
5037
  createCoinbaseCharge: (planPath) => provideSdk(config, createCoinbaseCharge(planPath)),
5011
- createNanoPaymentRequest: (planCode) => provideSdk(config, createNanoPaymentRequest(planCode)),
5012
- createOpenNodeCharge: (planPath) => provideSdk(config, createOpenNodeCharge(planPath))
5038
+ createOpenNodeCharge: (planPath) => provideSdk(config, createOpenNodeCharge(planPath)),
5039
+ createPaddleBillingUpdatePaymentMethodTransaction: (userSubscriptionId) => provideSdk(config, createPaddleBillingUpdatePaymentMethodTransaction(userSubscriptionId)),
5040
+ getPaddleBillingInvoiceUrl: (paymentId) => provideSdk(config, getPaddleBillingInvoiceUrl(paymentId))
5013
5041
  },
5014
5042
  report: (paymentIds) => provideSdk(config, reportPayments(paymentIds)),
5015
5043
  stopSubscription: () => provideSdk(config, stopPaymentSubscription()),
@@ -5081,6 +5109,6 @@ const createPutioSdkPromiseClient = (initialConfig = {}) => {
5081
5109
  };
5082
5110
  };
5083
5111
  //#endregion
5084
- export { AccountClearOptionsSchema, AccountConfirmationSchema, AccountConfirmationsErrorSpec, AccountDiskSchema, AccountInfoBaseSchema, AccountInfoBroadSchema, AccountInfoQuerySchema, AccountSettingsSchema, AccountTwoFactorSettingsSchema, AccountWarningsSchema, AddManyTransfersErrorSpec, AddTransferErrorSpec, ApproveFriendRequestErrorSpec, AuthorizationCodeSchema, CancelZipErrorSpec, ClearEventsErrorSpec, ClearRssFeedLogsErrorSpec, ClientsErrorSpec, ConfirmFastspringOrderErrorSpec, ContinueFilesErrorSpec, ContinuePublicShareFilesErrorSpec, ContinueTrashErrorSpec, CountWaitingRequestsErrorSpec, CreateCoinbaseChargeErrorSpec, CreateDownloadLinksErrorSpec, CreateFamilyInviteErrorSpec, CreateFolderErrorSpec, CreateFriendInviteErrorSpec, CreateNanoPaymentRequestErrorSpec, CreateOAuthAppErrorSpec, CreateOpenNodeChargeErrorSpec, CreatePaddleWaitingPaymentErrorSpec, CreatePublicShareErrorSpec, CreateRssFeedErrorSpec, CreateSharingCloneErrorSpec, CreateZipErrorSpec, DEFAULT_PUTIO_API_BASE_URL, DEFAULT_PUTIO_UPLOAD_BASE_URL, DEFAULT_PUTIO_WEB_APP_URL, DeleteEventErrorSpec, DeleteOAuthAppErrorSpec, DeletePublicShareErrorSpec, DeleteRssFeedErrorSpec, DeleteTrashErrorSpec, DenyFriendRequestErrorSpec, DownloadLinksCreateInputSchema, DownloadLinksInfoSchema, DownloadLinksPayloadSchema, DownloadLinksStatusSchema, DownloadUrlErrorSpec, EmptyTrashErrorSpec, EventsListQuerySchema, FamilyInviteLookupErrorSpec, FamilyInviteSchema, FamilyMemberSchema, FileActiveConversionSchema, FileActiveConversionsErrorSpec, FileBaseSchema, FileBreadcrumbSchema, FileBroadSchema, FileConversionStatusSchema, FileExtractionSchema, FileExtractionStatusSchema, FileExtractionsErrorSpec, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadataSchema, FileMp4ErrorSpec, FileMp4MutationErrorSpec, FileQuerySchema, FileSortSchema, FileSubtitleSchema, FileSubtitlesErrorSpec, FileTypeSchema, FileUploadErrorSpec, FileWatchStatusErrorSpec, FilesListEnvelopeSchema, FilesListQuerySchema, FilesMoveErrorSchema, FilesSearchQuerySchema, FolderTypeSchema, ForgotPasswordErrorSpec, FriendBaseSchema, FriendInviteJoinedUserSchema, FriendInviteJoinedUserStatusSchema, FriendInviteLookupErrorSpec, FriendInviteSchema, FriendSchema, FriendSharedFolderErrorSpec, GenerateTOTPErrorSpec, GenerateTOTPResponseSchema, GetDownloadLinksErrorSpec, GetEventTorrentErrorSpec, GetFileErrorSpec, GetIftttStatusErrorSpec, GetOAuthAppErrorSpec, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoErrorSpec, GetPublicShareErrorSpec, GetPublicShareFileUrlErrorSpec, GetRssFeedErrorSpec, GetSharedWithErrorSpec, GetSharingCloneInfoErrorSpec, GetTransferErrorSpec, GetZipErrorSpec, GiftCardLookupErrorSpec, GrantsErrorSpec, HistoryEventSchema, HistoryFileFromRssDeletedEventSchema, HistoryFileSharedEventSchema, HistoryKnownEventTypeSchema, HistoryPrivateTorrentPinEventSchema, HistoryRssFilterPausedEventSchema, HistoryTransferCallbackErrorEventSchema, HistoryTransferCompletedEventSchema, HistoryTransferErrorEventSchema, HistoryTransferFromRssErrorEventSchema, HistoryUploadEventSchema, HistoryVoucherEventSchema, HistoryZipCreatedEventSchema, JoinFamilyErrorSpec, JsonObjectSchema, JsonValueSchema, LinkDeviceErrorSpec, ListEventsErrorSpec, ListFamilyInvitesErrorSpec, ListFamilyMembersErrorSpec, ListFriendInvitesErrorSpec, ListFriendsErrorSpec, ListPaymentHistoryErrorSpec, ListPaymentInvitesErrorSpec, ListPaymentOptionsErrorSpec, ListPaymentPlansErrorSpec, ListPublicShareFilesErrorSpec, ListPublicSharesErrorSpec, ListRssFeedItemsErrorSpec, ListRssFeedsErrorSpec, ListSentRequestsErrorSpec, ListSharedFilesErrorSpec, ListTransfersErrorSpec, ListTrashErrorSpec, ListTunnelRoutesErrorSpec, ListWaitingRequestsErrorSpec, ListZipsErrorSpec, LoginErrorSpec, LoginResponseSchema, MyOAuthAppSchema, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSessionSchema, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, OAuthSetIconInputSchema, OkResponseSchema, OwnedOAuthAppSchema, PasInfoSchema, PauseRssFeedErrorSpec, PaymentChangePlanPreviewSchema, PaymentChangePlanSubmitSchema, PaymentHistoryItemSchema, PaymentInfoPlanSchema, PaymentInfoSchema, PaymentInviteSchema, PaymentOptionPlanTypeSchema, PaymentOptionSchema, PaymentPlanGroupSchema, PaymentPlanTypeSchema, PaymentProviderNameSchema, PaymentProviderSchema, PaymentSubscriptionInfoSchema, PaymentTypeSchema, PaymentVoucherInfoSchema, PopularOAuthAppSchema, PreviewPaymentChangePlanErrorSpec, PublicShareListQuerySchema, PublicShareSchema, PutioApiError, PutioAuthError, PutioConfigurationError, PutioErrorEnvelopeSchema, PutioHttpClient, PutioOperationError, PutioRateLimitError, PutioSdk, PutioSdkConfig, PutioTransportError, PutioValidationError, QueryFilesErrorSpec, QueryOAuthAppsErrorSpec, ReannounceTransferErrorSpec, RecoveryCodesErrorSpec, RedeemPaymentVoucherErrorSpec, RegenerateOAuthAppTokenErrorSpec, RegenerateRecoveryCodesErrorSpec, RegisterErrorSpec, RegisterInputSchema, RemoveFamilyMemberErrorSpec, RemoveFriendErrorSpec, RenameFileErrorSpec, ReportPaymentsErrorSpec, ResetPasswordErrorSpec, RestoreTrashErrorSpec, ResumeRssFeedErrorSpec, RetryAllRssFeedItemsErrorSpec, RetryRssFeedItemErrorSpec, RetryTransferErrorSpec, RevokeAllOAuthClientsErrorSpec, RevokeOAuthClientErrorSpec, RevokeOAuthGrantErrorSpec, RssFeedItemFailedSchema, RssFeedItemSchema, RssFeedItemSucceededSchema, RssFeedParamsSchema, RssFeedSchema, SaveAccountSettingsErrorSpec, SaveAccountSettingsPayloadSchema, SearchFilesErrorSpec, SearchFriendsErrorSpec, SendFriendRequestErrorSpec, SendIftttEventErrorSpec, ShareFilesErrorSpec, SharedFileSchema, SharedFileShareSchema, SharedFileSharedWithSchema, SharingCloneInfoSchema, SharingCloneInputSchema, SharingCloneStatusSchema, SharingShareInputSchema, SharingUnshareInputSchema, StartFromErrorSpec, StopRecordingTransferErrorSpec, StopSubscriptionErrorSpec, SubmitPaymentChangePlanErrorSpec, TransferAddInputSchema, TransferBaseSchema, TransferSchema, TransferStatusSchema, TransferTypeSchema, TransfersListQuerySchema, TrashFileSchema, TunnelRouteSchema, TwoFactorRecoveryCodesSchema, UnshareFileErrorSpec, UpdateOAuthAppErrorSpec, UpdateRssFeedErrorSpec, UserSearchResultSchema, UserSubscriptionStatusSchema, ValidateTokenResponseSchema, VerifyTOTPErrorSpec, VerifyTOTPResponseSchema, VoucherLookupErrorSpec, ZipStatusSchema, addManyTransfers, addTransfer, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, countTransfers, countWaitingRequests, createCoinbaseCharge, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createNanoPaymentRequest, createOAuthApp, createOpenNodeCharge, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaymentInfo, getPaymentVoucherInfo, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getVoucher, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listActiveMp4Conversions, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioFetchClient, makePutioFetchLayer, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, renameFile, reportPayments, requestArrayBuffer, requestJson, requestVoid, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
5112
+ export { AccountClearOptionsSchema, AccountConfirmationSchema, AccountConfirmationsErrorSpec, AccountDiskSchema, AccountInfoBaseSchema, AccountInfoBroadSchema, AccountInfoQuerySchema, AccountSettingsSchema, AccountTwoFactorSettingsSchema, AccountWarningsSchema, AddManyTransfersErrorSpec, AddTransferErrorSpec, ApproveFriendRequestErrorSpec, AuthorizationCodeSchema, CancelZipErrorSpec, ClearEventsErrorSpec, ClearRssFeedLogsErrorSpec, ClientsErrorSpec, ConfirmFastspringOrderErrorSpec, ContinueFilesErrorSpec, ContinuePublicShareFilesErrorSpec, ContinueTrashErrorSpec, CountWaitingRequestsErrorSpec, CreateCoinbaseChargeErrorSpec, CreateDownloadLinksErrorSpec, CreateFamilyInviteErrorSpec, CreateFolderErrorSpec, CreateFriendInviteErrorSpec, CreateOAuthAppErrorSpec, CreateOpenNodeChargeErrorSpec, CreatePaddleBillingUpdatePaymentMethodTransactionErrorSpec, CreatePaddleWaitingPaymentErrorSpec, CreatePublicShareErrorSpec, CreateRssFeedErrorSpec, CreateSharingCloneErrorSpec, CreateZipErrorSpec, DEFAULT_PUTIO_API_BASE_URL, DEFAULT_PUTIO_UPLOAD_BASE_URL, DEFAULT_PUTIO_WEB_APP_URL, DeleteEventErrorSpec, DeleteOAuthAppErrorSpec, DeletePublicShareErrorSpec, DeleteRssFeedErrorSpec, DeleteTrashErrorSpec, DenyFriendRequestErrorSpec, DownloadLinksCreateInputSchema, DownloadLinksInfoSchema, DownloadLinksPayloadSchema, DownloadLinksStatusSchema, DownloadUrlErrorSpec, EmptyTrashErrorSpec, EventsListQuerySchema, FamilyInviteLookupErrorSpec, FamilyInviteSchema, FamilyMemberSchema, FileActiveConversionSchema, FileActiveConversionsErrorSpec, FileBaseSchema, FileBreadcrumbSchema, FileBroadSchema, FileConversionStatusSchema, FileExtractionSchema, FileExtractionStatusSchema, FileExtractionsErrorSpec, FileMediaInfoFormatSchema, FileMediaInfoSchema, FileMediaInfoStreamSchema, FileMediaMetadataSchema, FileMp4ErrorSpec, FileMp4MutationErrorSpec, FileQuerySchema, FileSortSchema, FileSubtitleSchema, FileSubtitlesErrorSpec, FileTypeSchema, FileUploadErrorSpec, FileWatchStatusErrorSpec, FilesListEnvelopeSchema, FilesListQuerySchema, FilesMoveErrorSchema, FilesSearchQuerySchema, FolderTypeSchema, ForgotPasswordErrorSpec, FriendBaseSchema, FriendInviteJoinedUserSchema, FriendInviteJoinedUserStatusSchema, FriendInviteLookupErrorSpec, FriendInviteSchema, FriendSchema, FriendSharedFolderErrorSpec, GenerateTOTPErrorSpec, GenerateTOTPResponseSchema, GetDownloadLinksErrorSpec, GetEventTorrentErrorSpec, GetFileErrorSpec, GetIftttStatusErrorSpec, GetOAuthAppErrorSpec, GetPaddleBillingInvoiceUrlErrorSpec, GetPaymentInfoErrorSpec, GetPaymentVoucherInfoErrorSpec, GetPublicShareErrorSpec, GetPublicShareFileUrlErrorSpec, GetRssFeedErrorSpec, GetSharedWithErrorSpec, GetSharingCloneInfoErrorSpec, GetTransferErrorSpec, GetZipErrorSpec, GiftCardLookupErrorSpec, GrantsErrorSpec, HistoryEventSchema, HistoryFileFromRssDeletedEventSchema, HistoryFileSharedEventSchema, HistoryKnownEventTypeSchema, HistoryPrivateTorrentPinEventSchema, HistoryRssFilterPausedEventSchema, HistoryTransferCallbackErrorEventSchema, HistoryTransferCompletedEventSchema, HistoryTransferErrorEventSchema, HistoryTransferFromRssErrorEventSchema, HistoryUploadEventSchema, HistoryVoucherEventSchema, HistoryZipCreatedEventSchema, JoinFamilyErrorSpec, JsonObjectSchema, JsonValueSchema, LinkDeviceErrorSpec, ListEventsErrorSpec, ListFamilyInvitesErrorSpec, ListFamilyMembersErrorSpec, ListFriendInvitesErrorSpec, ListFriendsErrorSpec, ListPaymentHistoryErrorSpec, ListPaymentInvitesErrorSpec, ListPaymentOptionsErrorSpec, ListPaymentPlansErrorSpec, ListPublicShareFilesErrorSpec, ListPublicSharesErrorSpec, ListRssFeedItemsErrorSpec, ListRssFeedsErrorSpec, ListSentRequestsErrorSpec, ListSharedFilesErrorSpec, ListTransfersErrorSpec, ListTrashErrorSpec, ListTunnelRoutesErrorSpec, ListWaitingRequestsErrorSpec, ListZipsErrorSpec, LoginErrorSpec, LoginResponseSchema, MyOAuthAppSchema, OAuthAppCreateInputSchema, OAuthAppSchema, OAuthAppSessionSchema, OAuthAppUpdateInputSchema, OAuthAppWithTokenSchema, OAuthSetIconInputSchema, OkResponseSchema, OwnedOAuthAppSchema, PasInfoSchema, PauseRssFeedErrorSpec, PaymentChangePlanPreviewSchema, PaymentChangePlanSubmitSchema, PaymentHistoryItemSchema, PaymentInfoPlanSchema, PaymentInfoSchema, PaymentInviteSchema, PaymentOptionPlanTypeSchema, PaymentOptionSchema, PaymentPlanGroupSchema, PaymentPlanTypeSchema, PaymentProviderNameSchema, PaymentProviderSchema, PaymentSubscriptionInfoSchema, PaymentTypeSchema, PaymentVoucherInfoSchema, PopularOAuthAppSchema, PreviewPaymentChangePlanErrorSpec, PublicShareListQuerySchema, PublicShareSchema, PutioApiError, PutioAuthError, PutioConfigurationError, PutioErrorEnvelopeSchema, PutioHttpClient, PutioOperationError, PutioRateLimitError, PutioSdk, PutioSdkConfig, PutioTransportError, PutioValidationError, QueryFilesErrorSpec, QueryOAuthAppsErrorSpec, ReannounceTransferErrorSpec, RecoveryCodesErrorSpec, RedeemPaymentVoucherErrorSpec, RegenerateOAuthAppTokenErrorSpec, RegenerateRecoveryCodesErrorSpec, RegisterErrorSpec, RegisterInputSchema, RemoveFamilyMemberErrorSpec, RemoveFriendErrorSpec, RenameFileErrorSpec, ReportPaymentsErrorSpec, ResetPasswordErrorSpec, RestoreTrashErrorSpec, ResumeRssFeedErrorSpec, RetryAllRssFeedItemsErrorSpec, RetryRssFeedItemErrorSpec, RetryTransferErrorSpec, RevokeAllOAuthClientsErrorSpec, RevokeOAuthClientErrorSpec, RevokeOAuthGrantErrorSpec, RssFeedItemFailedSchema, RssFeedItemSchema, RssFeedItemSucceededSchema, RssFeedParamsSchema, RssFeedSchema, SaveAccountSettingsErrorSpec, SaveAccountSettingsPayloadSchema, SearchFilesErrorSpec, SearchFriendsErrorSpec, SendFriendRequestErrorSpec, SendIftttEventErrorSpec, ShareFilesErrorSpec, SharedFileSchema, SharedFileShareSchema, SharedFileSharedWithSchema, SharingCloneInfoSchema, SharingCloneInputSchema, SharingCloneStatusSchema, SharingShareInputSchema, SharingUnshareInputSchema, StartFromErrorSpec, StopRecordingTransferErrorSpec, StopSubscriptionErrorSpec, SubmitPaymentChangePlanErrorSpec, TransferAddInputSchema, TransferBaseSchema, TransferSchema, TransferStatusSchema, TransferTypeSchema, TransfersListQuerySchema, TrashFileSchema, TunnelRouteSchema, TwoFactorRecoveryCodesSchema, UnshareFileErrorSpec, UpdateOAuthAppErrorSpec, UpdateRssFeedErrorSpec, UserSearchResultSchema, UserSubscriptionStatusSchema, ValidateTokenResponseSchema, VerifyTOTPErrorSpec, VerifyTOTPResponseSchema, VoucherLookupErrorSpec, ZipStatusSchema, addManyTransfers, addTransfer, approveFriendRequest, buildAuthLoginUrl, buildFileApiContentUrl, buildFileApiDownloadUrl, buildFileApiMp4DownloadUrl, buildFileHlsStreamUrl, buildOAuthAppIconUrl, buildOAuthAuthorizeUrl, buildPutioUrl, cancelTransfers, cancelZip, checkCodeMatch, classifyPaymentChangePlanResponse, cleanTransfers, clearAccount, clearEvents, clearRssFeedLogs, clients, cloneSharedFiles, confirmFastspringOrder, continueFiles, continuePublicShareFiles, continueSearch, continueTransfers, continueTrash, convertFileSelectionToMp4, convertFileToMp4, convertFilesToMp4, countTransfers, countWaitingRequests, createCoinbaseCharge, createDownloadLinks, createFamilyInvite, createFileUploadFormData, createFileUploadRequest, createFolder, createFriendInvite, createOAuthApp, createOpenNodeCharge, createPaddleBillingUpdatePaymentMethodTransaction, createPaddleWaitingPayment, createPublicShare, createPutioSdkEffectClient, createPutioSdkPromiseClient, createRssFeed, createZip, decodePutioErrorEnvelope, definePutioOperationErrorSpec, deleteConfigKey, deleteEvent, deleteFileExtraction, deleteFileMp4, deleteFileSelection, deleteFiles, deleteOAuthApp, deletePublicShare, deleteRssFeed, deleteTrash, denyFriendRequest, destroyAccount, emptyTrash, encodePathSegment, exists, extractFiles, fallbackPutioErrorEnvelope, findNextFile, findNextVideo, forgotPassword, generateTOTP, getAccountInfo, getAccountSettings, getApiContentUrl, getApiDownloadUrl, getApiMp4DownloadUrl, getCode, getConfigKey, getConfigKeyWith, getDownloadLinks, getDownloadUrl, getEventTorrent, getFamilyInvite, getFile, getFriendInvite, getFriendSharedFolder, getGiftCard, getHlsStreamUrl, getIftttStatus, getMp4Status, getOAuthApp, getPaddleBillingInvoiceUrl, getPaymentInfo, getPaymentVoucherInfo, getPopularOAuthApps, getPublicShare, getPublicShareFileUrl, getRecoveryCodes, getRssFeed, getSharedWith, getSharingCloneInfo, getStartFrom, getTransfer, getTransferInfo, getVoucher, getZip, grants, isPutioApiError, isPutioAuthError, isPutioErrorEnvelope, isPutioOperationError, isPutioRateLimitError, joinFamily, linkDevice, listAccountConfirmations, listActiveMp4Conversions, listEvents, listFamilyInvites, listFamilyMembers, listFileExtractions, listFileSubtitles, listFriendInvites, listFriends, listPaymentHistory, listPaymentInvites, listPaymentOptions, listPaymentPlans, listPublicShareFiles, listPublicShares, listRssFeedItems, listRssFeeds, listSentRequests, listSharedFiles, listTransfers, listTrash, listTunnelRoutes, listWaitingRequests, listZips, login, logout, makePutioFetchClient, makePutioFetchLayer, makePutioSdkConfig, makePutioSdkEffectClientLayer, makePutioSdkLayer, makePutioSdkLiveClientLayer, makePutioSdkLiveLayer, makeResponseError, mapConfigurationError, mapDecodeErrorToValidationError, mapTransportError, moveFileSelection, moveFiles, parseErrorBody, pauseRssFeed, previewPaymentChangePlan, putMp4ToMyFiles, queryFiles, queryOAuthApps, readConfig, readConfigWith, reannounceTransfer, redeemPaymentVoucher, regenerateOAuthAppToken, regenerateRecoveryCodes, register, removeFamilyMember, removeFriend, renameFile, reportPayments, requestArrayBuffer, requestJson, requestVoid, resetPassword, resetStartFrom, responseRateLimitHeaders, restoreTrash, resumeRssFeed, retryAllRssFeedItems, retryRssFeedItem, retryTransfer, revokeAllClients, revokeApp, revokeClient, saveAccountSettings, searchFiles, searchFriends, selectJsonField, selectJsonFields, sendFriendRequest, sendIftttEvent, setConfigKey, setFilesWatchStatus, setOAuthAppIcon, setStartFrom, shareFiles, stopPaymentSubscription, stopTransferRecording, submitPaymentChangePlan, unshareFile, updateOAuthApp, updateRssFeed, uploadFile, validateToken, verifyTOTP, withOperationErrors, writeConfig };
5085
5113
 
5086
5114
  //# sourceMappingURL=index.js.map