@putdotio/sdk 16.0.1 → 16.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2906,15 +2906,17 @@ const uploadFile = (input, options = {}) => decodeAndRun(FileUploadCallInputSche
2906
2906
  input,
2907
2907
  options
2908
2908
  }, (decoded) => resolveRouteContext(decoded.options.oauthToken).pipe(Effect.flatMap(({ config, token }) => requestJson(FileUploadEnvelopeSchema, {
2909
- auth: { type: "none" },
2909
+ auth: {
2910
+ token,
2911
+ type: "token"
2912
+ },
2910
2913
  baseUrl: config.uploadBaseUrl,
2911
2914
  body: {
2912
2915
  type: "form-data",
2913
2916
  value: createFileUploadFormData(decoded.input)
2914
2917
  },
2915
2918
  method: "POST",
2916
- path: "/v2/files/upload",
2917
- query: { oauth_token: token }
2919
+ path: "/v2/files/upload"
2918
2920
  })))).pipe(Effect.flatMap(toUploadResult), withOperationErrors(FileUploadErrorSpec));
2919
2921
  // src/domains/friend-invites.ts
2920
2922
  const FriendInviteJoinedUserStatusSchema = Schema.Literals([